cvs commit: src/lib/libc/stdio vfprintf.c vfwprintf.c

David Schultz das at
Sun Jun 29 21:01:44 UTC 2008

das         2008-06-29 21:01:27 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       vfprintf.c vfwprintf.c 
  SVN rev 180102 on 2008-06-29 21:01:27Z by das
  Begin de-spaghettifying the code that handles positional arguments.
  In particular, encapsulate the state of the type table in a struct,
  and add inline functions to initialize, free, and manipulate that
  state. This replaces some ugly macros that made proper error handling
  While here, remove an unneeded test for NULL and a variable that is
  initialized (many times!) but never used. The compiler didn't catch
  these because of rampant use of the same variable to mean different
  things in different places.
  This commit should not cause any changes in functionality.
  Revision  Changes    Path
  1.79      +153 -94   src/lib/libc/stdio/vfprintf.c
  1.30      +153 -94   src/lib/libc/stdio/vfwprintf.c

More information about the cvs-src mailing list