projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of linux
[YACASL2.git]
/
include
/
cerr.h
diff --git
a/include/cerr.h
b/include/cerr.h
index
7265b0e
..
08532da
100644
(file)
--- a/
include/cerr.h
+++ b/
include/cerr.h
@@
-7,13
+7,7
@@
#include <assert.h>
#include <stdbool.h>
#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);
+#include "cmem.h"
/* エラーの構造体 */
typedef struct {
/* エラーの構造体 */
typedef struct {
@@
-37,6
+31,9
@@
enum {
CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
};
CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
};
+/* エラーの初期化 */
+void cerr_init();
+
/* エラーリストを作成・追加する */
bool addcerrlist(int cerrc, CERR cerrv[]);
/* エラーリストを作成・追加する */
bool addcerrlist(int cerrc, CERR cerrv[]);