1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-14 02:22:38 +03:00

Fix some more 'old-style parameter declaration' warnings.

This commit is contained in:
Tom Lane
2004-10-25 02:30:29 +00:00
parent f1283ed6cc
commit 0636d55843
2 changed files with 30 additions and 13 deletions
contrib
tsearch
tsearch2
wordparser

@@ -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;
}