Arkady V.Belousov wrote:

Hi!

20-Ноя-2005 16:39 [EMAIL PROTECTED] (Kenneth Davis) wrote to
[EMAIL PROTECTED]:


+++ prf.c     20 Nov 2005 16:39:14 -0000      1.31.2.4
@@ -123,17 +123,17 @@
+STATIC void do_printf(const char FAR *, va_list);
+VOID VA_CDECL printf(const char FAR * fmt, ...);

------------------------^^^^^^^^^^
[...]

-VOID VA_CDECL printf(const char *fmt, ...)
+VOID VA_CDECL printf(CONST BYTE FAR *fmt, ...)

------------------------^^^^^^^^^^ Why?


should be VOID VA_CDECL printf(CONST char FAR *fmt, ...), but I was going through several files and the various printf prototypes are somewhat out of sync, so I more or less typed/copied based on the most recent one I had edited/accessed (making them more out of sync I suppose). The VOID/void FAR/far CONST/const STATIC/static thing is about consistency, reusability, and the pretty much gone portability of the kernel

I'll try to recall to sync the prototypes up in one of my next commits.

Jeremy





-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
Freedos-kernel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-kernel

Reply via email to