File tree Expand file tree Collapse file tree 3 files changed +26
-9
lines changed
Expand file tree Collapse file tree 3 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,13 @@ struct Express_ {
9898# define INITIALLY (value )
9999#endif /*EXPRESS_C*/
100100
101+ #ifdef YYDEBUG
102+ extern SCL_EXPRESS_EXPORT int yydebug ;
103+ extern SCL_EXPRESS_EXPORT int yydbg_upper_limit ;
104+ extern SCL_EXPRESS_EXPORT int yydbg_lower_limit ;
105+ extern SCL_EXPRESS_EXPORT int yydbg_verbose ;
106+ #endif
107+
101108GLOBAL SCL_EXPRESS_EXPORT Linked_List EXPRESS_path ;
102109GLOBAL SCL_EXPRESS_EXPORT int EXPRESSpass ;
103110
@@ -274,7 +281,7 @@ extern SCL_EXPRESS_EXPORT void EXPRESSresolve PROTO( ( Express ) );
274281extern SCL_EXPRESS_EXPORT char * EXPRESSversion PROTO ( ( void ) );
275282extern SCL_EXPRESS_EXPORT int EXPRESS_fail PROTO ( ( Express ) );
276283extern SCL_EXPRESS_EXPORT int EXPRESS_succeed PROTO ( ( Express ) );
277- extern SCL_EXPRESS_EXPORT void EXPRESSinit_init PROTO ( ( void ) );
284+ extern void EXPRESSinit_init PROTO ( ( void ) );
278285#if 0
279286extern void EXPRESSdump_model PROTO ( ( Express ) );
280287#endif /*0*/
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ ENDIF()
1717
1818add_definitions ( -DYYDEBUG ) #always define this. equivalent to 'bison -t'
1919
20-
2120YACC_TARGET (ExpParser expparse.y ${CMAKE_CURRENT_BINARY_DIR} /expparse.c COMPILE_FLAGS ${YACC_FLAGS} )
2221LEX_TARGET (ExpScanner expscan.l ${CMAKE_CURRENT_BINARY_DIR} /expscan.c COMPILE_FLAGS ${LEX_FLAGS} )
2322ADD_LEX_YACC_DEPENDENCY (ExpScanner ExpParser )
@@ -48,8 +47,15 @@ set(EXPRESS_SOURCES
4847)
4948
5049SET (CHECK_EXPRESS_SOURCES
51- fedex.c
50+ fedex.c
51+ )
52+
53+ IF (MSVC )
54+ set (CHECK_EXPRESS_MSVC_SOURCES
55+ xgetopt.cc
56+ inithook.c
5257)
58+ ENDIF (MSVC )
5359
5460SET (EXPRESS_PRIVATE_HDRS
5561 conf.h
@@ -66,7 +72,6 @@ add_definitions( -DFLEX )
6672
6773if (MSVC )
6874add_definitions ( -DYY_NO_UNISTD_H )
69- add_definitions ( -DSCL_EXPRESS_DLL_EXPORTS )
7075endif (MSVC )
7176
7277SCL_ADDLIB (express "${EXPRESS_SOURCES} " "" )
@@ -75,4 +80,9 @@ if(APPLE)
7580 set_target_properties (express PROPERTIES LINK_FLAGS "-flat_namespace -undefined suppress" )
7681endif (APPLE )
7782
78- # SCL_ADDEXEC("check-express" "${CHECK_EXPRESS_SOURCES}" express)
83+ SCL_ADDEXEC ("check-express" "${CHECK_EXPRESS_SOURCES} ${CHECK_EXPRESS_MSVC_SOURCES} " express )
84+
85+ if (MSVC )
86+ set_target_properties (express PROPERTIES COMPILE_DEFINITIONS SCL_EXPRESS_DLL_EXPORTS )
87+ set_target_properties ("check-express" PROPERTIES COMPILE_DEFINITIONS SCL_EXPRESS_DLL_IMPORTS )
88+ endif (MSVC )
Original file line number Diff line number Diff line change 8787#include "express/resolve.h"
8888
8989#ifdef YYDEBUG
90- extern int yydebug ;
91- extern int yydbg_upper_limit ;
92- extern int yydbg_lower_limit ;
93- extern int yydbg_verbose ;
90+ extern SCL_EXPRESS_EXPORT int yydebug ;
91+ extern SCL_EXPRESS_EXPORT int yydbg_upper_limit ;
92+ extern SCL_EXPRESS_EXPORT int yydbg_lower_limit ;
93+ extern SCL_EXPRESS_EXPORT int yydbg_verbose ;
9494#endif /*YYDEBUG*/
9595
9696extern SCL_EXPRESS_EXPORT int skip_exp_pause ;
You can’t perform that action at this time.
0 commit comments