Turn #ifdef YACC_WINDOWS to #if 0 to make sure untested & unused code stays unused.

This commit is contained in:
Brian Cox 2017-08-25 21:37:15 -07:00
parent dbc48d0326
commit 265bc4701e
2 changed files with 7 additions and 7 deletions

View File

@ -428,7 +428,7 @@ yy_parse::~yy_parse()
#endif #endif
} }
#ifdef YACC_WINDOWS #if 0 //YACC_WINDOWS
// The initial portion of the yacc parser. // The initial portion of the yacc parser.
// In an windows environment, it will load the desired // In an windows environment, it will load the desired
@ -533,7 +533,7 @@ yy_parse::yyparse(yy_scan* ps)
#endif /* YACC_WINDOWS */ #endif /* YACC_WINDOWS */
{ {
#ifdef YACC_WINDOWS #if 0 //YACC_WINDOWS
short far *yyp; // needed as res tables locked in far memory short far *yyp; // needed as res tables locked in far memory
short far *yyq; short far *yyq;
#else #else
@ -594,7 +594,7 @@ yyEncore:
#endif #endif
} }
#endif #endif
#ifdef YACC_WINDOWS #if 0 //YACC_WINDOWS
if (yystate >= Sizeof_yypact) /* simple state */ if (yystate >= Sizeof_yypact) /* simple state */
#else /* YACC_WINDOWS */ #else /* YACC_WINDOWS */
if (yystate >= (int)sizeof yypact/(int)sizeof yypact[0]) /* simple state */ if (yystate >= (int)sizeof yypact/(int)sizeof yypact[0]) /* simple state */
@ -640,7 +640,7 @@ yyEncore:
* Fell through - take default action * Fell through - take default action
*/ */
#ifdef YACC_WINDOWS #if 0 //YACC_WINDOWS
if (yystate >= Sizeof_yydef) /* simple state */ if (yystate >= Sizeof_yydef) /* simple state */
#else /* YACC_WINDOWS */ #else /* YACC_WINDOWS */
if (yystate >= (int)sizeof yydef /(int)sizeof yydef[0]) if (yystate >= (int)sizeof yydef /(int)sizeof yydef[0])
@ -1265,7 +1265,7 @@ yyError:
, yytp-- , yytp--
#endif #endif
) { ) {
#ifdef YACC_WINDOWS #if 0 //YACC_WINDOWS
if (*yyps >= Sizeof_yypact) /* simple state */ if (*yyps >= Sizeof_yypact) /* simple state */
#else /* YACC_WINDOWS */ #else /* YACC_WINDOWS */
if (*yyps >= (int)sizeof yypact/(int)sizeof yypact[0]) if (*yyps >= (int)sizeof yypact/(int)sizeof yypact[0])

View File

@ -133,7 +133,7 @@ typedef struct yyTypedRules_tag { /* Typed rule table */
} yyTypedRules; } yyTypedRules;
#endif #endif
#ifdef YACC_WINDOWS #if 0 // YACC_WINDOWS
// include all windows prototypes, macros, constants, etc. // include all windows prototypes, macros, constants, etc.
@ -155,7 +155,7 @@ extern HANDLE hInst;
class yy_parse { class yy_parse {
protected: protected:
#ifdef YACC_WINDOWS #if 0 // YACC_WINDOWS
// protected member function for actual scanning // protected member function for actual scanning