aboutsummaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-24 23:08:01 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-24 23:08:01 +0000
commitc4cb617504a6e7990de0416b0d18d1dadf176d6c (patch)
treeb38bf26650cb9b6fb54a2a3df05624854f661a72 /src/include/c.h
parent281ba3f40d023dbe0b03f2d76f3c854c3232664f (diff)
downloadpostgresql-c4cb617504a6e7990de0416b0d18d1dadf176d6c.tar.gz
postgresql-c4cb617504a6e7990de0416b0d18d1dadf176d6c.zip
Major patch to speed up backend startup after profiling analysis.
Diffstat (limited to 'src/include/c.h')
-rw-r--r--src/include/c.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/include/c.h b/src/include/c.h
index eaf1ee7b03a..f56f1ea5da0 100644
--- a/src/include/c.h
+++ b/src/include/c.h
@@ -7,7 +7,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: c.h,v 1.14 1997/08/12 20:16:17 momjian Exp $
+ * $Id: c.h,v 1.15 1997/08/24 23:07:56 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -686,8 +686,7 @@ typedef struct Exception {
* Does string copy, and forces terminating NULL
*/
/* we do this so if the macro is used in an if action, it will work */
-#define strNcpy(dest,src,len) do \
- {strncpy((dest),(src),(len));*((dest) + (len)) = '\0';} while (0)
+#define strNcpy(dst,src,len) (strncpy((dst),(src),(len)),*((dst)+(len))='\0',dst)
/* ----------------------------------------------------------------
* Section 9: externs