File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* Copyright 2000 by PostgreSQL Global Development Group
5
5
*
6
- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.53 2003/03/20 06:43:35 momjian Exp $
6
+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.54 2003/03/20 22:08:50 momjian Exp $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
#include "mainloop.h"
@@ -272,21 +272,24 @@ MainLoop(FILE *source)
272
272
273
273
/* start of extended comment? */
274
274
else if (line[i] == '/' && line[i + thislen] == '*')
275
- {
275
+ {
276
276
in_xcomment++;
277
277
if (in_xcomment == 1)
278
- ADVANCE_1;
279
- }
278
+ ADVANCE_1;
279
+ }
280
280
281
- /* end of extended comment? */
282
- else if (line[i] == '*' && line[i + thislen] == '/' )
281
+ /* in or end of extended comment? */
282
+ else if (in_xcomment )
283
283
{
284
- in_xcomment--;
285
- if (in_xcomment <= 0)
284
+ if (line[i] == '*' && line[i + thislen] == '/')
286
285
{
287
- in_xcomment = 0;
288
- ADVANCE_1;
289
- }
286
+ in_xcomment--;
287
+ if (in_xcomment <= 0)
288
+ {
289
+ in_xcomment = 0;
290
+ ADVANCE_1;
291
+ }
292
+ }
290
293
}
291
294
292
295
/* start of quote? */
You can’t perform that action at this time.
0 commit comments