Re: Passing va_args...

2006-03-09 Thread Jean-Yves Bitterlich
Kalaky [EMAIL PROTECTED] writes: I'am looking for some way to pass variable arguments to another function that receives variable arguments without using va_list. This is impossible. what about? #define DOTS ... function_1 (int z, ...); function_2 (int z, ...); { return function_1 (z,

Re: Passing va_args...

2006-03-09 Thread Jean-Yves Bitterlich
Kalaky [EMAIL PROTECTED] writes: I'am looking for some way to pass variable arguments to another function that receives variable arguments without using va_list. This is impossible. what about? #define DOTS ... function_1 (int z, ...); function_2 (int z, ...); { return function_1

RE: Passing va_args...

2006-03-09 Thread Dave Korn
On 09 March 2006 13:11, Jean-Yves Bitterlich wrote: Jean, do you know you're replying to an email from October 2005? Ah well, I see the thread ended without all the information coming out, Andreas said it was impossible but didn't go into the details so it's worth mentioning the builtins.

Re: Passing va_args...

2006-03-09 Thread Jean-Yves Bitterlich
Dave Korn wrote: On 09 March 2006 13:11, Jean-Yves Bitterlich wrote: Jean, do you know you're replying to an email from October 2005? Ah well, I see the thread ended without all the information coming out, Andreas said it was impossible but didn't go into the details so it's worth

Passing va_args...

2005-10-14 Thread Kalaky
Hello, Once I saw a gcc macro that passes variables arguments to another variable argument function..example: function_1 (int z, ...); function_2 (int z, ...); { return function_1 (z, MACRO); } Does anyone remember the macro name ? TIA

Re: Passing va_args...

2005-10-14 Thread Kean Johnston
I'am looking for some way to pass variable arguments to another function that receives variable arguments without using va_list. This is impossible. USL C has a very neat construct called '...' which was designed for exactly this purpose. One day when I have idle cycles (yeah right) I will