Last change
on this file since 31708 was 10705, checked in by jrm21, 19 years ago |
tidied up interaction between flex/bison and greenstone's z3950 client
classes. renamed parse.y to zparse.y to make it more obvious it's related
to that stuff.
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
876 bytes
|
Line | |
---|
1 | /*
|
---|
2 | This defines a data structure shared between:
|
---|
3 | * the C++ z3950proto class defined in z3950proto.cpp, and
|
---|
4 | * the C function yyparse() created by bison from the file zparse.fl
|
---|
5 | */
|
---|
6 |
|
---|
7 | #ifndef _Z3950CFG_H
|
---|
8 | #define _Z3950CFG_H
|
---|
9 |
|
---|
10 | #include <stdio.h> // for FILE* type
|
---|
11 |
|
---|
12 | #ifdef __cplusplus
|
---|
13 | extern "C" {
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | struct z3950aboutlist {
|
---|
17 | char *lang;
|
---|
18 | char *text;
|
---|
19 | struct z3950aboutlist *next;
|
---|
20 | };
|
---|
21 | struct z3950cfg {
|
---|
22 | char *shortname;
|
---|
23 | char *hostname;
|
---|
24 | int port;
|
---|
25 | char *dbname;
|
---|
26 | char *longname;
|
---|
27 | char *icon;
|
---|
28 | char *smallicon;
|
---|
29 | struct z3950aboutlist *about;
|
---|
30 | struct z3950cfg *next;
|
---|
31 | };
|
---|
32 | extern struct z3950cfg *zserver_list;
|
---|
33 | extern FILE *errfile;
|
---|
34 |
|
---|
35 | /* can't use default yyparse(), as this name is used elsewhere (eg mg)*/
|
---|
36 | #define yyin zconfigin
|
---|
37 | #define yyout zconfigout
|
---|
38 | #define yyparse zconfigparse
|
---|
39 | #define yylex zconfiglex
|
---|
40 |
|
---|
41 | int yyparse ();
|
---|
42 |
|
---|
43 | #ifdef __cplusplus
|
---|
44 | }
|
---|
45 | #endif
|
---|
46 |
|
---|
47 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.