home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!usc!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!uklirb!posthorn!vier!neuhaus
- From: neuhaus@vier.informatik.uni-kl.de (Stephan Neuhaus (HiWi Mattern))
- Subject: Re: Using Setexec() [a bit of help needed]
- Message-ID: <neuhaus.714133626@vier>
- Keywords: Setexec(), BIOS, vectors, AAARRRGGGGHHHH!
- Sender: news@posthorn.informatik.uni-kl.de (News system account)
- Nntp-Posting-Host: vier.informatik.uni-kl.de
- Organization: University of Kaiserslautern, Germany
- References: <1992Aug17.083005.6390@aber.ac.uk> <1992Aug17.175736.7804@pbhya.PacBell.COM>
- Date: Tue, 18 Aug 1992 10:27:06 GMT
- Lines: 31
-
- dbsuthe@pbhya.PacBell.COM (Daniel B. Suthers) writes:
-
- >The following code should compile and execute under any C compiler.
- >[some program text deleted]
-
- > void (*jumpto)();
- > void sec_on();
-
- > jumpto = sec_on;
- > jumpto();
-
- Just nit-picking, but it will only work with ANSI C compilers (as
- opposed to `any' C compiler). For K&R C, you'd have to write
-
- (*jumpto)();
-
- Furthermore, to make the thing bullet-proof, you could declare jumpto as
-
- void (*jumpto) (void);
-
- >This is standard C stuff.
-
- Yes, but not every C compiler understands standard (= ANSI) C. As I
- said before, I was just nit-picking, and this is not a flame.
-
- Have fun.
- --
- +------- No .sig? OH, COME ON! --------+-"The derivative snuggles close to-+
- | email: neuhaus@informatik.uni-kl.de | the function---whatever to snuggle |
- | snail mail: Stephan Neuhaus/Hilgard- | means; I'm too old for that" |
- | ring 32/6750 Kaiserslautern/Germany | -- Math Prof |
-