X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=test%2Funit%2FCERRARRAY.c;h=a20b7c7df2f32c9ae9df0edf5bd420a61df7872b;hp=3f3570ec9e85147f3e2690676f415f8684f84ee6;hb=4ee27a568fb9222907a566e59aaefe248f08a8e4;hpb=8734038470680c50615c8f71bd4934f44c5f39f6 diff --git a/test/unit/CERRARRAY.c b/test/unit/CERRARRAY.c index 3f3570e..a20b7c7 100644 --- a/test/unit/CERRARRAY.c +++ b/test/unit/CERRARRAY.c @@ -1,7 +1,7 @@ #include "cerr.h" /* エラー番号とエラーメッセージ */ -CERRARRAY cerr[] = { +CERR cerr_utest[] = { { 101, "label already defined" }, { 102, "label table is full" }, { 103, "label not found" }, @@ -34,5 +34,9 @@ CERRARRAY cerr[] = { { 205, "Stack Pointer (SP) - cannot allocate stack buffer" }, { 206, "Address - out of COMET II memory" }, { 207, "Stack Pointer (SP) - out of COMET II memory" }, - { 0, NULL }, }; + +void addcerr_utest() +{ + addcerrlist((sizeof(cerr_utest)/sizeof(cerr_utest[0])), cerr_utest); +}