From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-hackers(at)postgreSQL(dot)org |
Subject: | Re: [HACKERS] Re: include-file cleanup |
Date: | 1999-07-17 16:49:24 |
Message-ID: | 199907171649.MAA18090@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Well, the script just does the compile with and without the #include.
>
> Oh ... I was assuming you had built something that actually went through
> and gathered up a list of the symbols mentioned in each file.
>
> I fear we are going to be putting back missing includes for a while to
> come; in particular, I'll bet that MULTIBYTE and possibly USE_LOCALE are
> now broken, unless you ran the script with those features enabled.
> There are going to be a few more problems with platform-specific code
> like the one I found in pqcomm.c, too.
I have added the needed files for MULTIBYTE and LOCALE.
>
> What you did is a good hack as a one-shot cleanup, but I can't see
> wanting to repeat it in future, not even as seldom as every year or two,
> unless we build a much more reliable tool for the job.
OK, I will not run it for another three years. Some of the tools, like
the one that changes <> to "" as approproate may be good for more
frequent use. The tool that makes sure every #include has proper
includes may be OK too. As you suggested, if we run the include removal
script, we can just have it report what it suggests for removal, and
manually review each one.
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-07-17 16:51:07 | New version number 6.6 or 7.0 |
Previous Message | Thomas Lockhart | 1999-07-17 16:31:51 | Merging old man pages |