diff options
| author | realtradam <[email protected]> | 2022-03-07 18:33:20 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2022-03-07 18:33:20 -0500 |
| commit | 9d440b24a50b54b1708123d77679477b14c4b3c0 (patch) | |
| tree | c75ddb2d8d1289a4768274e93822f862e0be44bf /scan.rb | |
| parent | 779d9f17adf189b45c6be2a4b3d0959019c5ad03 (diff) | |
| download | FelBind-9d440b24a50b54b1708123d77679477b14c4b3c0.tar.gz FelBind-9d440b24a50b54b1708123d77679477b14c4b3c0.zip | |
added some struct wrapping methods
Diffstat (limited to 'scan.rb')
| -rw-r--r-- | scan.rb | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,11 +1,13 @@ require 'json' +file_to_scan = 'raylib.h' + # ctags --list-kinds=c # p function prototypes # s structure names # z function parameters inside function or prototype definitions # m struct, and union members -parse = `ctags --output-format=json --c-kinds=pm --fields=+S --language-force=c raylib.h` +parse = `ctags --output-format=json --c-kinds=pm --fields=+S --language-force=c #{file_to_scan}` File.write('json.json', parse) $garbage = [] @@ -38,7 +40,7 @@ def parse_header(path) [functions, structs] end -functions, structs = parse_header('raylib.h') +functions, structs = parse_header(file_to_scan) def debug_show(type, hash) puts "#{type.upcase}:" |
