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
/
cerr.c
diff --git
a/src/cerr.c
b/src/cerr.c
index
36b33a4
..
069564b
100644
(file)
--- a/
src/cerr.c
+++ b/
src/cerr.c
@@
-25,7
+25,7
@@
CERR *cerr;
CERRLIST *cerrlist;
/**
CERRLIST *cerrlist;
/**
- * ã
\82
¨ã
\83
©ã
\83
¼ã
\83
ªã
\82
¹ã
\83
\88
ã
\82
\92
ä½
\9c
æ
\88
\90
ã
\83
»
追加する
+ * ã
\82
¨ã
\83
©ã
\83
¼ã
\83
ªã
\82
¹ã
\83
\88
ã
\82
\92
ä½
\9c
æ
\88
\90
ã
\81
¾ã
\81
\9f
ã
\81
¯
追加する
*/
bool addcerrlist(int newerrc, CERR newerrv[])
{
*/
bool addcerrlist(int newerrc, CERR newerrv[])
{
@@
-51,6
+51,22
@@
bool addcerrlist(int newerrc, CERR newerrv[])
return true;
}
return true;
}
+/**
+ * エラーリストを表示する
+ */
+void printcerrlist()
+{
+ CERRLIST *p;
+
+ if(cerrlist == NULL) {
+ puts("error list is null.");
+ } else {
+ for(p = cerrlist; p != NULL; p = p->next) {
+ printf("%d: %s\n", p->cerr->num, p->cerr->msg);
+ }
+ }
+}
+
/**
* 現在のエラーを設定する
*/
/**
* 現在のエラーを設定する
*/
@@
-96,7
+112,7
@@
void freecerr()
p = q;
}
/* 現在のエラーメッセージを解放 */
p = q;
}
/* 現在のエラーメッセージを解放 */
- free_chk(cerr->msg, "cerr.msg");
+ /* free_chk(cerr->msg, "cerr->msg"); */
/* 現在のエラーを解放 */
free_chk(cerr, "cerr");
}
/* 現在のエラーを解放 */
free_chk(cerr, "cerr");
}