[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shared text, shared libs again



	Bonsoir,

Dans son message, Michael Schwingen a écrit :

« Hm. That would mean that a pointer to function would have a different size
« than other pointers - is this allowed by ANSI?

	I think...

« What about void*, which should be able to be cast to any pointer?

	... because lcc and some other strict-ansi C-compilers don't like at
all when passing NULL = (void *) 0L instead of a valid function-adress as a
function-parameter : on must explicitely cast NULL to the actual kind of
function pointer [eventually including the complete descriptiom, like (int
*)(int, int,...) - in strict ANSI lcc to avoid warnings] -> I think (void *)
can't really stand for a function pointer.

-- 
				Emmanuel CURIS
				Emmanuel.Curis@ens.fr

Page sur l'hypertoile : http://www.eleves.ens.fr:8080/home/curis/index.html