gCAD3D 2.35
xa_msg.h
Go to the documentation of this file.
1 /* Messages.
2 needs
3 #include <stdarg.h> // va_list
4 
5 #include "../xa/xa_msg.h" // MSG_*
6 
7 Messagetext: ../../doc/msg/msg_const_de.txt
8 */
9 
10 
11 
12 
23 
24 int MSG_STD_ERR (int ikey, ...);
25 
26 // keys for standard-Messages MSG_STD_ERR;
27 // text for messages in MSG_STD_tab in ../xa/xa_msg.c
28 enum {
34 };
35 
36 
37 // messagetype for MSG_STD__; see MSG_STD_code in ../xa/xa_msg.c
38 #define MSG_typ_INF 0
39 #define MSG_typ_WNG 1
40 #define MSG_typ_ERR 2
41 
42 int MSG_STD__ (int msgTyp, const char *fnc, int ikey, char *txt, ...);
43 
44 
45 
46 
47 
48 // keys for constant-messages; MSG_const__ ()
49 // MSG_SIZE must be last.
50 enum {
60 };
61 
62 
63  char* APP_MSG_get_0 (char *key);
64  char* APP_MSG_get_1 (char *key, char *fmt, ...);
65  char* MSG_get_0 (char *key);
66  char* MSG_const__ (int iMsg);
67  char* MSG_read (char *sbuf, int bufSiz, char *key);
68  char* MSG_fread (char *sbuf, int bufSiz, char *key, FILE *fpIn);
69  char* MSG_get_str (char *keyStr);
70  int MSG_get__ (char *msg, int msgSiz, char *key, FILE *fpIn,
71  char *fmt, va_list *va);
72 
73 
74 /*
75 // char **MSG_STD_code; ee ../xa/xa_msg.c
76 extern char *MSG_STD_code[];
77 
78 // char **MSG_STD_tab; see ../xa/xa_msg.c
79 extern char *MSG_STD_tab[];
80 */
81 
82 
83 // MS-VS-2010:
84 #ifndef __func__
85 #define __func__ __FUNCTION__
86 #endif
87 
88 #define MSG_STD_ERR(ikey,...)\
89  MSG_STD__ (MSG_typ_ERR,__func__,ikey,__VA_ARGS__)
90 
91 
92 // EOF
Definition: xa_msg.h:53
Definition: xa_msg.h:51
Definition: xa_msg.h:51
Definition: xa_msg.h:58
Definition: xa_msg.h:54
Definition: xa_msg.h:58
char * MSG_get_0(char *key)
Definition: xa_msg.c:616
char * MSG_fread(char *sbuf, int bufSiz, char *key, FILE *fpIn)
Definition: xa_msg.c:298
char fnc
Definition: xa_tra.c:152
Definition: xa_msg.h:56
Definition: xa_msg.h:54
Definition: xa_msg.h:55
Definition: xa_msg.h:52
Definition: xa_msg.h:56
db-obj_undefined,
Definition: xa_msg.h:31
file_open error
Definition: xa_msg.h:32
Definition: xa_msg.h:56
Definition: xa_msg.h:53
Definition: xa_msg.h:53
Definition: xa_msg.h:57
Definition: xa_msg.h:51
char * MSG_const__(int iMsg)
Definition: xa_msg.c:904
Definition: xa_msg.h:54
Definition: xa_msg.h:55
char * MSG_read(char *sbuf, int bufSiz, char *key)
Definition: xa_msg.c:788
Definition: xa_msg.h:33
Definition: xa_msg.h:56
Definition: xa_msg.h:55
"function not implemented"
Definition: xa_msg.h:29
Definition: xa_msg.h:59
int MSG_STD__(int msgTyp, const char *fnc, int ikey, char *txt,...)
Definition: xa_msg.c:1076
Definition: xa_msg.h:54
Definition: xa_msg.h:58
char * MSG_get_str(char *keyStr)
Definition: xa_msg.c:949
char * APP_MSG_get_0(char *key)
Definition: xa_msg.c:378
char * APP_MSG_get_1(char *key, char *fmt,...)
Definition: xa_msg.c:408
Definition: xa_msg.h:57
Definition: xa_msg.h:55
Definition: xa_msg.h:51
Definition: xa_msg.h:53
Definition: xa_msg.h:52
int MSG_get__(char *msg, int msgSiz, char *key, FILE *fpIn, char *fmt, va_list *va)
Definition: xa_msg.c:649
Definition: xa_msg.h:53
Definition: xa_msg.h:51
Definition: xa_msg.h:54
#define MSG_STD_ERR(ikey,...)
Definition: xa_msg.h:88
subModel_undefined,
Definition: xa_msg.h:30
Definition: xa_msg.h:56
Definition: xa_msg.h:57
Definition: xa_msg.h:52
Definition: xa_msg.h:52
Definition: xa_msg.h:57
Definition: xa_msg.h:57
Definition: xa_msg.h:55
Definition: xa_msg.h:52