[EMAIL PROTECTED] (Larry Jones) writes: > Paul Eggert writes: >> >> I should warn you that the C Standard does not allow that sort of >> cast. This is for portability to hosts that use different >> representations for different kinds of pointers; such hosts can use >> different calling conventions for char * and void *, so casting the >> function pointer will result in code that doesn't work. Admittedly >> such hosts are rare (typically they're word-oriented machines) but >> all other things being equal we might as well port to them. > > As far as I know, such hosts are non-existent. While what you say is > quite correct for other pointer types,
Yes, quite true. I should have said "struct mumble *" or "char **" rather than "char *". (Which is the common case anyway, for qsort anyway.) Sorry about the confusion. _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib