projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
エラーの重複を削除
[YACASL2.git]
/
include
/
word.h
diff --git
a/include/word.h
b/include/word.h
index
30e89a7
..
647f8a4
100644
(file)
--- a/
include/word.h
+++ b/
include/word.h
@@
-1,28
+1,34
@@
#ifndef YACASL2_WORD_H_INCLUDED
#define YACASL2_WORD_H_INCLUDED
#ifndef YACASL2_WORD_H_INCLUDED
#define YACASL2_WORD_H_INCLUDED
-#include <string.h>
-#include <assert.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include "cerr.h"
+#include <stdbool.h>
/* WORD - 16ビットデータ型 */
typedef unsigned short WORD;
/* WORD - 16ビットデータ型 */
typedef unsigned short WORD;
-/* 10進数の文字列をWORD値に変換 */
-WORD n2word(const char *str);
+/**
+ * wordのエラーをエラーリストに追加
+ */
+void addcerrlist_word();
-/* 16進数の文字列をWORD値に変換 */
-WORD h2word(const char *str);
+/**
+ * 10進数または16進数の文字列をWORD値に変換
+ */
+WORD nh2word(const char *str);
-/* 10進数または16進数の文字列をWORD値に変換 */
-WORD a2word(const char *str);
-
-/* WORD値を10進数の文字列に変換 */
+/**
+ * WORD値を10進数の文字列に変換
+ */
char *word2n(WORD word);
char *word2n(WORD word);
-/* WORD値を2進数の文字列に変換 */
+/**
+ * WORD値を2進数の文字列に変換
+ */
char *word2bit(const WORD word);
char *word2bit(const WORD word);
+/**
+ * WORD値を解析して表示
+ */
+void print_dumpword(WORD word, bool logicalmode);
+
#endif
#endif