From: Claudio V. C. <ro...@us...> - 2005-09-25 09:30:02
|
Update of /cvsroot/firebird/vulcan/src/alice In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5053/src/alice Modified Files: alice.cpp Log Message: It seems to me that Vulcan was missing nearly 30 va_end's, so I put them but found places where it can't be put and signaled those with FB_COMPILER_MESSAGE because a throw happens and the exception's constructor is using the varargs. Index: alice.cpp =================================================================== RCS file: /cvsroot/firebird/vulcan/src/alice/alice.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -b -U3 -r1.6 -r1.7 --- alice.cpp 24 Sep 2005 05:53:54 -0000 1.6 +++ alice.cpp 25 Sep 2005 09:29:53 -0000 1.7 @@ -660,6 +660,7 @@ va_start (args, number); TEXT buffer[256]; MsgFormat::format(ALICE_MSG_FAC, number, args, sizeof(buffer), buffer); + va_end(args); //gds__msg_format(0, ALICE_MSG_FAC, number, sizeof(buffer), buffer, arg1, arg2, arg3, arg4, arg5); translate_cp(buffer); @@ -748,6 +749,7 @@ TEXT buffer[256]; MsgFormat::format(ALICE_MSG_FAC, number, args, sizeof(buffer), buffer); + va_end(args); //gds__msg_format(0, ALICE_MSG_FAC, number, sizeof(buffer), buffer, arg1, arg2, arg3, arg4, arg5); translate_cp(buffer); alice_output(tdgbl, "%s\n", buffer); |