Date: Thu, 22 Oct 1998 10:08:37 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: matt v cc: djgpp AT delorie DOT com Subject: Re: that code to lock data with bcsio20.zip In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.