X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=include%2Fcerr.h;h=08532da410b825ad8ecdb01a441fab51c8eb2c1e;hp=ee44ee429abc732d8cfcdea44acb0eaf4f760598;hb=0d225ac1f580c59da7a063ef52da35c0af254dd3;hpb=288d61424576d1aae956ea8e4b5fb89dc25909db diff --git a/include/cerr.h b/include/cerr.h index ee44ee4..08532da 100644 --- a/include/cerr.h +++ b/include/cerr.h @@ -7,21 +7,7 @@ #include #include -#ifndef ARRAYSIZE -#define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0])) -#endif - -/* mallocを実行し、メモリを確保できない場合は */ -/* エラーを出力して終了 */ -void *malloc_chk(size_t size, char *tag); - -/* callocを実行し、メモリを確保できない場合は */ -/* エラーを出力して終了 */ -void *calloc_chk(size_t nmemb, size_t size, char *tag); - -/* malloc_chkを実行してメモリを確保してから、 */ -/* コピーした文字列を返す */ -char *strdup_chk(const char *s, char *tag); +#include "cmem.h" /* エラーの構造体 */ typedef struct {