added parser/parser.h for a common YYSTYPE definition location
git-svn-id: svn://anubis/fart/trunk@116 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
parent
ecc06433fc
commit
2a816c1c1a
7
parser/parser.h
Normal file
7
parser/parser.h
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
#ifndef PARSER_H
|
||||
#define PARSER_H PARSER_H
|
||||
|
||||
#define YYSTYPE refptr<Node>
|
||||
|
||||
#endif
|
@ -4,7 +4,7 @@
|
||||
%{
|
||||
|
||||
#include "nodes.h"
|
||||
#define YYSTYPE refptr<Node>
|
||||
#include "parser.h"
|
||||
#include "parser.tab.hh"
|
||||
|
||||
%}
|
||||
|
@ -9,6 +9,7 @@
|
||||
#include "util/refptr.h"
|
||||
#include "shapes/Shape.h" /* includes all shape types */
|
||||
#include "nodes.h"
|
||||
#include "parser.h"
|
||||
using namespace std;
|
||||
|
||||
int yylex(void);
|
||||
@ -25,7 +26,6 @@ int yywrap()
|
||||
return 1;
|
||||
}
|
||||
|
||||
#define YYSTYPE refptr<Node>
|
||||
|
||||
static Scene * g_scene;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user