Re: Compilation on Debian SID

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: Compilation on Debian SID
Дата
Msg-id CA+OCxozsexMOGEQtH7viBYTfyshnamsGVdo9bJUo6NPi1gv8gw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Compilation on Debian SID  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgadmin-hackers
On Tue, Nov 15, 2011 at 9:22 PM, Guillaume Lelarge
<guillaume@lelarge.info> wrote:
>
> Biggest issue I have is that I actually don't understand the statement:
>
> #define DECLARE_INT_LOG_FUNCTION(level)                            \
> extern void wxVLog##level(const wxChar *szFormat, va_list argptr); \
> extern void wxLog##level(const wxChar *szFormat, ...) ATTRIBUTE_PRINTF_1
>
> Dave, according to git, you're the one that added this line. Can you do
> something to make it work on debian unstable?

## is the concatenation operator, so:

DECLARE_INT_LOG_FUNCTION(Debug)

Should become:

extern void wxVLogDebug(const wxChar *szFormat, va_list argptr); \
extern void wxLogDebug(const wxChar *szFormat, ...) ATTRIBUTE_PRINTF_1

when it goes through the preprocessor (ignoring ATTRIBUTE_PRINTF_1 of course).

I would probably suggest something like Philippe's proposed fix,
though I'm not sure why it's needed (I don't have an affected system
here to play with at the moment).

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: [PATCH] Improve autocompletion for SELECT statements
Следующее
От: Olly Betts
Дата:
Сообщение: Re: Compilation on Debian SID