diff options
| author | realtradam <[email protected]> | 2022-03-05 05:50:22 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-03-05 05:50:22 -0500 |
| commit | 0400fa4829cb884837d06769484a8944761f0626 (patch) | |
| tree | 016b6f7451f1330c54f77b938bcfc7dfa67a1f76 /scan.rb | |
| parent | 4dec6210af82ce63585e1bf5c3a3b5bea1fa83e3 (diff) | |
| download | FelBind-0400fa4829cb884837d06769484a8944761f0626.tar.gz FelBind-0400fa4829cb884837d06769484a8944761f0626.zip | |
finished phase one
Diffstat (limited to 'scan.rb')
| -rw-r--r-- | scan.rb | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -21,7 +21,7 @@ def parse_header(path) parse.each_line do |line| json_line = JSON.parse line if json_line['kind'] == 'prototype' - functions[json_line['name']] = param_strip(json_line['signature']) + functions["#{json_line['typeref'].sub(/^[^ ][^ ]* /,'')} #{json_line['name']}"] = param_strip(json_line['signature']) elsif json_line['kind'] == 'member' if json_line['scopeKind'] == 'struct' structs[json_line['scope']] ||= [] @@ -65,3 +65,8 @@ puts "Functions: #{functions.size}" puts "Structs: #{structs.size}" puts "Garbage: #{$garbage.size}(should be 0)" puts + +result = [functions, structs] + +File.write('glue.json', JSON.generate(result)) + |
