Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!kong!emory!stiatl!meo From: meo@stiatl.UUCP (Miles O'Neal) Newsgroups: comp.windows.x Subject: common routines Message-ID: <3038@stiatl.UUCP> Date: 9 Feb 89 21:39:35 GMT Distribution: na Organization: Sales Technologies Inc., Atlanta, GA Lines: 16 In article <8902091719.AA02641@DORA.MIT.EDU> kit@ATHENA.MIT.EDU (Chris D. Peterson) writes: >> If I need the same code in several types of widgets (eg, IgnoreChar - >> a routine to throw away unwanted characters), do I need a static copy >> of this in each widget.c file, or can I just stick a non-static version >> in a common library? >I suppose that you could declare the function as external in the widget, >then add it to the widget's action table. This should cause everything >to work correctly. This is the type of thing I had in mind. What I was wondering was whether, since "interrupt handlers are not reentrant" (someone - Ralph Swick, maybe?) speaking at the recent MIT X11 seminar), is this a safe thing to do? In other words, am I confusing two issues here? All of this assumes, of course, that I write my code perfectly... (lest the Softies bust me). -Miles