X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace.py;h=1cdb10a8fd5d6c3de4e621d4e376718418dda231;hb=5cb6b8733e62866d846eb27c85f1aa9d12df8b37;hp=ad8c844bcab21c53b3762f0fb7a5f3e05e05e10b;hpb=2603acf99672788aaf9797c989cddc39fa0b35cb;p=apitrace diff --git a/retrace.py b/retrace.py index ad8c844..1cdb10a 100644 --- a/retrace.py +++ b/retrace.py @@ -266,6 +266,7 @@ class Retracer: def retrace_api(self, api): print '#include "trace_parser.hpp"' + print '#include "retrace.hpp"' print types = api.all_types() @@ -274,10 +275,10 @@ class Retracer: for handle in handles: if handle.name not in handle_names: if handle.key is None: - print 'static std::map<%s, %s> __%s_map;' % (handle.type, handle.type, handle.name) + print 'static retrace::map<%s> __%s_map;' % (handle.type, handle.name) else: key_name, key_type = handle.key - print 'static std::map<%s, std::map<%s, %s> > __%s_map;' % (key_type, handle.type, handle.type, handle.name) + print 'static std::map<%s, retrace::map<%s> > __%s_map;' % (key_type, handle.type, handle.name) handle_names.add(handle.name) print