Changeset 10440
- Timestamp:
- 2005-08-08T16:15:41+12:00 (19 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/yaz_zclient.c
r10177 r10440 45 45 #endif 46 46 47 #ifdef WIN3247 #ifdef __WIN32__ 48 48 #include <sys/stat.h> 49 49 #include <io.h> … … 365 365 { 366 366 367 if (!*session->result)368 return NULL; /* no init info to return */369 370 367 char* buffer; /* we are returning some info in this buffer */ 371 368 char *text_id="ID: "; 372 369 char *text_name="<br>\nName: "; 373 370 char *text_ver="<br>\nVersion: "; 371 size_t initial_length; 372 373 if (!*session->result) 374 return NULL; /* no init info to return */ 375 374 376 375 size_tinitial_length = strlen(text_id)+strlen(text_name)+strlen(text_ver)+377 initial_length = strlen(text_id)+strlen(text_name)+strlen(text_ver)+ 376 378 (session->implementationId?strlen(session->implementationId):0) + 377 379 (session->implementationName?strlen(session->implementationName):0) + … … 818 820 } 819 821 820 int cmd_open(const char *arg)822 static int cmd_open(const char *arg) 821 823 { 822 824 if (arg) -
trunk/gsdl/src/recpt/z3950proto.cpp
r9933 r10440 32 32 #include <stdio.h> // for (FILE *) type for yyin and fopen. 33 33 // config file parsing stuff 34 extern "C" { 34 35 #include "z3950cfg.h" // for reading in config files - 35 36 // defines "struct z3950cfg *zserver_list" as the head of the list. 36 37 } 37 38 // note! yyin is hash-defined in z3950cfg.h to something else, to avoid 38 39 // name conflicts with "other" yyins. 39 extern FILE *yyin; 40 extern FILE *yyout; // redirect for `errors' (unmatched tokens in flex) 41 40 //extern "C" { 41 FILE *yyin; 42 FILE *yyout; // redirect for `errors' (unmatched tokens in flex) 43 //} 42 44 extern "C" { 43 45 extern int zconfigparse(); … … 588 590 text_t query; // this should not be needed, as we have already connected to 589 591 // get the title.... 590 int querytype ; //ditto...592 int querytype = 1; //ditto... 591 593 text_t field; // ditto... 592 594 (*zserver)->getfullrecord(query,querytype,field,request.OID.getint(), -
trunk/gsdl/src/recpt/z3950proxy.cpp
r10179 r10440 27 27 #include "comtypes.h" 28 28 #include <stdio.h> 29 29 30 // z39.50 yaz stuff 31 #define min(a,b) (((a)<(b))?(a):(b)) 30 32 31 33 extern "C" {
Note:
See TracChangeset
for help on using the changeset viewer.