diff options
Diffstat (limited to 'src/interfaces/ecpg/preproc')
-rw-r--r-- | src/interfaces/ecpg/preproc/check_rules.pl | 1 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/parse.pl | 6 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/pgc.l | 18 |
3 files changed, 11 insertions, 14 deletions
diff --git a/src/interfaces/ecpg/preproc/check_rules.pl b/src/interfaces/ecpg/preproc/check_rules.pl index 39b0250690e..b6d4fb51801 100644 --- a/src/interfaces/ecpg/preproc/check_rules.pl +++ b/src/interfaces/ecpg/preproc/check_rules.pl @@ -178,4 +178,3 @@ if ($verbose) } exit $ret; - diff --git a/src/interfaces/ecpg/preproc/parse.pl b/src/interfaces/ecpg/preproc/parse.pl index 09310b330fe..c10a4d58fc5 100644 --- a/src/interfaces/ecpg/preproc/parse.pl +++ b/src/interfaces/ecpg/preproc/parse.pl @@ -6,7 +6,7 @@ # Copyright (c) 2007-2013, PostgreSQL Global Development Group # # Written by Mike Aubury <mike.aubury@aubit.com> -# Michael Meskes <meskes@postgresql.org> +# Michael Meskes <meskes@postgresql.org> # Andy Colson <andy@squeakycode.net> # # Placed under the same license as PostgreSQL. @@ -617,7 +617,7 @@ sub dump_line =top load addons into cache - %addons = { + %addons = { stmtClosePortalStmt => { 'type' => 'block', 'lines' => [ "{", "if (INFORMIX_MODE)" ..., "}" ] }, stmtViewStmt => { 'type' => 'rule', 'lines' => [ "| ECPGAllocateDescr", ... ] } } @@ -671,5 +671,3 @@ sub preload_addons } } } - - diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l index 5abb74f14e5..55b44ee2869 100644 --- a/src/interfaces/ecpg/preproc/pgc.l +++ b/src/interfaces/ecpg/preproc/pgc.l @@ -542,10 +542,10 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*. else { /* - * When we fail to match $...$ to dolqstart, transfer - * the $... part to the output, but put back the final - * $ for rescanning. Consider $delim$...$junk$delim$ - */ + * When we fail to match $...$ to dolqstart, transfer + * the $... part to the output, but put back the final + * $ for rescanning. Consider $delim$...$junk$delim$ + */ addlit(yytext, yyleng-1); yyless(yyleng-1); } @@ -1262,11 +1262,11 @@ static void addlitchar(unsigned char ychar) { /* enlarge buffer if needed */ - if ((literallen+1) >= literalalloc) - { - literalalloc *= 2; - literalbuf = (char *) realloc(literalbuf, literalalloc); - } + if ((literallen+1) >= literalalloc) + { + literalalloc *= 2; + literalbuf = (char *) realloc(literalbuf, literalalloc); + } /* append new data, add trailing null */ literalbuf[literallen] = ychar; literallen += 1; |