[C2hs] patch applied (c2hs): Add shadowTypedef operation to parser monad

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Feb 19 15:46:32 EST 2007


Mon Feb 19 12:35:13 PST 2007  Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
  * Add shadowTypedef operation to parser monad
  Local vars in inner scopes can shadow type names so we need to be able to
  adjust the current typedef identifier set accordingly (ie delete identifiers
  from the typedef ident set). For example:
  typedef int X;			/* X declared as a type name */
  void foo() { int X; X = X +1 }	/* X redeclared as a local var */

    M ./c2hs/c/CParserMonad.hs -1 +11


More information about the C2hs mailing list