www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/04:42:20

Date: Thu, 22 Oct 1998 10:08:37 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: matt v <mvan AT ravine DOT binary DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: that code to lock data with bcsio20.zip
In-Reply-To: <Pine.BSF.3.96.981021183157.26603A-100000@ravine.binary.net>
Message-ID: <Pine.SUN.3.91.981022100819.2003Q-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Wed, 21 Oct 1998, matt v wrote:

> Is there a way to copy that code (i think its 5 or 6 lines)
> into a file to just include at compile time or would i have to write those
> couple lines in each and every program i wanted to write?

Write a function which does that and call it whenever you need with
suitable arguments (the beginning and the end of the locked region).
You can use the preprocessor ## magic to generate the names like
foo_end for any given function foo, if you need that.

- Raw text -


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