projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
エラー時の動作を修正
[YACASL2.git]
/
include
/
cerr.h
diff --git
a/include/cerr.h
b/include/cerr.h
index
878fd85
..
828d03e
100644
(file)
--- a/
include/cerr.h
+++ b/
include/cerr.h
@@
-1,6
+1,7
@@
#ifndef YACASL2_CERR_H_INCLUDED
#define YACASL2_CERR_H_INCLUDED
#ifndef YACASL2_CERR_H_INCLUDED
#define YACASL2_CERR_H_INCLUDED
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
@@
-25,11
+26,12
@@
typedef struct {
extern CERRARRAY cerr[];
enum {
extern CERRARRAY cerr[];
enum {
- MSGSIZE = 60,
+ CERRSTRSIZE = 10, /* エラーメッセージ中に挿入できる文字列のサイズ */
+ CERRMSGSIZE = 70, /* エラーメッセージのサイズ */
};
/* エラー番号とエラーメッセージを設定 */
};
/* エラー番号とエラーメッセージを設定 */
-void setcerr(int num, const char *
val
);
+void setcerr(int num, const char *
str
);
/* エラー番号からメッセージを返す */
char *getcerrmsg(int num);
/* エラー番号からメッセージを返す */
char *getcerrmsg(int num);