Skip to content
Snippets Groups Projects
Commit 890707a5 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Improve tab whitespace in file.

Add comment about $$ and '' SCONST strings.
parent 46dfa5ec
No related branches found
No related tags found
No related merge requests found
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.317 2006/02/01 22:16:36 momjian Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.318 2006/02/03 05:38:35 momjian Exp $ */
/* Copyright comment */ /* Copyright comment */
%{ %{
...@@ -4375,11 +4375,12 @@ Bconst: BCONST { $$ = make_name();}; ...@@ -4375,11 +4375,12 @@ Bconst: BCONST { $$ = make_name();};
Xconst: XCONST { $$ = make_name();}; Xconst: XCONST { $$ = make_name();};
Sconst: SCONST Sconst: SCONST
{ {
/* could have been input as '' or $$ */
$$ = (char *)mm_alloc(strlen($1) + 3); $$ = (char *)mm_alloc(strlen($1) + 3);
$$[0]='\''; $$[0]='\'';
strcpy($$+1, $1); strcpy($$+1, $1);
$$[strlen($1)+2]='\0';
$$[strlen($1)+1]='\''; $$[strlen($1)+1]='\'';
$$[strlen($1)+2]='\0';
free($1); free($1);
} }
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment