Skip to content
  • deuce's avatar
    Beginnings of a solution to the vararg problem. This problem surfaces on · 1e974066
    deuce authored
    a number of non-x86 archetectures, most notably I64 and Linux/PPC.
    
    Essentially, the problem is that there is NO way to portably contruct a
    va_list at run-time.  Currently, this is done in (at least) execmisc.cpp
    (and probobly in js_global.c or wherever format() and friends are)
    
    This provides an alternate method of handling such issues which could
    (potentially) solve the problem as well as add float/double support.
    Comments are encouraged.  This is *NOT* part of the xpdev build and will
    not be until it is tested and the marked ToDo items are dealt with.
    Further, it most likely won't be *USED* in Synchronet until v4, or until
    it recieves heavy testing on a very wide range of platforms and format
    specifiers.
    
    xp_*printf() functions for all the standard *printf() functions should be
    written, including asprintf() and vasprintf() from the GNU C library.
    This will require a new type argument (XP_PRINTF_TYPE_AUTO perhaps) which
    will assume that the passed argument is the correct type.
    1e974066