Re: Patch to mark items as static or not used
| От | Martijn van Oosterhout |
|---|---|
| Тема | Re: Patch to mark items as static or not used |
| Дата | |
| Msg-id | 20060715151807.GA2467@svana.org обсуждение |
| Ответ на | Re: Patch to mark items as static or not used (Andrew Dunstan <andrew@dunslane.net>) |
| Список | pgsql-hackers |
On Sat, Jul 15, 2006 at 09:34:57AM -0400, Andrew Dunstan wrote: > Neil Conway wrote: > >We could annotate the source to indicate that some functions are > >deliberately intended to be externally visible, but not referenced > >within the source tree, and then teach find_static to grok that > >annotation. > > I thought of that, but what if one gets missed? Is the tool worth the > hassle? The tool is just a tool. The annotation is so that some human won't come to the conclusion that it can be removed. Teaching the tool to skip it is just a bonus. Some places mark external functions with DLLEXPORT but I guess we could invent a comment that would be machine readable. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > From each according to his ability. To each according to his ability to litigate.
В списке pgsql-hackers по дате отправления: