Re: array of pointer to function support in GNU C

2010-09-16 Thread Zoltán Kócsi
On Thu, 16 Sep 2010 00:50:07 -0700 J Decker wrote: [...] > > int main(void) > > { > >    void *(*func)(void **); > >    func; > strange that this does anything... since it also requires a pointer to > a pointer... I think the compiler is right: "func" is a pointer to a function. Since the () op

Re: array of pointer to function support in GNU C

2010-09-16 Thread J Decker
nc; strange that this does anything... since it also requires a pointer to a pointer... >    return 1; > } > > compiles just fine > > i do realize that i'm depending on dialect-specific features, so i don't > even know if this is supported on my gcc as of version 4.

Re: array of pointer to function support in GNU C

2010-09-15 Thread Sebastian Redl
This list is really for the development of GCC, not for getting help in C. That said ... On Sep 15, 2010, at 11:15 PM, ir_idjit wrote: > but whatever i do it i just can't get it to work > code: > > some_header.h: > static void *(*oper_table)(void **); That's a pointer to a function taking

array of pointer to function support in GNU C

2010-09-15 Thread ir_idjit
.. i do realize that i'm depending on dialect-specific features, so i don't even know if this is supported on my gcc as of version 4.3.3. if it's not a dialect problem, then this stumps me even more. -- View this message in context: http://old.nabble.com/array-of-pointer-to-function-sup