Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 94b59fa

Browse files
author
Michael Meskes
committed
Synced with backend.
1 parent 2cbaaee commit 94b59fa

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ Fri Jun 20 13:23:07 CEST 2003
15091509
Fri Jun 20 15:34:29 CEST 2003
15101510

15111511
- For Informix compatibility we have to accept a "free <cursor>".
1512+
- Synced scan.l and pgc.l.
15121513
- Set ecpg version to 3.0.0
15131514
- Set ecpg library to 4.0.0
15141515
- Set pgtypes library to 1.0.0

src/interfaces/ecpg/preproc/pgc.l

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.116 2003/06/17 07:28:22 meskes Exp $
15+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.117 2003/06/20 15:16:06 meskes Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -179,12 +179,12 @@ xcstop \*+\/
179179
xcinside [^*/]+
180180

181181
digit [0-9]
182-
letter [\200-\377_A-Za-z]
183-
letter_or_digit [\200-\377_A-Za-z0-9]
182+
ident_start [A-Za-z\200-\377_]
183+
ident_cont [A-Za-z\200-\377_0-9\$]
184184

185-
identifier {letter}{letter_or_digit}*
185+
identifier {ident_start}{ident_cont}*
186186

187-
array ({letter_or_digit}|[\+\-\*\%\/\(\)])*
187+
array ({ident_cont}|[\+\-\*\%\/\(\)])*
188188
typecast "::"
189189

190190
/*
@@ -197,8 +197,8 @@ typecast "::"
197197
* If you change either set, adjust the character lists appearing in the
198198
* rule for "operator"!
199199
*/
200-
self [,()\[\].;$\:\+\-\*\/\%\^\<\>\=]
201-
op_chars [\~\!\@\#\^\&\|\`\?\$\+\-\*\/\%\<\>\=]
200+
self [,()\[\].;\:\+\-\*\/\%\^\<\>\=]
201+
op_chars [\~\!\@\#\^\&\|\`\?\+\-\*\/\%\<\>\=]
202202
operator {op_chars}+
203203

204204
/* we no longer allow unary minus in numbers.
@@ -474,7 +474,7 @@ cppline {space}*#(.*\\{space})+.*
474474

475475
for (ic = nchars-2; ic >= 0; ic--)
476476
{
477-
if (strchr("~!@#^&|`?$%", yytext[ic]))
477+
if (strchr("~!@#^&|`?%", yytext[ic]))
478478
break;
479479
}
480480
if (ic >= 0)
@@ -493,7 +493,7 @@ cppline {space}*#(.*\\{space})+.*
493493
* that the "self" rule would have.
494494
*/
495495
if (nchars == 1 &&
496-
strchr(",()[].;$:+-*/%^<>=", yytext[0]))
496+
strchr(",()[].;:+-*/%^<>=", yytext[0]))
497497
return yytext[0];
498498
}
499499

@@ -862,7 +862,7 @@ cppline {space}*#(.*\\{space})+.*
862862
else
863863
BEGIN(xskip);
864864
}
865-
<C,xskip>{informix_special}{endif}{space}* {
865+
<C,xskip>{informix_special}{endif}{space}*";" {
866866
/* are we simulating Informix? */
867867
if (compat == ECPG_COMPAT_INFORMIX)
868868
{

0 commit comments

Comments
 (0)