Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
e5390263
Commit
e5390263
authored
Sep 03, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add patch for 0LL for BSD indent/pgindent.
parent
34f80de0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
10 deletions
+22
-10
src/tools/pgindent/indent.bsd.patch
src/tools/pgindent/indent.bsd.patch
+22
-10
No files found.
src/tools/pgindent/indent.bsd.patch
View file @
e5390263
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,19
2
****
*** 186,19
4
****
*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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment