• cremno's avatar
    rewrite stripping · 85bb1f92
    cremno authored
    Previous version ignored some errors, and didn't free memory and close files.
    Now no memory will be dynamically allocated to simplify error handling.
    
    This commit also fixes a wrong check:
    
      files[i] = fopen(argv[i], "wb");
      if (!ireps[i]) {
    
    Improve error messages a bit and add missing newline to one.
    85bb1f92
mruby-strip.c 2.96 KB