Commit 890707a5 authored by Bruce Momjian's avatar Bruce Momjian

Improve tab whitespace in file.

Add comment about $$ and '' SCONST strings.
parent 46dfa5ec
/* $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);
} }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment