"SfR Fresh" - the SfR Freeware/Shareware Archive 
Member "xmsql-0.4.2/common.h" of archive xmsql-0.4.2.tgz:
As a special service "SfR Fresh" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting with prefixed line numbers.
Alternatively you can here view or download the uninterpreted source code file.
That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.
1 /* Typen, die in mehreren Modulen Verwendung finden */
2 #include <msql.h>
3
4 #define MAX_CHARS 4096
5 #define NAME_LEN 19
6
7 typedef struct tagCWidgets {
8 Widget list;
9 Widget stext;
10 Widget dtext;
11 Widget status;
12 Widget result;
13 Widget buflen;
14 } CWidgets;
15
16 typedef struct CmList {
17 char *list;
18 int length;
19
20 struct CmList *prev;
21 struct CmList *next;
22 } CmList;
23
24 typedef struct TransList {
25 char list[80];
26 int transno;
27
28 struct TransList *prev;
29 struct TransList *next;
30 } TransList;
31
32 typedef struct FieldList {
33 char *fld;
34 int fldno;
35 int length;
36 int type;
37 int decimal;
38
39 struct FieldList *prev;
40 struct FieldList *next;
41 } Flist;
42
43 typedef struct tagMSQL {
44 int connection;
45 int count;
46 int currentDB;
47 int currentTbl;
48 int currentFld;
49 int tblsCount;
50 int fldsCount;
51 int rowsCount;
52 int cmCount;
53 int transCount;
54 int totalRecLen;
55
56 char *table;
57 char *file;
58 char **tbls;
59 char **dbs;
60 char *qbuf/*[MAX_CHARS]*/;
61
62 Flist *flist;
63
64 String **cells; /* Used in XbaeMatrix ! */
65 String tempCell;
66
67 Widget tf;
68 Widget status;
69
70 m_result *res;
71 } CMsql;
72
73 CMsql cMsql;
74
75 typedef struct tagNotify {
76 Widget w;
77 String s;
78 } notifyInfo;
79
80 typedef struct {
81 int row;
82 int column;
83 int lastrow;
84 int lastcolumn;
85 } HighlightStruct;
86
87 typedef struct {
88 Widget dataW;
89 Widget labelW;
90
91 char *ColData;
92 char *ColLabel;
93 short ColLen;
94 int type;
95 int InitVal;
96 } SetColValueStruct;
97
98 extern HighlightStruct hs;
99 extern Pixel blue, red, green, grey, black;
100
101 Widget toplevel, comboDB, comboTable, tableMW;
102 Widget formdlg;
103
104 #define inputQuery 999
105
106 #define AddRow 1
107 #define AddRows 2
108 #define AddColumn 3
109 #define AddTailColumn 4
110 #define RelableRows 5
111 #define UpColumnLabel 6
112 #define LowColumnLabel 7
113 #define SetColumnWidth 8
114 #define SetColumnData 9
115 #define SetColumnName 10
116 #define DelRow 11
117 #define DelColumn 12
118 #define TraverseON 13
119 #define TraverseOFF 14
120
121 #define SQL_type 1
122 #define APPEND_type 2
123 #define DBASE_type 3
124
125 #define ViewLog 1
126 #define ViewTrans 2
127
128 extern void ColChoice();
129 extern void AddDlgCB(Widget,char *);
130 extern void resetComboField();
131 extern void GetComboList();
132 extern void view(Widget, XtPointer, XtPointer);
133
134 extern FILE *debugfp;
135 extern int debug;
136
137
138
139
140
141