We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d72f6c7 commit 7542f10Copy full SHA for 7542f10
src/bin/psql/mainloop.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright 2000 by PostgreSQL Global Development Group
5
6
- * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.54 2003/03/20 22:08:50 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/mainloop.c,v 1.55 2003/03/21 03:28:29 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "mainloop.h"
@@ -281,15 +281,9 @@ MainLoop(FILE *source)
281
/* in or end of extended comment? */
282
else if (in_xcomment)
283
{
284
- if (line[i] == '*' && line[i + thislen] == '/')
285
- {
286
- in_xcomment--;
287
- if (in_xcomment <= 0)
288
289
- in_xcomment = 0;
+ if (line[i] == '*' && line[i + thislen] == '/' &&
+ !--in_xcomment)
290
ADVANCE_1;
291
- }
292
293
}
294
295
/* start of quote? */
0 commit comments