delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/25/09:32:37

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 <fighteer AT cs DOT com>

-----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------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019