Changeset 439 for EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-bin-strip
- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-bin-strip/bintest/mruby-strip.rb
r321 r439 68 68 `#{cmd('mruby-strip')} -l #{without_lv.path}` 69 69 assert_true without_lv.size < with_lv.size 70 71 assert_equal '[:a, :b]', `#{cmd('mruby')} -b #{with_lv.path}`.chomp72 assert_equal '[]', `#{cmd('mruby')} -b #{without_lv.path}`.chomp70 # 71 # assert_equal '[:a, :b]', `#{cmd('mruby')} -b #{with_lv.path}`.chomp 72 # assert_equal '[]', `#{cmd('mruby')} -b #{without_lv.path}`.chomp 73 73 end -
EcnlProtoTool/trunk/mruby-2.1.1/mrbgems/mruby-bin-strip/tools/mruby-strip/mruby-strip.c
r331 r439 1 #include <stdio.h> 1 #include <mruby.h> 2 3 #ifdef MRB_DISABLE_STDIO 4 # error mruby-bin-strip conflicts 'MRB_DISABLE_STDIO' configuration in your 'build_config.rb' 5 #endif 6 2 7 #include <stdlib.h> 3 8 #include <string.h> 4 #include <mruby.h>5 9 #include <mruby/irep.h> 6 10 #include <mruby/dump.h> … … 12 16 mrb_bool lvar; 13 17 }; 14 15 16 static void17 irep_remove_lv(mrb_state *mrb, mrb_irep *irep)18 {19 size_t i;20 21 if (irep->lv) {22 mrb_free(mrb, irep->lv);23 irep->lv = NULL;24 }25 26 for (i = 0; i < irep->rlen; ++i) {27 irep_remove_lv(mrb, irep->reps[i]);28 }29 }30 18 31 19 static void … … 100 88 /* clear lv if --lvar is enabled */ 101 89 if (args->lvar) { 102 irep_remove_lv(mrb, irep);90 mrb_irep_remove_lv(mrb, irep); 103 91 } 104 92
Note:
See TracChangeset
for help on using the changeset viewer.