Mail Archives: djgpp-workers/1998/03/21/05:36:11
> I would suggest a procedure __djgpp_protect_text(onoff) which could
IMVHO it could be even better if it doesen't need a function call.
Just something like :
--8<--
#if defined(__DJGPP_PROTECT_TEXT)
static int _djgpp_protect_text=1;
#else
static int _djgpp_protect_text=0;
#endif
--8<--
in an header file. So if I define __DJGPP_PROTECT_TEXT the text is
protected. It's just a portability issue: if I place a function call in
the code, I'll have to strip it out when porting. If I define a macro,
I've just do leave it out :-)
Just my $.02
BYtE,
Diego (Fidonet node 2:332/437)
- Raw text -