From 4eb4b7c115531fd2656470df1b1394d0619d5230 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@182 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/config_gram.y | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/avrdude/config_gram.y b/avrdude/config_gram.y index 46399564..75fdfef2 100644 --- a/avrdude/config_gram.y +++ b/avrdude/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) {