X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FyaccParser%2Ffinfot.h;h=98c7d3164f54d5b41dc97592899f95151c64391f;hb=b52838bcf54a3d5d07cf29f17f3af6f584fc0f4e;hp=52e8af09f53d14e507c5ae0b90eea1f62ca2eb8a;hpb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;p=ghc-hetmet.git diff --git a/ghc/compiler/yaccParser/finfot.h b/ghc/compiler/yaccParser/finfot.h index 52e8af0..98c7d31 100644 --- a/ghc/compiler/yaccParser/finfot.h +++ b/ghc/compiler/yaccParser/finfot.h @@ -12,13 +12,13 @@ #endif typedef enum { - nofinfo, finfo } Tfinfot; typedef struct { Tfinfot tag; } *finfot; #ifdef __GNUC__ +Tfinfot tfinfot(finfot t); extern __inline__ Tfinfot tfinfot(finfot t) { return(t -> tag); @@ -27,21 +27,17 @@ extern __inline__ Tfinfot tfinfot(finfot t) extern Tfinfot tfinfot PROTO((finfot)); #endif /* ! __GNUC__ */ -struct Snofinfo { - Tfinfot tag; -}; - struct Sfinfo { Tfinfot tag; stringId Xfi1; stringId Xfi2; }; -extern finfot mknofinfo PROTO(()); - extern finfot mkfinfo PROTO((stringId, stringId)); #ifdef __GNUC__ +stringId *Rfi1 PROTO((struct Sfinfo *)); + extern __inline__ stringId *Rfi1(struct Sfinfo *t) { #ifdef UGEN_DEBUG @@ -57,6 +53,8 @@ extern stringId *Rfi1 PROTO((struct Sfinfo *)); #define fi1(xyzxyz) (*Rfi1((struct Sfinfo *) (xyzxyz))) #ifdef __GNUC__ +stringId *Rfi2 PROTO((struct Sfinfo *)); + extern __inline__ stringId *Rfi2(struct Sfinfo *t) { #ifdef UGEN_DEBUG