diff options
author | alon@honor <none@none> | 2010-10-21 17:13:12 -0700 |
---|---|---|
committer | alon@honor <none@none> | 2010-10-21 17:13:12 -0700 |
commit | ce5008630e06a2238b2dc6e5fcbbeebc0ce01cd2 (patch) | |
tree | 495191e7bdcc12a3d49fae475d197a0b89fdb112 /third_party | |
parent | 9f7e6ddbd245ecac6321941684d6d4a337d67fa1 (diff) |
namespace generator tool
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/demangler.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/demangler.py b/third_party/demangler.py index da8dc665..c9937107 100644 --- a/third_party/demangler.py +++ b/third_party/demangler.py @@ -3,6 +3,8 @@ ''' Simple tool to run the demangler. +(C) 2010 Alon Zakai, MIT licensed + Usage: demangler.py FILENAME SPLITTER Make sure you define ~/.emscripten, and fill it with something like @@ -29,10 +31,10 @@ SEEN = {} for line in data: if line[0] == ' ': continue if line[0] != '_': continue - func = line.split(splitter)[0][1:] + func = line.split(splitter)[0] if func in SEEN: continue SEEN[func] = True - args = JS_ENGINE + ['gcc_demangler.js'] + JS_ENGINE_PARAMS + [func] + args = JS_ENGINE + ['gcc_demangler.js'] + JS_ENGINE_PARAMS + [func[1:]] cleaned = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0] if cleaned is None: continue cleaned = cleaned[1:-2] |