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
0636d558
Commit
0636d558
authored
Oct 25, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some more 'old-style parameter declaration' warnings.
parent
f1283ed6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
13 deletions
+30
-13
contrib/tsearch/parser.l
contrib/tsearch/parser.l
+13
-6
contrib/tsearch2/wordparser/parser.l
contrib/tsearch2/wordparser/parser.l
+17
-7
No files found.
contrib/tsearch/parser.l
View file @
0636d558
...
...
@@ -274,18 +274,25 @@ ftp"://" {
%%
/* clearing after parsing from string */
void end_parse() {
if (s) { free(s); s=NULL; }
void
end_parse(void)
{
if (s)
{
free(s);
s = NULL;
}
tsearch_yy_delete_buffer( buf );
buf = NULL;
}
/* start parse from string */
void start_parse_str(char* str, int limit) {
if (buf) end_parse();
void
start_parse_str(char* str, int limit)
{
if (buf)
end_parse();
buf = tsearch_yy_scan_bytes( str, limit );
tsearch_yy_switch_to_buffer( buf );
BEGIN INITIAL;
}
contrib/tsearch2/wordparser/parser.l
View file @
0636d558
...
...
@@ -23,7 +23,8 @@ typedef struct {
static TagStorage ts={0,0,NULL};
static void
addTag() {
addTag(void)
{
while( ts.clen+tsearch2_yyleng+1 > ts.tlen ) {
ts.tlen*=2;
ts.str=realloc(ts.str,ts.tlen);
...
...
@@ -38,7 +39,8 @@ addTag() {
}
static void
startTag() {
startTag(void)
{
if ( ts.str==NULL ) {
ts.tlen=tsearch2_yyleng+1;
ts.str=malloc(ts.tlen);
...
...
@@ -319,17 +321,25 @@ ftp"://" {
%%
/* clearing after parsing from string */
void tsearch2_end_parse() {
if (s) { free(s); s=NULL; }
void
tsearch2_end_parse(void)
{
if (s)
{
free(s);
s = NULL;
}
tsearch2_yy_delete_buffer( buf );
buf = NULL;
}
/* start parse from string */
void tsearch2_start_parse_str(char* str, int limit) {
if (buf) tsearch2_end_parse();
void
tsearch2_start_parse_str(char* str, int limit)
{
if (buf)
tsearch2_end_parse();
buf = tsearch2_yy_scan_bytes( str, limit );
tsearch2_yy_switch_to_buffer( buf );
BEGIN INITIAL;
}
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