File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 39
39
int pgindent_func_no_var_fix;\
40
40
,g' |
41
41
# protect backslashes in DATA()
42
- sed ' s;^DATA(.*$;/*&*/;' > /tmp/$$ a
42
+ sed ' s;^DATA(.*$;/*&*/;' |
43
+ # protect wrapping in CATALOG()
44
+ sed ' s;^CATALOG(.*$;/*&*/;' > /tmp/$$ a
43
45
44
46
# We get the list of typedef's from /src/tools/find_typedef
45
47
indent -bad -bap -bc -bl -d0 -cdb -nce -nfc1 -di12 -i4 -l75 \
@@ -1282,6 +1284,7 @@ int pgindent_func_no_var_fix;\
1282
1284
fi
1283
1285
cat /tmp/$$ a |
1284
1286
sed ' s;^/\*\(DATA(.*\)\*/$;\1;' |
1287
+ sed ' s;^/\*\(CATALOG(.*\)\*/$;\1;' |
1285
1288
sed ' s;/\*---X_X;/* ---;g' |
1286
1289
# workaround indent bug
1287
1290
sed ' s;^static[ ][ ]*;static ;g' |
@@ -1366,9 +1369,9 @@ int pgindent_func_no_var_fix;\
1366
1369
print line2;
1367
1370
}' |
1368
1371
# remove blank line before #endif
1369
- awk '
1370
- {
1371
- line2 = $0;
1372
+ awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
1373
+ {
1374
+ line2 = $0;
1372
1375
if (skips > 0)
1373
1376
skips--;
1374
1377
if (line1 ~ "^$" &&
You can’t perform that action at this time.
0 commit comments