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/avrdude@540 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
5564934a4e
commit
af52c74def
|
@ -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>
|
||||
|
||||
Make avrdude Solaris-compatible.
|
||||
|
|
3
config.h
3
config.h
|
@ -41,6 +41,7 @@ typedef struct token_t {
|
|||
int primary;
|
||||
VALUE value;
|
||||
} TOKEN;
|
||||
typedef struct token_t *token_p;
|
||||
|
||||
|
||||
extern FILE * yyin;
|
||||
|
@ -58,7 +59,7 @@ extern char default_serial[];
|
|||
|
||||
|
||||
#if !defined(HAS_YYSTYPE)
|
||||
#define YYSTYPE struct token_t *
|
||||
#define YYSTYPE token_p
|
||||
#endif
|
||||
extern YYSTYPE yylval;
|
||||
|
||||
|
|
Loading…
Reference in New Issue