mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-11 19:20:40 +08: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. */
|
||||
/* (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",
|
||||
progname);
|
||||
printf("Usage:\n"
|
||||
" %s %s[-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
||||
progname,
|
||||
/* printf is a macro some places; don't #ifdef inside its arguments */
|
||||
#ifdef YYDEBUG
|
||||
"[-d] "
|
||||
printf("Usage:\n"
|
||||
" %s [-d] [-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
||||
progname);
|
||||
#else
|
||||
""
|
||||
printf("Usage:\n"
|
||||
" %s [-I DIRECTORY] [-o OUTFILE] [-t] file1 [file2...]\n\n",
|
||||
progname);
|
||||
#endif
|
||||
);
|
||||
printf("Options:\n");
|
||||
#ifdef YYDEBUG
|
||||
printf(" -d generate parser debug output\n");
|
||||
|
Loading…
Reference in New Issue
Block a user