COMP: Fix malloc/free declaration for windows compilers.
This commit is contained in:
parent
180a45c8c7
commit
8893db3539
|
@ -122,7 +122,6 @@ Run bison like this:
|
||||||
|
|
||||||
Modify cmCommandArgumentParser.cxx:
|
Modify cmCommandArgumentParser.cxx:
|
||||||
- remove TABs
|
- remove TABs
|
||||||
- add __HP_aCC to the #if test for yyerrorlab warning suppression
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -134,6 +133,13 @@ Modify cmCommandArgumentParser.cxx:
|
||||||
cmCommandArgumentError(yyscanner, x)
|
cmCommandArgumentError(yyscanner, x)
|
||||||
#define yyGetParser (cmCommandArgument_yyget_extra(yyscanner))
|
#define yyGetParser (cmCommandArgument_yyget_extra(yyscanner))
|
||||||
|
|
||||||
|
/* Make sure the parser uses standard memory allocation. The default
|
||||||
|
generated parser malloc/free declarations do not work on all
|
||||||
|
platforms. */
|
||||||
|
#include <stdlib.h>
|
||||||
|
#define YYMALLOC malloc
|
||||||
|
#define YYFREE free
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
#include "cmCommandArgumentParserHelper.h" /* Interface to parser object. */
|
#include "cmCommandArgumentParserHelper.h" /* Interface to parser object. */
|
||||||
#include "cmCommandArgumentLexer.h" /* Interface to lexer object. */
|
#include "cmCommandArgumentLexer.h" /* Interface to lexer object. */
|
||||||
|
|
|
@ -25,7 +25,6 @@ Run bison like this:
|
||||||
|
|
||||||
Modify cmCommandArgumentParser.cxx:
|
Modify cmCommandArgumentParser.cxx:
|
||||||
- remove TABs
|
- remove TABs
|
||||||
- add __HP_aCC to the #if test for yyerrorlab warning suppression
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -37,6 +36,13 @@ Modify cmCommandArgumentParser.cxx:
|
||||||
cmCommandArgumentError(yyscanner, x)
|
cmCommandArgumentError(yyscanner, x)
|
||||||
#define yyGetParser (cmCommandArgument_yyget_extra(yyscanner))
|
#define yyGetParser (cmCommandArgument_yyget_extra(yyscanner))
|
||||||
|
|
||||||
|
/* Make sure the parser uses standard memory allocation. The default
|
||||||
|
generated parser malloc/free declarations do not work on all
|
||||||
|
platforms. */
|
||||||
|
#include <stdlib.h>
|
||||||
|
#define YYMALLOC malloc
|
||||||
|
#define YYFREE free
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
#include "cmCommandArgumentParserHelper.h" /* Interface to parser object. */
|
#include "cmCommandArgumentParserHelper.h" /* Interface to parser object. */
|
||||||
#include "cmCommandArgumentLexer.h" /* Interface to lexer object. */
|
#include "cmCommandArgumentLexer.h" /* Interface to lexer object. */
|
||||||
|
|
Loading…
Reference in New Issue