Re: pg_dump.options.diff -- Take III

Started by Serguei Mokhovabout 23 years ago1 messages
#1Serguei Mokhov
mokhov@cs.concordia.ca

hmmm... hate to resend it, but i have never seen this passing through...
re-attempt

----- Original Message -----
From: "Serguei Mokhov" <mokhov@cs.concordia.ca>
Sent: January 02, 2003 6:37 PM
Subject: Re: [HACKERS] pg_dump.options.diff -- Take III

Show quoted text

----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
Sent: January 02, 2003 6:16 PM

static void
usage(void)
{
#if defined(HAVE_GETOPT_LONG)
#define xo(longOption,shortOption,desc) printf("%s %s\n", longOption, desc)
#else
#define xo(longOption,shortOption,desc) printf("%s %s\n", shortOption, desc)
#endif

... lots of xo() calls ...

#undef xo
}

This gives us the convenience of a very short name within the usage()
subroutines, while not polluting the namespace for everyplace else in
these utilities.

Revised patch attached as per above.

-s