aboutsummaryrefslogtreecommitdiff
path: root/src/tools/pgindent/indent.bsd.patch
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2001-09-03 23:11:20 +0000
committerBruce Momjian <bruce@momjian.us>2001-09-03 23:11:20 +0000
commite5390263ed90ec2bfe33a3925175fc8c56e64da8 (patch)
tree008503ca0b3cb7eb5037dd05e7aba17e8d7e6b02 /src/tools/pgindent/indent.bsd.patch
parent34f80de0e6e4463ab6cc238372a64e78d3727fbb (diff)
downloadpostgresql-e5390263ed90ec2bfe33a3925175fc8c56e64da8.tar.gz
postgresql-e5390263ed90ec2bfe33a3925175fc8c56e64da8.zip
Add patch for 0LL for BSD indent/pgindent.
Diffstat (limited to 'src/tools/pgindent/indent.bsd.patch')
-rw-r--r--src/tools/pgindent/indent.bsd.patch32
1 files changed, 22 insertions, 10 deletions
diff --git a/src/tools/pgindent/indent.bsd.patch b/src/tools/pgindent/indent.bsd.patch
index 93e35809017..7fc3adbf439 100644
--- a/src/tools/pgindent/indent.bsd.patch
+++ b/src/tools/pgindent/indent.bsd.patch
@@ -1,6 +1,6 @@
This increases the number of typedef's understood by BSD indent from 100
-to 1000. The second patch allows it to understand 0x7fU constants.
+to 1000. The second patch allows it to understand 0x7fU and 0LL constants.
---------------------------------------------------------------------------
@@ -24,23 +24,35 @@ to 1000. The second patch allows it to understand 0x7fU constants.
"switch", 1,
"case", 2,
-*** ./lexi.c.orig Wed May 26 10:50:54 1999
---- ./lexi.c Wed May 26 10:51:08 1999
+*** ./lexi.c.orig Wed Apr 18 17:15:17 2001
+--- ./lexi.c Mon Sep 3 19:05:17 2001
***************
-*** 186,192 ****
+*** 186,194 ****
*e_token++ = *buf_ptr++;
}
}
-! if (*buf_ptr == 'L' || *buf_ptr == 'l')
- *e_token++ = *buf_ptr++;
+! if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
+! *buf_ptr == 'l' || *buf_ptr == 'u')
+! *e_token++ = *buf_ptr++;
}
else
---- 186,193 ----
+ while (chartype[*buf_ptr] == alphanum) { /* copy it over */
+--- 186,203 ----
*e_token++ = *buf_ptr++;
}
}
-! if (*buf_ptr == 'L' || *buf_ptr == 'U' ||
-! *buf_ptr == 'l' || *buf_ptr == 'u')
- *e_token++ = *buf_ptr++;
+! if (*buf_ptr == 'F' || *buf_ptr == 'f') {
+! /* float constant */
+! *e_token++ = *buf_ptr++;
+! } else {
+! /* integer constant (U, L, UL, LL, ULL) */
+! if (*buf_ptr == 'U' || *buf_ptr == 'u')
+! *e_token++ = *buf_ptr++;
+! if (*buf_ptr == 'L' || *buf_ptr == 'l')
+! *e_token++ = *buf_ptr++;
+! if (*buf_ptr == 'L' || *buf_ptr == 'l')
+! *e_token++ = *buf_ptr++;
+! }
}
else
+ while (chartype[*buf_ptr] == alphanum) { /* copy it over */