summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
38cf781)
on my Linux system (Red Hat 7.1) wrongly fails to declare strcasecmp(),
so I am using yaz_matchstr() instead.
-# $Header: /home/cvsroot/yaz++/zoom/Attic/Makefile,v 1.2 2002-08-08 16:06:50 mike Exp $
+# $Header: /home/cvsroot/yaz++/zoom/Attic/Makefile,v 1.3 2002-08-08 16:14:26 mike Exp $
CCC = g++ # ... until I figure out what the standard
# Make macro name is for the C++ compiler.
CCC = g++ # ... until I figure out what the standard
# Make macro name is for the C++ compiler.
+CPPFLAGS := -Wall -g -ansi
L = libzoom.a
OBJ = $L(zexcept.o) $L(zconn.o) $L(zquery.o) $L(zrs.o) $L(zrec.o)
L = libzoom.a
OBJ = $L(zexcept.o) $L(zconn.o) $L(zquery.o) $L(zrs.o) $L(zrec.o)
-// $Header: /home/cvsroot/yaz++/zoom/zrec.cpp,v 1.2 2002-08-08 16:06:08 mike Exp $
+// $Header: /home/cvsroot/yaz++/zoom/zrec.cpp,v 1.3 2002-08-08 16:14:26 mike Exp $
// Z39.50 Record class
#include "zoom++.h"
// Z39.50 Record class
#include "zoom++.h"
-#include <string.h> // for strcasecmp()
+#include <yaz/yaz-util.h> // for yaz_matchstr()
const char *syn = ZOOM_record_get(r, "syntax", 0);
// These string constants are from yaz/util/oid.c
const char *syn = ZOOM_record_get(r, "syntax", 0);
// These string constants are from yaz/util/oid.c
- if (!strcasecmp(syn, "xml"))
+ if (!yaz_matchstr(syn, "xml"))
- else if (!strcasecmp(syn, "GRS-1"))
+ else if (!yaz_matchstr(syn, "GRS-1"))
- else if (!strcasecmp(syn, "SUTRS"))
+ else if (!yaz_matchstr(syn, "SUTRS"))
- else if (!strcasecmp(syn, "USmarc"))
+ else if (!yaz_matchstr(syn, "USmarc"))
- else if (!strcasecmp(syn, "UKmarc"))
+ else if (!yaz_matchstr(syn, "UKmarc"))
- else if (!strcasecmp(syn, "XML") ||
- !strcasecmp(syn, "text-XML") ||
- !strcasecmp(syn, "application-XML"))
+ else if (!yaz_matchstr(syn, "XML") ||
+ !yaz_matchstr(syn, "text-XML") ||
+ !yaz_matchstr(syn, "application-XML"))
return XML;
return UNKNOWN;
return XML;
return UNKNOWN;