Hello,

the type of an expression metavariable when passed to python is
  <type 'instance'>
but an expression list gets flattened to a string aka
  <type 'str'>

Can the expression list be passed instead as a list/array of 'instance'?
That way one could get to the expressions without having to write a
(simplified) C parser in python.

What I'm trying to do is to add additional checks to the Wine debug
functions ERR/FIXME/TRACE/WARN. Those are printf style functions with
varargs. While they do use __attribute__(format) there are stricter
checks that can be done for those. But those require the parsing of the
format string and thus the need to go through python.

thanks
bye
        michael
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to