mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Avoid #ifdef inside printf() ... that loses on platforms where printf()
is a macro.
This commit is contained in:
parent
a1e28d3505
commit
9d4a45e25c
@ -1,4 +1,4 @@
|
|||||||
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.47 2001/08/24 22:37:36 petere Exp $ */
|
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/ecpg.c,v 1.48 2001/08/28 02:47:18 tgl Exp $ */
|
||||||
|
|
||||||
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
|
/* New main for ecpg, the PostgreSQL embedded SQL precompiler. */
|
||||||
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
|
/* (C) Michael Meskes <meskes@postgresql.org> Feb 5th, 1998 */
|
||||||
@ -29,15 +29,16 @@ help(const char *progname)
|
|||||||
{
|
{
|
||||||
printf("%s is the PostgreSQL embedded SQL preprocessor for C programs.\n\n",
|
printf("%s is the PostgreSQL embedded SQL preprocessor for C programs.\n\n",
|
||||||
progname);
|
progname);
|
||||||
printf("Usage:\n"
|
/* printf is a macro some places; don't #ifdef inside its arguments */
|
||||||
" %s %s[-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
|
||||||
progname,
|
|
||||||
#ifdef YYDEBUG
|
#ifdef YYDEBUG
|
||||||
"[-d] "
|
printf("Usage:\n"
|
||||||
|
" %s [-d] [-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
||||||
|
progname);
|
||||||
#else
|
#else
|
||||||
""
|
printf("Usage:\n"
|
||||||
|
" %s [-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
||||||
|
progname);
|
||||||
#endif
|
#endif
|
||||||
);
|
|
||||||
printf("Options:\n");
|
printf("Options:\n");
|
||||||
#ifdef YYDEBUG
|
#ifdef YYDEBUG
|
||||||
printf(" -d generate parser debug output\n");
|
printf(" -d generate parser debug output\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user