mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Partial pgindent of .l and .y files
Trying to clean up the code a bit while we're working on these files for the reentrant scanner/pure parser patches. This cleanup only touches the code sections after the second '%%' in each file, via a manually-supervised and locally hacked up pgindent.
This commit is contained in:
@ -131,7 +131,8 @@ NULL { yylval->kw = "NULL"; return XNULL; }
|
||||
void
|
||||
boot_yyerror(yyscan_t yyscanner, const char *message)
|
||||
{
|
||||
struct yyguts_t * yyg = (struct yyguts_t *) yyscanner; /* needed for yylineno macro */
|
||||
struct yyguts_t *yyg = (struct yyguts_t *) yyscanner; /* needed for yylineno
|
||||
* macro */
|
||||
|
||||
elog(ERROR, "%s at line %d", message, yylineno);
|
||||
}
|
||||
@ -159,6 +160,6 @@ yyrealloc(void *ptr, yy_size_t size, yyscan_t yyscanner)
|
||||
void
|
||||
yyfree(void *ptr, yyscan_t yyscanner)
|
||||
{
|
||||
if (ptr)
|
||||
pfree(ptr);
|
||||
if (ptr)
|
||||
pfree(ptr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user