Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

Location:
EcnlProtoTool/trunk/mruby-2.1.1
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • 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
    27#include <stdlib.h>
    38#include <string.h>
    4 #include <mruby.h>
    59#include <mruby/irep.h>
    610#include <mruby/dump.h>
     
    1216  mrb_bool lvar;
    1317};
    14 
    15 
    16 static void
    17 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 }
    3018
    3119static void
     
    10088    /* clear lv if --lvar is enabled */
    10189    if (args->lvar) {
    102       irep_remove_lv(mrb, irep);
     90      mrb_irep_remove_lv(mrb, irep);
    10391    }
    10492
Note: See TracChangeset for help on using the changeset viewer.