Please incrementally reduce your example so that you can send a complete
example that exhibits the problem.

julia

On Fri, 3 Feb 2012, SF Markus Elfring wrote:

Find an example that is at most 5 lines long, and I will look at it.

My SmPL filter examples are a bit bigger.

I dare to use the generated program directly (without submitting the command "make install" for my little test).


macro_file spatch-tweaks.h -macro_file_builtins ../../standard.h -iso_file ../../standard.iso -c++ -debug
spatch version 1.0.0-rc9 with Python support and with PCRE support
init_defs_builtins: ../../standard.h
init_defs: spatch-tweaks.h
-----------------------------------------------------------------------
processing semantic patch file: list_pass-through_candidates.cocci
with isos from: ../../standard.iso
-----------------------------------------------------------------------
@initialize:python@
import sys
result = []
mark = ['"', '', '"']
delimiter = '|'

def store_positions(fun, typ, pt_param, places, data_structure = ""):
...
@finalize:python@
if result:
result.insert(0, delimiter.join(("function", '"data type"', "parameter", '"contained in"', '"source file"', "line", "column")))
  print("\r\n".join(result))
else:
  sys.stderr.write("No result for this analysis!\n")

-----------------------------------------------------------------------
script rule 1 =
-----------------------------------------------------------------------
dependencies for script satisfied:
binding in = []
ImportError: No module named coccilib.elems
Failure in rule starting on line 1
Fatal error: exception Pycocci.Pycocciexception


Regards,
Markus

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

Reply via email to