X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fword.h;h=7f11c5e8c8deba5bebf2509be06e9a29b51fd34e;hp=30e89a73ac6e8c8abc2e717bc2c1ec1ee54d08c2;hb=555c5e8b851becc08ba661a9cb19f617d5a00c12;hpb=e07b6371cc8a59c6793a895e968ff2c6cf28181b diff --git a/include/word.h b/include/word.h index 30e89a7..7f11c5e 100644 --- a/include/word.h +++ b/include/word.h @@ -1,12 +1,19 @@ #ifndef YACASL2_WORD_H_INCLUDED #define YACASL2_WORD_H_INCLUDED +#include #include #include #include #include +#include + +#include "cmem.h" #include "cerr.h" +/* wordのエラー定義 */ +bool addcerrlist_word(); + /* WORD - 16ビットデータ型 */ typedef unsigned short WORD; @@ -17,7 +24,7 @@ WORD n2word(const char *str); WORD h2word(const char *str); /* 10進数または16進数の文字列をWORD値に変換 */ -WORD a2word(const char *str); +WORD nh2word(const char *str); /* WORD値を10進数の文字列に変換 */ char *word2n(WORD word); @@ -25,4 +32,7 @@ char *word2n(WORD word); /* WORD値を2進数の文字列に変換 */ char *word2bit(const WORD word); +/* WORD値を解析して表示 */ +void print_dumpword(WORD word, bool logicalmode); + #endif