version working with also with redhat linux
This commit is contained in:
@@ -104,40 +104,32 @@ void ERR_EXIT(char *text) {
|
||||
#ifdef F_CHAR
|
||||
/* compile only when fortran c interface stuff is defined */
|
||||
|
||||
#ifdef __VMS
|
||||
#define err_show_ err_show
|
||||
#define err_txt_ err_txt
|
||||
#define err_msg_ err_msg
|
||||
#define err_set_outrtn_ err_set_outrtn
|
||||
#define err_short_ err_short
|
||||
#endif
|
||||
|
||||
void err_show_(F_CHAR(text), int text_len) {
|
||||
void F_FUN(err_show)(F_CHAR(text), int text_len) {
|
||||
char buf[256];
|
||||
|
||||
STR_TO_C(buf, text);
|
||||
ErrShow(buf);
|
||||
}
|
||||
|
||||
void err_txt_(F_CHAR(text), int text_len) {
|
||||
void F_FUN(err_txt)(F_CHAR(text), int text_len) {
|
||||
char buf[256];
|
||||
|
||||
STR_TO_C(buf, text);
|
||||
ErrTxt(buf,0);
|
||||
}
|
||||
|
||||
void err_msg_(F_CHAR(text), int text_len) {
|
||||
void F_FUN(err_msg)(F_CHAR(text), int text_len) {
|
||||
char buf[256];
|
||||
|
||||
STR_TO_C(buf, text);
|
||||
ErrMsg(buf);
|
||||
}
|
||||
|
||||
void err_set_outrtn_(void (*rtn)(), void *arg) {
|
||||
void F_FUN(err_set_outrtn)(void (*rtn)(), void *arg) {
|
||||
ErrSetOutRtn(rtn, arg);
|
||||
}
|
||||
|
||||
void err_short_(void) {
|
||||
void F_FUN(err_short)(void) {
|
||||
ErrShort(ErrMessage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user