summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff10ef0)
raw | patch | inline | side by side (parent: ff10ef0)
author | ishmal <ishmal@users.sourceforge.net> | |
Mon, 5 May 2008 21:11:43 +0000 (21:11 +0000) | ||
committer | ishmal <ishmal@users.sourceforge.net> | |
Mon, 5 May 2008 21:11:43 +0000 (21:11 +0000) |
src/dom/Makefile.mingw | patch | blob | history | |
src/dom/work/testuri.cpp | patch | blob | history | |
src/dom/work/testxpath.cpp | patch | blob | history |
diff --git a/src/dom/Makefile.mingw b/src/dom/Makefile.mingw
index 1266bb71cc5ef288f9de543306cf695f2e328c03..4d382c8c0adac9b81d3dad328aa7c1a766160ffe 100644 (file)
--- a/src/dom/Makefile.mingw
+++ b/src/dom/Makefile.mingw
# NATIVE COMPILER SETTINGS
##########################################################################
-CC = i686-pc-mingw32-gcc
-CXX = i686-pc-mingw32-g++
+CC = mingw32-gcc
+CXX = mingw32-g++
AS = as
AR = mingw32-ar
RANLIB = ranlib
RMDIRREC1 = & cd ..
####### Where is your GTK directory?
-GTK=c:/gtk28
+GTK=c:/devlibs
####### Same thing, DOS style
-GTKDOS=c:\gtk28
+GTKDOS=c:\devlibs
####### Command to process .po files --> .mo
MSGFMT = $(GTKDOS)$(S)bin$(S)msgfmt
####### change me!!
-DTG := 20050626
+DTG := 20080515
endif
##########################################################################
INC = -I. -I..
-CFLAGS = -Wall -g -DXP_WIN
+CFLAGS = -Wall -g
LIBS = -lws2_32
DOMOBJ = \
-cssparser.o \
+cssreader.o \
domimpl.o \
domptr.o \
domstring.o \
-jsengine.o \
-jsdombind.o \
lsimpl.o \
smilimpl.o \
uri.o \
io/socket.o \
odf/odfdocument.o \
svgimpl.o \
-svgparser.o \
+svgreader.o \
ucd.o \
util/thread.o \
util/ziptool.o
OBJ = $(DOMOBJ)
-all: testdom.exe testhttp.exe testjs.exe \
+all: testdom.exe testhttp.exe \
testsvg.exe testuri.exe testxpath.exe testzip.exe
testdom.exe: libdom.a work/testdom.o
testhttp.exe: libdom.a work/testhttp.o
$(CXX) -o $@ work/testhttp.o libdom.a $(LIBS)
-testjs.exe: libdom.a work/testjs.o
- $(CXX) -o $@ work/testjs.o libdom.a $(LIBS)
-
testodf.exe: libdom.a work/testodf.o
$(CXX) -o $@ work/testodf.o libdom.a $(LIBS)
-$(RM) *.gch
-$(RM) testdom
-$(RM) testdom.exe
- -$(RM) testjs
- -$(RM) testjs.exe
-$(RM) testsvg
-$(RM) testsvg.exe
-$(RM) testuri
index eed2aba5a3984538cbf0f5934dc56fb0e5c3d162..cd412fd5173d1f53ca93f249d2bcc57427011560 100644 (file)
--- a/src/dom/work/testuri.cpp
+++ b/src/dom/work/testuri.cpp
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006-2007 Bob Jamison
+ * Copyright (C) 2006-2008 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
typedef org::w3c::dom::URI URI;
-static bool doURI(char *uristr)
+static bool doURI(const char *uristr)
{
org::w3c::dom::URI uri(uristr);
printf("##################################\n");
printf("########################################\n");
printf("## TEST 1\n");
printf("########################################\n");
- char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
+ const char *uristr = "http://www.mit.edu:80/index.html?test=good#hello";
doURI(uristr);
uristr = "http://www.mit.edu:80";
doURI(uristr);
index 626176920c521767d8beb29ff32f86ed688354bd..1014d474284482e6b998cf6b4a75255370635daa 100644 (file)
* Authors:
* Bob Jamison
*
- * Copyright (C) 2006 Bob Jamison
+ * Copyright (C) 2006-2008 Bob Jamison
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
typedef struct
{
- char *xpathStr;
- char *desc;
- char *xml;
+ const char *xpathStr;
+ const char *desc;
+ const char *xml;
} XpathTest;
XpathTest xpathTests[] =
-bool doStringTest(char *str)
+bool doStringTest(const char *str)
{
XPathParser xp;
xp.setDebug(true);