Re: pgindent issue with EXEC_BACKEND-only typedefs

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgindent issue with EXEC_BACKEND-only typedefs
Дата
Msg-id 20071217163545.GK5637@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: pgindent issue with EXEC_BACKEND-only typedefs  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgindent issue with EXEC_BACKEND-only typedefs  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > I don't know how to make it output the symbol names like it seems to do
> > for you.
> 
> I dislike the object-file-based approach altogether, not least because
> it appears to depend on unportable aspects of someBSD's objdump.
> 
> Surely there's some code out there that can find typedef names from the
> source files?  Why does pgindent even need to be told this?

indent needs the typedef list.  Maybe we can hack something based on
typedefs in the source code, instead of object files.

> > I am also wondering if current GNU indent is now better suited to the
> > task.  Perhaps the bugs that it had on earlier versions have since been
> > fixed?  I remember checking the source code size a couple of years ago
> > and it had grown by an order of magnitude or something like that.
> 
> It might be interesting to try it again.  It's been quite a few years
> since anyone tried it on the PG sources, AFAIK.

Right.  I can't do it right now, but perhaps I can have a look at it
later.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Board for developers
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Board for developers