]> granicus.if.org Git - postgresql/commitdiff
Removal of CppConcat from indexam.c.
authorBruce Momjian <bruce@momjian.us>
Thu, 26 Dec 1996 17:44:46 +0000 (17:44 +0000)
committerBruce Momjian <bruce@momjian.us>
Thu, 26 Dec 1996 17:44:46 +0000 (17:44 +0000)
As an example I sent a bug-report on 26 Nov to tell that the fix included
below is necessary to compile pg95-current on Ultrix with Digital's
standard C compiler c89. In fact I think that this fix is needed
for any C compiler sticking very close the standard, see my discussion
in the original bug report.

Erik Bertelsen

src/backend/access/index/indexam.c

index 92b7d4236ef389c19d3c945b64300d46a8d131a7..93539cc82bccdb7fcce9e6b71c7f3b1375ecc951 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.8 1996/11/13 20:46:59 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/access/index/indexam.c,v 1.9 1996/12/26 17:44:46 momjian Exp $
  *
  * INTERFACE ROUTINES
  *     index_open      - open an index relation by relationId
@@ -101,13 +101,13 @@ Assert(RelationIsValid(relation)); \
         Assert(PointerIsValid(scan->relation->rd_am))
      
 #define GET_REL_PROCEDURE(x,y) \
-        CppConcat(procedure = relation->rd_am->,y); \
+        procedure = relation->rd_am->y; \
         if (! RegProcedureIsValid(procedure)) \
         elog(WARN, "index_%s: invalid %s regproc", \
              CppAsString(x), CppAsString(y))
      
 #define GET_SCAN_PROCEDURE(x,y) \
-        CppConcat(procedure = scan->relation->rd_am->,y); \
+        procedure = scan->relation->rd_am->y; \
         if (! RegProcedureIsValid(procedure)) \
         elog(WARN, "index_%s: invalid %s regproc", \
              CppAsString(x), CppAsString(y))