1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Add // comments.

This commit is contained in:
Bruce Momjian
1997-09-05 00:09:47 +00:00
parent b45311e016
commit 868d708188
5 changed files with 36 additions and 33 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.89 1997/09/01 06:09:53 thomas Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.90 1997/09/05 00:09:30 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1605,7 +1605,8 @@ MainLoop(PsqlSettings * settings, FILE * source)
continue;
/* single-line comment? truncate line */
} else if (line[i] == '-' && line[i+1] == '-') {
} else if ((line[i] == '-' && line[i+1] == '-') ||
(line[i] == '/' && line[i+1] == '/')) {
/* print comment at top of query */
if (settings->singleStep)
fprintf(stdout, "%s\n", line + i);