Commit 6f68dc3a authored by Christian Schäfer's avatar Christian Schäfer
Browse files

*** empty log message ***

[r53]
parent eed0e43a
31.7.2000 Chris
Fixed a bug, caused by the recursive use in type.h and entity.h.
Deleted the _TYPE_TYPEDEF_ and inserted the _ENTITY_TYPEDEF_ instead.
20.7.2000 Goetz
Fixed bug in optimize(). Returned Null instead n if
......
......@@ -30,6 +30,7 @@
# define _ENTITY_H_
# include "ident.h"
# include "type.h"
/*******************************************************************/
/** general **/
......@@ -48,13 +49,20 @@ void init_entity (void);
typedef struct ir_graph ir_graph;
#endif
#ifndef _TYPE_TYPEDEF_
#define _TYPE_TYPEDEF_
/* to resolve recursion between entity.h and irgraph.h */
typedef union type type;
#ifndef _ENTITY_TYPEDEF_
#define _ENTITY_TYPEDEF_
/* to resolve recursion between entity.h and type.h */
typedef struct entity entity;
#endif
typedef struct entity entity;
/*CS*/
//#ifndef _TYPE_TYPEDEF_
//#define _TYPE_TYPEDEF_
/* to resolve recursion between entity.h and irgraph.h */
//typedef union type type;
//#endif
//typedef struct entity entity;
/* create a new entity */
entity *new_entity (type *owner, ident *name, type *type);
......
......@@ -183,14 +183,22 @@ or lowering phases.
# include "common.h"
# include "ident.h"
# include "irmode.h"
# include "entity.h"
/*CS*/
//# include "entity.h"
#ifndef _ENTITY_TYPEDEF_
#define _ENTITY_TYPEDEF_
/* to resolve recursion between entity.h and type.h */
typedef struct entity entity;
#endif
/* for recursive type definiton */
#ifndef _TYPE_TYPEDEF_
#define _TYPE_TYPEDEF_
//#ifndef _TYPE_TYPEDEF_
//#define _TYPE_TYPEDEF_
/* to resolve recursion between entity.h and irgraph.h */
typedef union type type;
#endif
//#endif
/* visited flag to traverse the type information */
extern unsigned long type_visited;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment