Re: [Freedos-kernel] sys.c issues

2004-02-24 Thread Arkady V.Belousov
Hi!

 BTW, for checking target drive validness I add next code (where
`drive' is a drive letter):

__O\_/_\_/O__
  {
static char src [] =  :\\, dst [SYS_MAXPATH] /*= */;
src [0] = drive;
truename (dst, src);
if (dst [0] = '\0') {
  printf (PGM : invalid target drive: %c:\n, drive);
  exit(1);
}
if (stricmp (dst, src)) {
  printf (PGM : SUBSTed and networked drives are not accepted!\n);
  exit(1);
}
  }
_
  O/~\ /~\O




---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel


Re: [Freedos-kernel] Patch: Code wipe bug really fixed at last!

2004-02-24 Thread Luchezar Georgiev
On Tue, 24 Feb 2004 14:22:36 + (GMT), Bart Oldeman wrote:

Good catch! I have now integrated your patch collection.
Thank you, Bart! I saw the patches in the CVS list.

Except that I opted to simply do
nasm -D_INIT -fobj -o iasmsupt.obj asmsupt.asm
This really doesn't make the makefile more complicated IMHO...
Of course.

Maybe I can play a bit with NASMs preprocessor so that
nasm -fobj asmsupt.asm
will just produce 1 asmsupt.obj with INIT_TEXT and HMA_TEXT sections,
just like execrh.obj. Will try that later. Then the makefile will be back
to what it used to be.
EXECRH.ASM has a large macro invoked twice. I think that applying this techinque for ASMSUPT.ASM may render it somewhat unreadable and difficult to maintain. Just a personal opinion ;-)

For iprf.c the prime reason for inclusion of prf.c is that the command
line was overflowing for Turbo C. For NASM we don't have this problem.
I see! Thanks for explaining that.

Lucho

---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel