]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/gengtype.h
This patch rewrites the old VEC macro-based interface into a new one
[thirdparty/gcc.git] / gcc / gengtype.h
index e687e488567db156bc865011c2af7406943844f0..57a67fbfecbf890a94b5a1597a1fcd7d59b66311 100644 (file)
@@ -134,6 +134,9 @@ extern pair_p variables;
 
 enum typekind {
   TYPE_NONE=0,          /* Never used, so zeroed memory is invalid.  */
+  TYPE_UNDEFINED,      /* We have not yet seen a definition for this type.
+                          If a type is still undefined when generating code,
+                          an error will be generated.  */
   TYPE_SCALAR,          /* Scalar types like char.  */
   TYPE_STRING,          /* The string type.  */
   TYPE_STRUCT,          /* Type for GTY-ed structs.  */
@@ -423,6 +426,7 @@ extern type_p resolve_typedef (const char *s, struct fileloc *pos);
 extern type_p new_structure (const char *name, enum typekind kind,
                             struct fileloc *pos, pair_p fields,
                             options_p o);
+type_p create_user_defined_type (const char *, struct fileloc *);
 extern type_p find_structure (const char *s, enum typekind kind);
 extern type_p create_scalar_type (const char *name);
 extern type_p create_pointer (type_p t);
@@ -457,7 +461,6 @@ enum gty_token
   UNION,
   STRUCT,
   ENUM,
-  VEC_TOKEN,
   ELLIPSIS,
   PTR_ALIAS,
   NESTED_PTR,