projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ubuntu 10.04 PPC版で判明した問題を修正
[YACASL2.git]
/
src
/
word.c
diff --git
a/src/word.c
b/src/word.c
index
bc51180
..
1bbffdb
100644
(file)
--- a/
src/word.c
+++ b/
src/word.c
@@
-16,6
+16,14
@@
static CERR cerr_word[] = {
{ 116, "out of hex range" },
};
{ 116, "out of hex range" },
};
+/**
+ * wordのエラーをエラーリストに追加
+ */
+bool addcerrlist_word()
+{
+ return addcerrlist(ARRAYSIZE(cerr_word), cerr_word);
+}
+
/**
* 10進数の文字列をWORD値に変換
*/
/**
* 10進数の文字列をWORD値に変換
*/
@@
-67,7
+75,6
@@
WORD h2word(const char *str)
WORD nh2word(const char *str)
{
assert(sizeof(WORD)*8 == 16); /* WORD型のサイズが16ビットであることを確認 */
WORD nh2word(const char *str)
{
assert(sizeof(WORD)*8 == 16); /* WORD型のサイズが16ビットであることを確認 */
- addcerrlist(ARRAYSIZE(cerr_word), cerr_word); /* エラーの設定 */
WORD word;
WORD word;