Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!ltuxa!we53!abstl!wucs!wucec2!jdz From: jdz@wucec2.UUCP Newsgroups: net.lang.c Subject: Re: pointers to void functions Message-ID: <1364@wucec2.UUCP> Date: Mon, 17-Feb-86 22:10:01 EST Article-I.D.: wucec2.1364 Posted: Mon Feb 17 22:10:01 1986 Date-Received: Wed, 19-Feb-86 00:58:45 EST References: <943@h-sc1.UUCP> Reply-To: jdz@wucec2.UUCP (Jason D. Zions) Distribution: net Organization: Wash. U. Center for Engineering Computing Lines: 18 In article <943@h-sc1.UUCP> clarke@h-sc1.UUCP (cam clarke) writes: >I wrote this piece of code to experiment with catching signals under 4.2 BSD >Unfortunately, cc and lint don't like the assignment "tch = catch;" >I can't figure out why, but when I change catch to be an int function and >change tch to point to an int function, my problem disappears. Anyone know >why? [code omitted] 4.2 has some known deficiencies in its handling of void. The one you bring up (catch is a function returning void, tch is of type pointer to function returning void) is one of these. 4.3BSD cc fixes these bugs and results in consistent handling of void. 4.3 should be available Real Soon Now. Hope the workaround doesn't hurt too bad... -- Jason D. Zions ...!{seismo,cbosgd,ihnp4}!wucs!wucec2!jdz Box 1045 Washington University St. Louis MO 63130 USA (314) 889-6160 Nope, I didn't say nothing. Just random noise.