This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Possible bug in dbg-threads-syscall.c
- From: "Patrick Doyle" <wpd at delcomsys dot com>
- To: "Robin Farine" <acnrf at dial dot eunet dot ch>
- Cc: "eCos" <ecos-discuss at sourceware dot cygnus dot com>
- Date: Tue, 4 Dec 2001 14:45:15 -0500
- Subject: RE: [ECOS] Possible bug in dbg-threads-syscall.c
> I guess C defines '*f' as a "function" :-P
>
> Seriously, since C allows this:
>
> typedef int int_fun(int);
>
> then the type 'int_fun' represents the set of functions that take
> an int in
> argument and that return an int. Then,
>
> int_fun* int_fun_ptr;
>
> naturally defines a pointer to such functions and
That's what makes sense to me. So then what does:
if (*int_fun_ptr == 0) blah()
mean?
(I know, we are way off topic here, but it does seem like a bizarre thing to
test).
>
> HTMS,
^^^^
That's one I haven't seen before... what is it?
--wpd