Re: pgindent issue with EXEC_BACKEND-only typedefs
От
Bruce Momjian
Тема
Re: pgindent issue with EXEC_BACKEND-only typedefs
Дата
Msg-id
200712211429.lBLET4k24567@momjian.us
Ответ на
Re: pgindent issue with EXEC_BACKEND-only typedefs (Alvaro Herrera)
Список
Дерево обсуждения
pgindent issue with EXEC_BACKEND-only typedefs Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: pgindent issue with EXEC_BACKEND-only typedefs Bruce Momjian <bruce@momjian.us>
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>
Re: pgindent issue with EXEC_BACKEND-only typedefs Alvaro Herrera <alvherre@commandprompt.com>
Re: pgindent issue with EXEC_BACKEND-only typedefs Bruce Momjian <bruce@momjian.us>
Re: pgindent issue with EXEC_BACKEND-only typedefs Bruce Momjian <bruce@momjian.us>
Re: pgindent issue with EXEC_BACKEND-only typedefs Bruce Momjian <bruce@momjian.us>
Re: pgindent issue with EXEC_BACKEND-only typedefs Tom Lane <tgl@sss.pgh.pa.us>
Re: pgindent issue with EXEC_BACKEND-only typedefs Alvaro Herrera <alvherre@commandprompt.com>
Re: pgindent issue with EXEC_BACKEND-only typedefs Bruce Momjian <bruce@momjian.us>
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>
Alvaro Herrera wrote: > Tom Lane wrote: > > Alvaro Herrera 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 worried it will be too hard to find typedefs in complex cases where the typedef name is embedded: typedef void (*ClosePtr) (struct _archiveHandle * AH); The only think of is to grab typedefs from the object file and then also try to get them from the souce too and combine them and remove duplicates. -- Bruce Momjian http://momjian.us EnterpriseDB http://postgres.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-hackers по дате отправления
От: Pavel Stehule
Дата: