Path: utzoo!attcan!uunet!mcvax!hp4nl!eutrc3!wzv!wietse From: wietse@wzv.UUCP (Wietse Z. Venema) Newsgroups: comp.unix.microport Subject: Re: Compile errors on V/386 3.0E Summary: signal is not void Message-ID: <170@wzv.UUCP> Date: 12 Dec 88 23:21:47 GMT References: <680@wa3wbu.UUCP> <417@zinn.MV.COM> <273@uport.UUCP> Reply-To: wietse@wzv.UUCP (Wietse Z. Venema) Organization: Eindhoven University of Technology, The Netherlands Lines: 25 In article <273@uport.UUCP> plocher@uport.UUCP (John Plocher) writes: # (from ) # # extern void(*signal())(); # extern void(*sigset())(); # # The news code assumes signal() is of type int; signal.h declares it as type # void, and the compiler says "oops", just like it should. The >>warning<< # >>seems<< to be ignorable. # [...] # I thought type void meant "nothing returned", yet signal is clearly type void # and it returns something! What don't I understand here? :-) # # John Plocher Actually, signal is not of type void: cdecl> explain void(*signal())() declare signal as function returning pointer to function returning void So it really is declared as returning something... -- work: wswietse@eutrc3.uucp | Eindhoven University of Technology work: wswietse@heitue5.bitnet | Mathematics and Computing Science home: wietse@wzv.uucp | 5600 MB Eindhoven, The Netherlands