#include <assert.h>
#include <stdbool.h>
-#ifndef ARRAYSIZE
-#define ARRAYSIZE(array) (sizeof(array)/sizeof(array[0]))
-#endif
-
-/* mallocを実行し、メモリを確保できない場合は */
-/* エラーを出力して終了 */
-void *malloc_chk(size_t size, char *tag);
-
-/* malloc_chkを実行してメモリを確保してから、 */
-/* コピーした文字列を返す */
-char *strdup_chk(const char *s, char *tag);
+#include "cmem.h"
/* エラーの構造体 */
typedef struct {
CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
};
+/* エラーの初期化 */
+void cerr_init();
+
/* エラーリストを作成・追加する */
bool addcerrlist(int cerrc, CERR cerrv[]);