mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 22:45:27 +00:00
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
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user