Bison is generating the following block of code in my parser:

 

#ifdef YYPARSE_PARAM

# if defined (__STDC__) || defined (__cplusplus)

int yyparse (void *YYPARSE_PARAM)

# else

int yyparse (YYPARSE_PARAM)

  void *YYPARSE_PARAM;

# endif

#else /* ! YYPARSE_PARAM */

#if defined (__STDC__) || defined (__cplusplus)

int

yyparse (void)

#else

int

yyparse ()

    ;

#endif

#endif

 

the semicolon after yyparse() is causing it to break. The internet
suggested that this is a known issue:

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00900.html

 

I was thinking about defining YYPARSE_PARAM or maybe looking into
getting the Microsoft compiler to define __STDC__. Any suggestions on a
Good workaround? Apparently bison 2.3 solves this problem but GnuWin32
doesn't support 2.3 yet. Any thoughts are appreciated.

 

--

Devin Landes

Macrovision, Inc

Email: [EMAIL PROTECTED]

Cell: 415 570 3080 (call 24/7 ringer is silent)

 

_______________________________________________
[email protected] http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to