Skip to content

Commit

Permalink
1.2.6 and cut 1AH and after
Browse files Browse the repository at this point in the history
  • Loading branch information
katahiromz committed Dec 4, 2024
1 parent 8db8d9b commit c1a9813
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions HISTORY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

- 2024-12-04 Ver.1.2.5
- 初公開。
- 2024-12-04 Ver.1.2.6
- '\x1A'以降をカットする。
7 changes: 6 additions & 1 deletion renum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// version info
void RENUM_version(void)
{
std::printf("renum Version 1.2.5 by katahiromz\n");
std::printf("renum Version 1.2.6 by katahiromz\n");
}

#define RENUM_DEFAULT_OUTPUT "output.bas"
Expand Down Expand Up @@ -348,6 +348,11 @@ renum_error_t RENUM_load_file(const std::string& filename, std::string& text, bo
}
}

// Cut '\x1A' and after
auto i0 = text.find('\x1A');
if (i0 != text.npos)
text.erase(i0);

std::fclose(fin);
return 0;
}
Expand Down

0 comments on commit c1a9813

Please sign in to comment.