Hi!

6-Июл-2004 22:42 [EMAIL PROTECTED] (Eric Auer) wrote to
[EMAIL PROTECTED]:

EA> list readers will have been overwhelmed by that. In addition, the patches
EA> often reduce readability of code (optimization seems to be more important),

     How you decise this? Vice versa: I add more comments, where is
possible. For example:

______________O\_/_________________________________\_/O______________
struct config Config = {
  /* UBYTE cfgDosDataUmb;    */ 0,
  /* BYTE  cfgBuffers;       */ NUMBUFF,
[...]
static unsigned MenuSelected = 10; /* =non existing choice */
[...]
} commands [] = {

  /* this one is special since it checked for /N/F before F5/F8 and
     asked for /K/E after menu; DoConfig() changes commands[0].pass */
  {"SWITCHES", 0, CfgSwitches},
[...]
enum {  UMB_NONE,               /* do nothing */
        UMB_DONE,               /* UMB initialized */
        UMB_REQ,                /* DOS=UMB detected */
};

static UBYTE HMAState BSS_INIT(HMA_NONE);
static UBYTE UmbState BSS_INIT(UMB_NONE);
[...]
  /* allocate space in low memory for 3 file handles
     (SFT) in addition to 5 handles, builtin into LOL */
  KernelAllocSFT(LoL->sfthead, 3, 0);
[...]
  /* allocate space for remaining file handles (SFT); 5 are
     already builtin and 3 are allocated in PreConfig3() */
  KernelAllocSFT(LoL->sfthead->sftt_next,
                 Config.cfgFiles - 8, Config.cfgFilesHigh);
_____________________________________________________________________
              O/~\                                 /~\O

_This_ "reduces readability"?!




-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Freedos-kernel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to