[Opentnl-cvs] tnl/tnl platform.cpp,1.7,1.8 tnlPlatform.h,1.2,1.3
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <mar...@us...> - 2005-03-22 09:18:46
|
Update of /cvsroot/opentnl/tnl/tnl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14197/tnl Modified Files: platform.cpp tnlPlatform.h Log Message: Fixed va_list parameter issue for dVsprintf Index: platform.cpp =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/platform.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** platform.cpp 20 Aug 2004 18:26:58 -0000 1.7 --- platform.cpp 22 Mar 2005 09:18:35 -0000 1.8 *************** *** 448,457 **** ! S32 dVsprintf(char *buffer, U32 bufferSize, const char *format, void *arglist) { #ifdef TNL_COMPILER_VISUALC ! S32 len = _vsnprintf(buffer, bufferSize, format, (va_list) arglist); #else ! S32 len = vsnprintf(buffer, bufferSize, format, (char *) arglist); #endif return len; --- 448,457 ---- ! S32 dVsprintf(char *buffer, U32 bufferSize, const char *format, va_list arglist) { #ifdef TNL_COMPILER_VISUALC ! S32 len = _vsnprintf(buffer, bufferSize, format, arglist); #else ! S32 len = vsnprintf(buffer, bufferSize, format, arglist); #endif return len; Index: tnlPlatform.h =================================================================== RCS file: /cvsroot/opentnl/tnl/tnl/tnlPlatform.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tnlPlatform.h 28 Sep 2004 18:45:25 -0000 1.2 --- tnlPlatform.h 22 Mar 2005 09:18:36 -0000 1.3 *************** *** 32,35 **** --- 32,37 ---- #endif + #include <stdarg.h> + namespace TNL { *************** *** 106,110 **** /// /// This will print into the specified string until the buffer size is reached. ! extern int dVsprintf(char *buffer, U32 bufferSize, const char *format, void *arglist); ///< compiler independent inline char dToupper(const char c) { if (c >= char('a') && c <= char('z')) return char(c + 'A' - 'a'); else return c; } ///< Converts an ASCII character to upper case. --- 108,112 ---- /// /// This will print into the specified string until the buffer size is reached. ! extern int dVsprintf(char *buffer, U32 bufferSize, const char *format, va_list arglist); ///< compiler independent inline char dToupper(const char c) { if (c >= char('a') && c <= char('z')) return char(c + 'A' - 'a'); else return c; } ///< Converts an ASCII character to upper case. |