[C2hs] patch applied (c2hs): Add GNU C typeof ( ... ) extension

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Sun Mar 25 22:04:04 EDT 2007


Sun Mar 25 04:21:14 PDT 2007  Duncan Coutts <duncan.coutts at worc.ox.ac.uk>
  * Add GNU C typeof ( ... ) extension
  In place of a type identifier in some places, GNU C allows this typeof type
   expression which takes the type of a given expression or type name. eg:
  int typeof(Foo) x;
  This is handy in macros for example.

    M ./c2hs/c/CAST.hs +8
    M ./c2hs/c/CLexer.x +3
    M ./c2hs/c/CParser.y -1 +23
    M ./c2hs/c/CTokens.hs +3


More information about the C2hs mailing list