Instead of defining YYSTYPE to be a struct token_t *, make this a

two-step declaration, and first define token_p to be a token_t *,
and then define YYSTYPE to token_p.  That works around a bug in
Solaris' yacc.


git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@540 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2005-11-02 21:03:51 +00:00
parent 496ab3fd81
commit 5105a871be
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-02 Joerg Wunsch <j@uriah.heep.sax.de>
* config.h: change YYSTYPE to be a single word, to work around
a bug in Solaris' yacc.
2005-11-01 Joerg Wunsch <j@uriah.heep.sax.de> 2005-11-01 Joerg Wunsch <j@uriah.heep.sax.de>
Make avrdude Solaris-compatible. Make avrdude Solaris-compatible.

View File

@ -41,6 +41,7 @@ typedef struct token_t {
int primary; int primary;
VALUE value; VALUE value;
} TOKEN; } TOKEN;
typedef struct token_t *token_p;
extern FILE * yyin; extern FILE * yyin;
@ -58,7 +59,7 @@ extern char default_serial[];
#if !defined(HAS_YYSTYPE) #if !defined(HAS_YYSTYPE)
#define YYSTYPE struct token_t * #define YYSTYPE token_p
#endif #endif
extern YYSTYPE yylval; extern YYSTYPE yylval;