help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in YYPARSE_PARAM? suggested workaround?


From: Devin Landes
Subject: bug in YYPARSE_PARAM? suggested workaround?
Date: Thu, 26 Apr 2007 13:42:26 -0700

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/address@hidden/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: address@hidden

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

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]