Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token
Дата
Msg-id AANLkTikssDTo4+s9bKn6jTLHtiQFgaUiGj1kvrSe44ui@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token  (Dave Page <dpage@pgadmin.org>)
Список pgadmin-hackers
On 12 March 2011 19:13, Guillaume Lelarge <guillaume@lelarge.info> wrote:
> Maybe a stupid question but what is the ! in the variable name
> (ex_hash_setop_except_png!_data)?

There's no good reason. It isn't a valid identifier name.

Whatever preprocessor generates ex_hash_setop_except.pngc and other
files like it is broken.

Take a look at this code, at line 205 of same, that clearly illustrates this:

static wxIcon *ex_hash_setop_except_png!_ico()
{
    static wxIcon *ico_ex_hash_setop_except_png!;
    if (!ico_ex_hash_setop_except_png! || !ico_ex_hash_setop_except_png!->IsOk())
    {
        ico_ex_hash_setop_except_png! = new wxIcon();
        ico_ex_hash_setop_except_png!->CopyFromBitmap(*ex_hash_setop_except_png!_bmp);
    }
    return ico_ex_hash_setop_except_png!;
}

--
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: [pgadmin-hackers] Re: [pgadmin-hackers] error: expected initializer before ‘!’ token
Следующее
От: "pgAdmin Trac"
Дата:
Сообщение: Re: [pgAdmin III] #301: Support for Basic Recovery Control functions for use in Hot Standby