Compile errors on V/386 3.0E
Wietse Z. Venema
wietse at wzv.UUCP
Tue Dec 13 09:21:47 AEST 1988
In article <273 at uport.UUCP> plocher at uport.UUCP (John Plocher) writes:
# (from <signal.h>)
#
# 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 at eutrc3.uucp | Eindhoven University of Technology
work: wswietse at heitue5.bitnet | Mathematics and Computing Science
home: wietse at wzv.uucp | 5600 MB Eindhoven, The Netherlands
More information about the Comp.unix.microport
mailing list