gCAD3D 2.40
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 
13 int MSG_STD_ERR (int ikey, ...);
14 
15 // keys for standard-Messages MSG_STD_ERR;
16 // text for messages in MSG_STD_tab in ../xa/xa_msg.c
17 enum {
24 };
25 
26 
27 // messagetype for MSG_STD__; see MSG_STD_code in ../xa/xa_msg.c
28 #define MSG_typ_INF 0
29 #define MSG_typ_WNG 1
30 #define MSG_typ_ERR 2
31 
32 int MSG_STD__ (int msgTyp, const char *fnc, int ikey, char *txt, ...);
33 
34 
35 
36 
37 
38 // keys for constant-messages; MSG_const__ ()
39 // messageText: ../../doc/msg/msg_const_en.txt
40 // modify messages: cd ../../doc/msg/ vi msg_const_*.txt
41 // MSG_SIZE must be last.
42 enum {
52 };
53 
54 
55  char* APP_MSG_get_0 (char *key);
56  char* APP_MSG_get_1 (char *key, char *fmt, ...);
57  char* MSG_get_0 (char *key);
58  char* MSG_const__ (int iMsg);
59  char* MSG_read (char *sbuf, int bufSiz, char *key);
60  char* MSG_fread (char *sbuf, int bufSiz, char *key, FILE *fpIn);
61  char* MSG_get_str (char *keyStr);
62  int MSG_get__ (char *msg, int msgSiz, char *key, FILE *fpIn,
63  char *fmt, va_list *va);
64 
65 
66 /*
67 // char **MSG_STD_code; ee ../xa/xa_msg.c
68 extern char *MSG_STD_code[];
69 
70 // char **MSG_STD_tab; see ../xa/xa_msg.c
71 extern char *MSG_STD_tab[];
72 */
73 
74 
75 // MS-VS-2010:
76 #ifndef __func__
77 #define __func__ __FUNCTION__
78 #endif
79 
90 
91 #define MSG_STD_ERR(ikey,...)\
92  MSG_STD__ (MSG_typ_ERR,__func__,ikey,__VA_ARGS__)
93 
94 
95 // EOF
Definition: xa_msg.h:45
Definition: xa_msg.h:43
Definition: xa_msg.h:43
Definition: xa_msg.h:50
Definition: xa_msg.h:46
internal error
Definition: xa_msg.h:22
Definition: xa_msg.h:50
char * MSG_get_0(char *key)
Definition: xa_msg.c:623
char fnc
Definition: xa_tra.c:152
Definition: xa_msg.h:48
char * MSG_fread(char *sbuf, int bufSiz, char *key, FILE *fpIn)
Definition: xa_msg.c:305
Definition: xa_msg.h:46
Definition: xa_msg.h:47
Definition: xa_msg.h:44
Definition: xa_msg.h:48
db-obj_undefined,
Definition: xa_msg.h:20
file_open error
Definition: xa_msg.h:21
Definition: xa_msg.h:49
Definition: xa_msg.h:45
char * MSG_const__(int iMsg)
Definition: xa_msg.c:914
Definition: xa_msg.h:45
Definition: xa_msg.h:50
Definition: xa_msg.h:43
Definition: xa_msg.h:46
Definition: xa_msg.h:47
int MSG_STD__(int msgTyp, const char *fnc, int ikey, char *txt,...)
Definition: xa_msg.c:1086
Definition: xa_msg.h:51
Definition: xa_msg.h:23
Definition: xa_msg.h:48
Definition: xa_msg.h:50
Definition: xa_msg.h:48
&quot;function not implemented&quot;
Definition: xa_msg.h:18
Definition: xa_msg.h:51
char * MSG_read(char *sbuf, int bufSiz, char *key)
Definition: xa_msg.c:795
Definition: xa_msg.h:46
Definition: xa_msg.h:50
Definition: xa_msg.h:49
char * MSG_get_str(char *keyStr)
Definition: xa_msg.c:959
Definition: xa_msg.h:47
char * APP_MSG_get_1(char *key, char *fmt,...)
Definition: xa_msg.c:415
Definition: xa_msg.h:43
Definition: xa_msg.h:45
Definition: xa_msg.h:44
Definition: xa_msg.h:45
Definition: xa_msg.h:43
Definition: xa_msg.h:46
#define MSG_STD_ERR(ikey,...)
Definition: xa_msg.h:91
char * APP_MSG_get_0(char *key)
Definition: xa_msg.c:385
int MSG_get__(char *msg, int msgSiz, char *key, FILE *fpIn, char *fmt, va_list *va)
Definition: xa_msg.c:656
subModel_undefined,
Definition: xa_msg.h:19
Definition: xa_msg.h:48
Definition: xa_msg.h:49
Definition: xa_msg.h:44
Definition: xa_msg.h:44
Definition: xa_msg.h:49
Definition: xa_msg.h:49
Definition: xa_msg.h:47
Definition: xa_msg.h:44
Definition: xa_msg.h:47