From d7d9ec270cbc180be75921c37aec05cf8cf7e6ec Mon Sep 17 00:00:00 2001 From: ishmal Date: Sat, 22 Apr 2006 20:55:22 +0000 Subject: [PATCH] Config tweaks --- src/dom/Makefile.mingw | 2 +- src/dom/dom.h | 3 ++- src/dom/domconfig.h | 52 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 2 deletions(-) create mode 100644 src/dom/domconfig.h diff --git a/src/dom/Makefile.mingw b/src/dom/Makefile.mingw index cdae967fa..e1842ec11 100644 --- a/src/dom/Makefile.mingw +++ b/src/dom/Makefile.mingw @@ -134,7 +134,7 @@ endif -INC = -I. +INC = -I. -I.. CFLAGS = -Wall -g -DXP_WIN LIBS = -lws2_32 diff --git a/src/dom/dom.h b/src/dom/dom.h index 2248ad61f..046e63dd8 100644 --- a/src/dom/dom.h +++ b/src/dom/dom.h @@ -31,7 +31,8 @@ #include -#define DOM_STRING_GLIBMM +//# include this before the #ifdefs below +#include "domconfig.h" #ifdef DOM_STRING_OWN #include "domstring.h" diff --git a/src/dom/domconfig.h b/src/dom/domconfig.h new file mode 100644 index 000000000..ec9e76b31 --- /dev/null +++ b/src/dom/domconfig.h @@ -0,0 +1,52 @@ +#ifndef __DOMCONFIG_H__ +#define __DOMCONFIG_H__ +/** + * Phoebe DOM Implementation. + * + * This is a C++ approximation of the W3C DOM model, which follows + * fairly closely the specifications in the various .idl files, copies of + * which are provided for reference. Most important is this one: + * + * http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/idl-definitions.html + * + * Authors: + * Bob Jamison + * + * Copyright (C) 2006 Bob Jamison + * + * rwjj@earthlink.net + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/** + * What kind of implementation of DOMString and XMLCh do we want? + * Define one of the two below for either our own implementation, + * or GlibMM's Glib::ustring. If neither one is defined, then DOMString + * is defined as stdc++'s std::string. + */ +#define DOM_STRING_GLIBMM +//#define DOM_STRING_OWN + + + + + +#endif /* __DOMCONFIG_H__ */ +/*######################################################################### +## E N D O F F I L E +#########################################################################*/ + + -- 2.30.2