From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: I need help!!! Date: Tue, 24 Jun 1997 19:48:01 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 22 Message-ID: <33B02471.633F@cs.com> References: <33AC6429 DOT 3B57 AT user1 DOT channel1 DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp102.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk darkstar AT user1 DOT channel1 DOT com wrote: > > Ok, I would like to know how you "lock" a variable. Could > someone give me an example? Also, does Djgpp use function variables? Examine the libc docs for _go32_dpmi_lock_code(), _go32_dpmi_lock_data() and the more general function, __dpmi_lock_linear_region(). These items have brief examples; look at any library that installs handlers, such as mkkbd3 or libkb, to see how they are used in practice. As stated, DJGPP allows function pointers; it's a requirement of ANSI C. Want examples? Email privately. -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>++ W++ N++ o+>++ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+(++) tv+() b+++ DI++ D++ G>++ e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------