Jeremy,

I was wondering what your reasoning is for changing
int VA_CDECL printf(const char *fmt, ...)
to
int VA_CDECL printf(CONST char FAR *fmt, ...)

are there any format strings that need to be far? Because for just
printing a far string s it's better to use
printf("%S", s);
because printf(s) goes all wrong if there are % signs in s. Moreover,
far strings are more expensive, both for all printf callers and printf
itself, and the prototype no longer matches what DOS compilers use
themselves.

CONST vs. const is probably a stylistic issue -- I guess CONST is only
in the kernel because Pat used pre-ANSI compilers a long time ago
without "const".

Bart

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Freedos-kernel mailing list
Freedos-kernel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to