- for(i = 0; i < newerrc; i++) {
- p->err = &(newerrv[i]);
- if((p->next = malloc(sizeof(CERRLIST))) == NULL) {
- goto addcerrlisterr;
+ p->next = cerrlist;
+ cerrlist = q;
+}
+
+/**
+ * エラーリストを表示する
+ */
+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);