*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.79 2003/08/08 21:41:32 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.80 2003/08/30 14:59:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
}
}
- /* -= now do the thing on this relation =- */
+ /* now do the thing on this relation */
/*
* get the number of the attribute
}
}
- /* -= now do the thing on this relation =- */
+ /* now do the thing on this relation */
/*
* get the number of the attribute
}
}
- /* -= now do the thing on this relation =- */
+ /* now do the thing on this relation */
/*
* get the number of the attribute
}
}
- /* -= now do the thing on this relation =- */
+ /* now do the thing on this relation */
attrelation = heap_openr(AttributeRelationName, RowExclusiveLock);
cat "$FILE" |
# convert // comments to /* */
sed 's;^\([ ]*\)//\(.*\)$;\1/* \2 */;g' |
+# Avoid bug that converts 'x =- 1' to 'x = -1'
+ sed 's;=- ;-= ;g' |
# mark some comments for special treatment later
sed 's;/\* *---;/*---X_X;g' |
# workaround for indent bug with 'else' handling
\2;g' |
detab -t4 -qc |
# work around bug where function that defines no local variables misindents
-# switch() case lines and line after #else. Do not do with for struct/enum.
+# switch() case lines and line after #else. Do not do for struct/enum.
awk ' BEGIN {line1 = ""; line2 = ""}
{
line2 = $0;
cat /tmp/$$
fi
cat /tmp/$$a |
+# restore DATA/CATALOG lines
sed 's;^/\*\(DATA(.*\)\*/$;\1;' |
sed 's;^/\*\(CATALOG(.*\)\*/$;\1;' |
# remove tabs and retab with four spaces