X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fword.c;h=1bbffdbf7d9690f02f0e5598212e0f54b1420a50;hb=e2a1963d2ddaf89d33494212a0a16f7a368797e0;hp=bc511807d68a3535ca6c602b331cfed219571f2c;hpb=7f7bde5dd1305cfc598fe09030c69aad0dc01368;p=YACASL2.git diff --git a/src/word.c b/src/word.c index bc51180..1bbffdb 100644 --- a/src/word.c +++ b/src/word.c @@ -16,6 +16,14 @@ static CERR cerr_word[] = { { 116, "out of hex range" }, }; +/** + * wordのエラーをエラーリストに追加 + */ +bool addcerrlist_word() +{ + return addcerrlist(ARRAYSIZE(cerr_word), cerr_word); +} + /** * 10進数の文字列をWORD値に変換 */ @@ -67,7 +75,6 @@ WORD h2word(const char *str) WORD nh2word(const char *str) { assert(sizeof(WORD)*8 == 16); /* WORD型のサイズが16ビットであることを確認 */ - addcerrlist(ARRAYSIZE(cerr_word), cerr_word); /* エラーの設定 */ WORD word;