> Sorry, I think I expressed myself badly :-) The idea is that during a first > pass then Coccinelle would create all the wrapper functions as in your nice > example. However, Coccinelle itself would write comments into the newly > added wrapper functions. Then after Coccinelle is done then another > completely different tool could read the new C file containing the newly > added wrapped functions and search for the comments added by Coccinelle and > munge them into code. This would be as secondary processing step. Here I'm > assuming that Coccinelle has the ability to write out comments for each > function argument type and name.
Yes, I understood that. Coccinelle can write out such comments, but in quite a hacky way, involving creating identifiers that are actually strings containing the desired comment code. It would work better to generate something that looks like a macro call. But the comment solution is possible, if you prefer it. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
