--- nono/util/iasm/scan.cpp 2026/04/29 17:04:28 1.1 +++ nono/util/iasm/scan.cpp 2026/04/29 17:05:58 1.1.1.3 @@ -1,18 +1,17 @@ // // XM6i -// Copyright (C) 2013 isaki@NetBSD.org +// Copyright (C) 2013 Tetsuya Isaki // // 簡易アセンブラ: 字句解析 // -#include #include #include #include #include #include #include "iasm.h" - +#include "ascii_ctype.h" /* コンストラクタ */ Token::Token() @@ -157,8 +156,8 @@ Scanner::get_token(Token& token) } /* 連続する空白は1つの空白 */ - if (isspace(c)) { - for(; isspace((c = getch())); ptr++) { + if (is_ascii_space(c)) { + for(; is_ascii_space((c = getch())); ptr++) { token.word += c; } token.type = T_SPACE;