On Mon, 22 Mar 2004 10:29:28 +0000, Bart Oldeman wrote:

Make f_diroff an entry offset so it can be 16bits. Enforce the 65536 entry limit in dir_read(). Saves 80 bytes or so + 2 bytes in every f_node.

Great! Saves 112 bytes of LOW memory for my FILESHIGH=58!


if (new_diroff == 65535)

Borland C++ complains here. Change the constant to 65535UL (see patch below).


Lucho

diff -ruN cvs/kernel/kernel/fatdir.c src/kernel/kernel/fatdir.c
--- cvs/kernel/kernel/fatdir.c  2004-03-22 14:45:54.000000000 +0200
+++ src/kernel/kernel/fatdir.c  2004-03-22 14:49:00.000000000 +0200
@@ -213,7 +213,7 @@
   unsigned new_diroff = fnp->f_diroff;

   /* can't have more than 65535 directory entries */
-  if (new_diroff == 65535)
+  if (new_diroff == 65535UL)
     return DE_SEEK;

/* Directories need to point to their current offset, not for */


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to