Re: [pgsql-hackers-win32] snprintf causes regression tests

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [pgsql-hackers-win32] snprintf causes regression tests
Дата
Msg-id 200503141939.j2EJdJS21703@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [pgsql-hackers-win32] snprintf causes regression tests to fail  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [pgsql-hackers-win32] snprintf causes regression tests to fail  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I am wondering if we should just process long long args and %$ args,
> > and pass everything else to the native snprintf.
>
> AFAICS this is a non-starter --- how will you construct the call to
> snprintf?  Or even vsnprintf?  C doesn't provide the tools you need
> to make it happen.

Couldn't you spin through the varargs and reconstruct a new one?
Is there no way to create a va_arg va_list structure in C?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Avoiding tuple construction/deconstruction during joining
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-hackers-win32] snprintf causes regression tests to fail