X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fword.h;h=0af12b4e4cf8149339c5980901540a6edb7cf5ed;hb=bb429bb66ef15895f3a389954bf4c864624219f1;hp=24dea808455398312b4bf0e8ef873b8c6c7f095a;hpb=0e3065564e83037d5fbbb3e0e1595e7ce95ce8eb;p=YACASL2.git diff --git a/include/word.h b/include/word.h index 24dea80..0af12b4 100644 --- a/include/word.h +++ b/include/word.h @@ -1,21 +1,11 @@ #ifndef YACASL2_WORD_H_INCLUDED #define YACASL2_WORD_H_INCLUDED -#include -#include -#include -#include -#include "cerr.h" +#include /* WORD - 16ビットデータ型 */ typedef unsigned short WORD; -/* 10進数の文字列をWORD値に変換 */ -WORD n2word(const char *str); - -/* 16進数の文字列をWORD値に変換 */ -WORD h2word(const char *str); - /* 10進数または16進数の文字列をWORD値に変換 */ WORD nh2word(const char *str); @@ -25,4 +15,7 @@ char *word2n(WORD word); /* WORD値を2進数の文字列に変換 */ char *word2bit(const WORD word); +/* WORD値を解析して表示 */ +void print_dumpword(WORD word, bool logicalmode); + #endif