From 1201b3321b3b3bd4764001145cc5e6494ae6a5a2 Mon Sep 17 00:00:00 2001 From: joerg_wunsch Date: Tue, 11 Feb 2003 21:27:06 +0000 Subject: [PATCH] Move the C declarations to the top of the file. While [b]yacc doesn't care, bison does, and this is normally the way it's meant to be anyway. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@182 81a1dc3b-b13d-400b-aceb-764788c761c2 --- config_gram.y | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/config_gram.y b/config_gram.y index 46399564..75fdfef2 100644 --- a/config_gram.y +++ b/config_gram.y @@ -18,6 +18,26 @@ */ /* $Id$ */ +%{ + +#include +#include +#include + +#include "config.h" +#include "lists.h" +#include "pindefs.h" +#include "ppi.h" +#include "pgm.h" +#include "stk500.h" +#include "avr.h" + +extern char * progname; + +int yylex(void); +int yyerror(char * errmsg); + +%} %token K_READ %token K_WRITE @@ -453,23 +473,6 @@ mem_spec : %% -#include -#include - -#include "config.h" -#include "lists.h" -#include "pindefs.h" -#include "ppi.h" -#include "pgm.h" -#include "stk500.h" -#include "avr.h" - -extern char * progname; - -int yylex(void); -int yyerror(char * errmsg); - - #if 0 static char * vtypestr(int type) {