]> granicus.if.org Git - postgresql/commitdiff
c.h:
authorVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 27 Oct 1997 12:07:13 +0000 (12:07 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Mon, 27 Oct 1997 12:07:13 +0000 (12:07 +0000)
#define StrNCpy(dst,src,len)    \
(strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : \
NULL,(void)(dst))
     ^^^^^^ - to avoid "value computed is not used" from gcc
in ma-a-any places (should to fix thouse places instead, but ...
time)

config.h.in:
/*
 * TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside
 * transaction block after this query is done.
 */
#define TBL_FREE_CMD_MEMORY
- this is default now.

src/include/c.h
src/include/config.h.in

index 2f53a0b09a9a75c59c853ea5c9b67d43aaeccfb9..5caa424b0af4d76ab3687b6f7ed1b83abdf0b3e4 100644 (file)
@@ -7,7 +7,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: c.h,v 1.24 1997/10/25 02:14:22 momjian Exp $
+ * $Id: c.h,v 1.25 1997/10/27 12:07:10 vadim Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -691,7 +691,7 @@ typedef struct Exception
  */
 /* we do this so if the macro is used in an if action, it will work */
 #define StrNCpy(dst,src,len)   \
-       (strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(dst))
+       (strncpy((dst),(src),(len)),(len > 0) ? *((dst)+(len)-1)='\0' : NULL,(void)(dst))
 
 /* Get a bit mask of the bits set in non-int32 aligned addresses */
 #define INT_ALIGN_MASK (sizeof(int32) - 1)
index 265927672f0bc9ad2df6db62150966e6f7796848..dd57432c8706cafe0382fb7ffc5b52bc8990b4fe 100644 (file)
  */
 #define BTREE_VERSION_1
 
+/*
+ * TBL_FREE_CMD_MEMORY: free memory allocated for an user query inside
+ * transaction block after this query is done. 
+ */
+#define TBL_FREE_CMD_MEMORY
+
 #endif /* CONFIG_H */