On Thu, 29 Dec 2011, SF Markus Elfring wrote:
@finalize:python@
if result:
result.insert(0, delimiter.join(("function", "return type", "source
file", "line", "column")))
print("\r\n".join(result))
else:
print("No result for this analysis!")
[...]
Both results look like they were doing the right thing.
Can an exit status be returned to the script execution environment so that an
unsuccessful/failed analysis process can be indicated to the caller?
http://en.wikipedia.org/wiki/Exit_status
You can say cocci.exit(). I guess it could allow passing an error code
as well.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)