Hi everybody, I am trying to compile something like this example: -------- code begin -------- typedef void func_t (void); typedef func_t * test_t[2]; void f (test_t *p); void f1 (void); void f2 (void); int main (void) { test_t a = {f1, f2}; f(&a); <-- error on this line return 0; } void f (test_t *p) { return; } void f1 (void) { return; } void f2 (void) { return; } -------- code end -------- What I am trying to do is to have a type which actually is an array of function pointers. gcc (3.3.3 under cygwin) compiles this piece of code without problems, but cc65 gives an "Error: Incompatible pointer types" on marked line. As far as I now this should work. Any ideas? Regards, -- Carlos Sánchez de La Lama <csanchez@sidsa.es> ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Jun 7 13:19:30 2005
This archive was generated by hypermail 2.1.8 : 2005-06-07 13:19:32 CEST