Xref: utzoo comp.unix.questions:25476 comp.unix.internals:279 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!mips!troi!wookie!ivan From: ivan@dbaccess.com (Ivan Covdy) Newsgroups: comp.unix.questions,comp.unix.internals Subject: Is there a way not to use global variables for signal,setjmp,lonjmp? Message-ID: <119@wookie.dbaccess.com> Date: 14 Sep 90 19:16:48 GMT Followup-To: comp.unix.questions Organization: DB/Access Inc., Santa Clara, CA Lines: 19 In: signal( SignalValue, ActionFunction ); the function ActionFunction can be defined only as: void ActionFunction( int ); i.e., it can have only one argument. What should I do if I want to have such ActionFunction, which changes variables, and these variables should not be global/external/static? Are there any ways to pass more arguments to ActionFunction? The same question is for setjmp(Env) and longjmp(Env, 0): are there any ways to get rid of the global variable Env? Your answers will be appreciated. -- Ivan Covdy INTERNET: ivan@dbaccess.com c/o DB/Access Inc. UUCP: {uunet,mips}!troi!ivan 2900 Gordon Avenue, Suite 101 FAX: (408) 735-0328 Santa Clara, CA 95051 TEL: (408) 735-7545