make sure a '\0' is at the end of an snprintf'ed string
[libfirm] / ir / external / read_t.h
index 5128069..c5193a9 100644 (file)
 #ifndef _READ_T_H_
 #define _READ_T_H_
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-
-#include <libxml/xmlmemory.h>
-#include <libxml/parser.h>
-#include <libxml/encoding.h>
-
-#include "type.h"
-#include "entity.h"
-#include "ident.h"
-
-# define MY_ENCODING "ISO-8859-1"
-
-# define CHECK(ptr,msg)     assert (ptr && msg)
-
-# define NODE_NAME(n, m) (0 == xmlStrcmp (n->name, (const xmlChar*) #m))
-# define CHECK_NAME(n, m) assert (0 == xmlStrcmp (n->name, (const xmlChar*) #m))
-
-# define NEW(T)     (T*) malloc (sizeof (T))
-
+#include "firm_types.h"
 
 /* first, the xml structures */
 
@@ -42,7 +22,7 @@ typedef struct type_str
 {
   const ident *type_ident;
   const ident *id;              /* id for references */
-  type *f_tp;                   /* firm type */
+  ir_type *f_tp;                /* firm type */
   struct type_str *prev;
 } type_t;
 
@@ -183,6 +163,13 @@ typedef struct mod_str
 
 /*
   $Log$
+  Revision 1.3  2006/06/09 11:26:35  firm
+  renamed type to ir_type
+
+  Revision 1.2  2004/12/10 15:14:16  beck
+  Removed unused header files
+  move xml macros to read.c, freeing the header from libxml depency
+
   Revision 1.1  2004/10/25 13:52:24  boesler
   seperated read.h (public interface) and read_t.h (types)