|
12 | 12 | *
|
13 | 13 | *
|
14 | 14 | * IDENTIFICATION
|
15 |
| - * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.139 2006/02/01 20:57:39 momjian Exp $ |
| 15 | + * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.140 2006/02/02 03:51:41 momjian Exp $ |
16 | 16 | *
|
17 | 17 | *-------------------------------------------------------------------------
|
18 | 18 | */
|
@@ -278,18 +278,18 @@ informix_special[\$]
|
278 | 278 | other.
|
279 | 279 |
|
280 | 280 | /* some stuff needed for ecpg */
|
281 |
| -exec[eE][xX][eE][cC] |
282 |
| -sql[sS][qQ][lL] |
283 |
| -define[dD][eE][fF][iI][nN][eE] |
284 |
| -include [iI][nN][cC][lL][uU][dD][eE] |
| 281 | +exec[eE][xX][eE][cC] |
| 282 | +sql[sS][qQ][lL] |
| 283 | +define[dD][eE][fF][iI][nN][eE] |
| 284 | +include[iI][nN][cC][lL][uU][dD][eE] |
285 | 285 |
|
286 |
| -ifdef[iI][fF][dD][eE][fF] |
287 |
| -ifndef[iI][fF][nN][dD][eE][fF] |
288 |
| -else[eE][lL][sS][eE] |
289 |
| -elif[eE][lL][iI][fF] |
290 |
| -endif[eE][nN][dD][iI][fF] |
| 286 | +ifdef[iI][fF][dD][eE][fF] |
| 287 | +ifndef[iI][fF][nN][dD][eE][fF] |
| 288 | +else[eE][lL][sS][eE] |
| 289 | +elif[eE][lL][iI][fF] |
| 290 | +endif[eE][nN][dD][iI][fF] |
291 | 291 |
|
292 |
| -struct[sS][tT][rR][uU][cC][tT] |
| 292 | +struct[sS][tT][rR][uU][cC][tT] |
293 | 293 |
|
294 | 294 | exec_sql{exec}{space}*{sql}{space}*
|
295 | 295 | ipdigit({digit}|{digit}{digit}|{digit}{digit}{digit})
|
@@ -323,32 +323,32 @@ cppline{space}*#(.*\\{space})*.*{newline}
|
323 | 323 |
|
324 | 324 | <SQL>{whitespace}{/* ignore */ }
|
325 | 325 |
|
326 |
| -{xcstart}{ |
327 |
| -token_start = yytext; |
328 |
| -state_before = YYSTATE; |
329 |
| -xcdepth =0; |
330 |
| -BEGIN(xc); |
331 |
| -/* Put back any characters past slash-star; see above */ |
332 |
| -yyless(2); |
333 |
| -fputs("/*", yyout); |
334 |
| -} |
335 |
| -<xc>{xcstart}{ |
336 |
| -xcdepth++; |
337 |
| -/* Put back any characters past slash-star; see above */ |
338 |
| -yyless(2); |
339 |
| -fputs("/*", yyout); |
340 |
| -} |
| 326 | +{xcstart}{ |
| 327 | +token_start = yytext; |
| 328 | +state_before = YYSTATE; |
| 329 | +xcdepth =0; |
| 330 | +BEGIN(xc); |
| 331 | +/* Put back any characters past slash-star; see above */ |
| 332 | +yyless(2); |
| 333 | +fputs("/*", yyout); |
| 334 | +} |
| 335 | +<xc>{xcstart}{ |
| 336 | +xcdepth++; |
| 337 | +/* Put back any characters past slash-star; see above */ |
| 338 | +yyless(2); |
| 339 | +fputs("/*", yyout); |
| 340 | +} |
341 | 341 |
|
342 |
| -<xc>{xcstop}{ |
343 |
| -ECHO; |
344 |
| -if (xcdepth <=0) |
345 |
| -{ |
346 |
| -BEGIN(state_before); |
347 |
| -token_start =NULL; |
348 |
| -} |
349 |
| -else |
350 |
| -xcdepth--; |
| 342 | +<xc>{xcstop}{ |
| 343 | +ECHO; |
| 344 | +if (xcdepth <=0) |
| 345 | +{ |
| 346 | +BEGIN(state_before); |
| 347 | +token_start =NULL; |
351 | 348 | }
|
| 349 | +else |
| 350 | +xcdepth--; |
| 351 | +} |
352 | 352 |
|
353 | 353 | <xc>{xcinside}{ ECHO; }
|
354 | 354 | <xc>{op_chars}{ ECHO; }
|
|