public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Calling function with va_list
@ 2004-11-25  3:02 Jan Ringoš
  2004-11-27  4:55 ` Geoffrey Keating
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Ringoš @ 2004-11-25  3:02 UTC (permalink / raw)
  To: gcc

Hello,

may I ask if it is possible to call any function with prepared va_list?
I mean how can I construct call when I have my own constructed va_list, pointer 
in form "int (*func)()" to function e.g. "int func(int a, int b, int c)".
Maybe "__builtin_apply" could solve this problem, but I am unable to find any 
information about how to build arguments to this function (something similar 
that __builtin_apply_args returns but in my own).
Thanks for any ideas?

PS: How can I register to get all e-mails from this maillist? I am not even sure 
if this is maillist :)

---
Jan Ringoš, Tringi@Mx-3.cz
http://Tringi.Mx-3.cz 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Calling function with va_list
  2004-11-25  3:02 Calling function with va_list Jan Ringoš
@ 2004-11-27  4:55 ` Geoffrey Keating
  0 siblings, 0 replies; 2+ messages in thread
From: Geoffrey Keating @ 2004-11-27  4:55 UTC (permalink / raw)
  To: Jan Ringo¹; +Cc: gcc

Jan Ringo¹ <tringi@mx-3.cz> writes:

> Hello,
> 
> may I ask if it is possible to call any function with prepared va_list?
> I mean how can I construct call when I have my own constructed
> va_list, pointer in form "int (*func)()" to function e.g. "int
> func(int a, int b, int c)".
> Maybe "__builtin_apply" could solve this problem, but I am unable to
> find any information about how to build arguments to this function
> (something similar that __builtin_apply_args returns but in my own).
> Thanks for any ideas?

You want the libffi library, which is provided with gcc but is not
part of the compiler itself.

> PS: How can I register to get all e-mails from this maillist? I am not
> even sure if this is maillist :)

You really want the gcc-help@gcc.gnu.org mailing list.  This list is
about how to write GCC, not how to use it.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-27  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-25  3:02 Calling function with va_list Jan Ringoš
2004-11-27  4:55 ` Geoffrey Keating

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).