From af52c74defb42e0b7dd623236973ca5555deefdf Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Wed, 2 Nov 2005 21:03:51 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ config.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 083974e3..97ce4706 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-02 Joerg Wunsch + + * config.h: change YYSTYPE to be a single word, to work around + a bug in Solaris' yacc. + 2005-11-01 Joerg Wunsch Make avrdude Solaris-compatible. diff --git a/config.h b/config.h index 6436434b..7bdb054f 100644 --- a/config.h +++ b/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;