Update of /cvsroot/mahogany/M/src/wx/vcard
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3563/src/wx/vcard
Modified Files:
vcc.y vobject.c
Log Message:
compilation with wxWine
Index: vcc.y
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/vcard/vcc.y,v
retrieving revision 1.9
retrieving revision 1.10
diff -b -u -2 -r1.9 -r1.10
--- vcc.y 29 Jun 2002 00:57:28 -0000 1.9
+++ vcc.y 4 Sep 2006 23:15:37 -0000 1.10
@@ -108,4 +108,8 @@
#include "vcc.h"
+#ifdef __WINE__
+#include <wx/wxchar.h> // for wxStricmp
+#endif // __WINE__
+
/**** Types, Constants ****/
@@ -436,8 +440,8 @@
else
addProp(curProp,p1);
- if (stricmp(p1,VCBase64Prop) == 0 || (s2 && stricmp(p2,VCBase64Prop)==0))
+ if (wxStricmp(p1,VCBase64Prop) == 0 || (s2 &&
wxStricmp(p2,VCBase64Prop)==0))
lexPushMode(L_BASE64);
- else if (stricmp(p1,VCQuotedPrintableProp) == 0
- || (s2 && stricmp(p2,VCQuotedPrintableProp)==0))
+ else if (wxStricmp(p1,VCQuotedPrintableProp) == 0
+ || (s2 && wxStricmp(p2,VCQuotedPrintableProp)==0))
lexPushMode(L_QUOTED_PRINTABLE);
deleteStr(s1); deleteStr(s2);
@@ -774,8 +778,8 @@
int token = ID;
if (n) {
- if (!stricmp(n,"vcard")) token = end?END_VCARD:BEGIN_VCARD;
- else if (!stricmp(n,"vcalendar")) token = end?END_VCAL:BEGIN_VCAL;
- else if (!stricmp(n,"vevent")) token = end?END_VEVENT:BEGIN_VEVENT;
- else if (!stricmp(n,"vtodo")) token = end?END_VTODO:BEGIN_VTODO;
+ if (!wxStricmp(n,"vcard")) token = end?END_VCARD:BEGIN_VCARD;
+ else if (!wxStricmp(n,"vcalendar")) token = end?END_VCAL:BEGIN_VCAL;
+ else if (!wxStricmp(n,"vevent")) token = end?END_VEVENT:BEGIN_VEVENT;
+ else if (!wxStricmp(n,"vtodo")) token = end?END_VTODO:BEGIN_VTODO;
deleteStr(n);
return token;
@@ -1087,8 +1091,8 @@
char *t = lexGetWord();
yylval.str = t;
- if (!stricmp(t, "begin")) {
+ if (!wxStricmp(t, "begin")) {
return match_begin_end_name(0);
}
- else if (!stricmp(t,"end")) {
+ else if (!wxStricmp(t,"end")) {
return match_begin_end_name(1);
}
Index: vobject.c
===================================================================
RCS file: /cvsroot/mahogany/M/src/wx/vcard/vobject.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -u -2 -r1.4 -r1.5
--- vobject.c 29 Jun 2002 00:57:28 -0000 1.4
+++ vobject.c 4 Sep 2006 23:15:37 -0000 1.5
@@ -48,4 +48,7 @@
#include <fcntl.h>
+#ifdef __WINE__
+#include <wx/wxchar.h> // for wxStricmp
+#endif // __WINE__
#define NAME_OF(o) o->id
@@ -401,5 +404,5 @@
while (moreIteration(&i)) {
VObject *each = nextVObject(&i);
- if (!stricmp(id,each->id))
+ if (!wxStricmp(id,each->id))
return each;
}
@@ -654,5 +657,5 @@
if ((t = strTbl[h]) != 0) {
do {
- if (stricmp(t->s,s) == 0) {
+ if (wxStricmp(t->s,s) == 0) {
t->refCnt++;
return t->s;
@@ -673,5 +676,5 @@
p = t;
do {
- if (stricmp(t->s,s) == 0) {
+ if (wxStricmp(t->s,s) == 0) {
t->refCnt--;
if (t->refCnt == 0) {
@@ -955,5 +958,5 @@
for (i = 0; propNames[i].name; i++)
- if (stricmp(str, propNames[i].name) == 0) {
+ if (wxStricmp(str, propNames[i].name) == 0) {
return &propNames[i];
}
@@ -968,5 +971,5 @@
for (i = 0; propNames[i].name; i++)
- if (stricmp(str, propNames[i].name) == 0) {
+ if (wxStricmp(str, propNames[i].name) == 0) {
const char* s;
s = propNames[i].alias?propNames[i].alias:propNames[i].name;
@@ -982,5 +985,5 @@
for (i = 0; propNames[i].name; i++)
- if (stricmp(str, propNames[i].name) == 0) {
+ if (wxStricmp(str, propNames[i].name) == 0) {
const char *s;
fieldedProp = propNames[i].fields;
@@ -1259,5 +1262,5 @@
if (list == 0) return 0;
while (*list) {
- if (stricmp(*list,s) == 0) return 1;
+ if (wxStricmp(*list,s) == 0) return 1;
list++;
}
@@ -1286,5 +1289,5 @@
VObject *eachProp = nextVObject(&t);
s = NAME_OF(eachProp);
- if (stricmp(VCGroupingProp,s) && !inList(fields_,s))
+ if (wxStricmp(VCGroupingProp,s) && !inList(fields_,s))
writeAttrValue(fp,eachProp);
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates