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
This commit is contained in:
joerg_wunsch 2003-02-11 21:27:06 +00:00
parent e018acd263
commit 1201b3321b
1 changed files with 20 additions and 17 deletions

View File

@ -18,6 +18,26 @@
*/ */
/* $Id$ */ /* $Id$ */
%{
#include <stdlib.h>
#include <string.h>
#include <math.h>
#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_READ
%token K_WRITE %token K_WRITE
@ -453,23 +473,6 @@ mem_spec :
%% %%
#include <string.h>
#include <math.h>
#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 #if 0
static char * vtypestr(int type) static char * vtypestr(int type)
{ {