aboutsummaryrefslogtreecommitdiff
path: root/libxsde
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-02-08 14:01:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-02-08 14:01:20 +0200
commitaa948b624f4c2c0a97f4d92915fa959cf005207f (patch)
tree1314b242e317984f840326df562758de9bdc289a /libxsde
parentefb44d24d5c9f70c28c758bca4683f2e249d7078 (diff)
Use bracket includes in C sources
This way we can move the source code around without also having to move the headers.
Diffstat (limited to 'libxsde')
-rw-r--r--libxsde/xsde/c/expat/xmlparse.c10
-rw-r--r--libxsde/xsde/c/expat/xmlrole.c10
-rw-r--r--libxsde/xsde/c/expat/xmlrole.h2
-rw-r--r--libxsde/xsde/c/expat/xmltok.c84
-rw-r--r--libxsde/xsde/c/genx/char-props.c2
-rw-r--r--libxsde/xsde/c/genx/genx.c2
-rw-r--r--libxsde/xsde/c/regexp/chvalid.c3
-rw-r--r--libxsde/xsde/c/regexp/xmlregexp.c6
-rw-r--r--libxsde/xsde/c/regexp/xmlunicode.c4
9 files changed, 62 insertions, 61 deletions
diff --git a/libxsde/xsde/c/expat/xmlparse.c b/libxsde/xsde/c/expat/xmlparse.c
index 51766e8..031e1a8 100644
--- a/libxsde/xsde/c/expat/xmlparse.c
+++ b/libxsde/xsde/c/expat/xmlparse.c
@@ -10,9 +10,9 @@
#define XML_BUILDING_EXPAT 1
-#include "config.h"
+#include <xsde/c/expat/config.h>
-#include "expat.h"
+#include <xsde/c/expat/expat.h>
#ifdef XSDE_CUSTOM_ALLOCATOR
# include <xsde/allocator.h>
@@ -76,9 +76,9 @@ typedef char ICHAR;
#endif /* HAVE_BCOPY */
#endif /* HAVE_MEMMOVE */
-#include "internal.h"
-#include "xmltok.h"
-#include "xmlrole.h"
+#include <xsde/c/expat/internal.h>
+#include <xsde/c/expat/xmltok.h>
+#include <xsde/c/expat/xmlrole.h>
typedef const XML_Char *KEY;
diff --git a/libxsde/xsde/c/expat/xmlrole.c b/libxsde/xsde/c/expat/xmlrole.c
index cbf0f76..359a0d1 100644
--- a/libxsde/xsde/c/expat/xmlrole.c
+++ b/libxsde/xsde/c/expat/xmlrole.c
@@ -6,12 +6,12 @@
#include <stddef.h>
-#include "config.h"
+#include <xsde/c/expat/config.h>
-#include "expat_external.h"
-#include "internal.h"
-#include "xmlrole.h"
-#include "ascii.h"
+#include <xsde/c/expat/expat_external.h>
+#include <xsde/c/expat/internal.h>
+#include <xsde/c/expat/xmlrole.h>
+#include <xsde/c/expat/ascii.h>
/* Doesn't check:
diff --git a/libxsde/xsde/c/expat/xmlrole.h b/libxsde/xsde/c/expat/xmlrole.h
index 4dd9f06..f232b83 100644
--- a/libxsde/xsde/c/expat/xmlrole.h
+++ b/libxsde/xsde/c/expat/xmlrole.h
@@ -11,7 +11,7 @@
#define XmlPrologStateInitExternalEntity XmlPrologStateInitExternalEnt
#endif
-#include "xmltok.h"
+#include <xsde/c/expat/xmltok.h>
#ifdef __cplusplus
extern "C" {
diff --git a/libxsde/xsde/c/expat/xmltok.c b/libxsde/xsde/c/expat/xmltok.c
index 12b913a..dad812d 100644
--- a/libxsde/xsde/c/expat/xmltok.c
+++ b/libxsde/xsde/c/expat/xmltok.c
@@ -6,12 +6,12 @@
#include <stddef.h>
-#include "config.h"
+#include <xsde/c/expat/config.h>
-#include "expat_external.h"
-#include "internal.h"
-#include "xmltok.h"
-#include "nametab.h"
+#include <xsde/c/expat/expat_external.h>
+#include <xsde/c/expat/internal.h>
+#include <xsde/c/expat/xmltok.h>
+#include <xsde/c/expat/nametab.h>
#ifdef XML_DTD
#define IGNORE_SECTION_TOK_VTABLE , PREFIX(ignoreSectionTok)
@@ -244,8 +244,8 @@ struct normal_encoding {
static int FASTCALL checkCharRefNumber(int);
-#include "xmltok_impl.h"
-#include "ascii.h"
+#include <xsde/c/expat/xmltok_impl.h>
+#include <xsde/c/expat/ascii.h>
#ifdef XML_MIN_SIZE
#define sb_isNameMin isNever
@@ -317,7 +317,7 @@ sb_charMatches(const ENCODING *enc, const char *p, int c)
#endif
#define PREFIX(ident) normal_ ## ident
-#include "xmltok_impl.c"
+#include <xsde/c/expat/xmltok_impl.c>
#undef MINBPC
#undef BYTE_TYPE
@@ -404,8 +404,8 @@ after:
static const struct normal_encoding utf8_encoding_ns = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
-#include "asciitab.h"
-#include "utf8tab.h"
+#include <xsde/c/expat/asciitab.h>
+#include <xsde/c/expat/utf8tab.h>
},
STANDARD_VTABLE(sb_) NORMAL_VTABLE(utf8_)
};
@@ -415,9 +415,9 @@ static const struct normal_encoding utf8_encoding = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
#define BT_COLON BT_NMSTRT
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
#undef BT_COLON
-#include "utf8tab.h"
+#include <xsde/c/expat/utf8tab.h>
},
STANDARD_VTABLE(sb_) NORMAL_VTABLE(utf8_)
};
@@ -427,8 +427,8 @@ static const struct normal_encoding utf8_encoding = {
static const struct normal_encoding internal_utf8_encoding_ns = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
-#include "iasciitab.h"
-#include "utf8tab.h"
+#include <xsde/c/expat/iasciitab.h>
+#include <xsde/c/expat/utf8tab.h>
},
STANDARD_VTABLE(sb_) NORMAL_VTABLE(utf8_)
};
@@ -439,9 +439,9 @@ static const struct normal_encoding internal_utf8_encoding = {
{ VTABLE1, utf8_toUtf8, utf8_toUtf16, 1, 1, 0 },
{
#define BT_COLON BT_NMSTRT
-#include "iasciitab.h"
+#include <xsde/c/expat/iasciitab.h>
#undef BT_COLON
-#include "utf8tab.h"
+#include <xsde/c/expat/utf8tab.h>
},
STANDARD_VTABLE(sb_) NORMAL_VTABLE(utf8_)
};
@@ -489,8 +489,8 @@ latin1_toUtf16(const ENCODING *enc,
static const struct normal_encoding latin1_encoding_ns = {
{ VTABLE1, latin1_toUtf8, latin1_toUtf16, 1, 0, 0 },
{
-#include "asciitab.h"
-#include "latin1tab.h"
+#include <xsde/c/expat/asciitab.h>
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(sb_) ZERO_VTABLE
};
@@ -501,9 +501,9 @@ static const struct normal_encoding latin1_encoding = {
{ VTABLE1, latin1_toUtf8, latin1_toUtf16, 1, 0, 0 },
{
#define BT_COLON BT_NMSTRT
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
#undef BT_COLON
-#include "latin1tab.h"
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(sb_) ZERO_VTABLE
};
@@ -524,7 +524,7 @@ ascii_toUtf8(const ENCODING *enc,
static const struct normal_encoding ascii_encoding_ns = {
{ VTABLE1, ascii_toUtf8, latin1_toUtf16, 1, 1, 0 },
{
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
/* BT_NONXML == 0 */
},
STANDARD_VTABLE(sb_) ZERO_VTABLE
@@ -536,7 +536,7 @@ static const struct normal_encoding ascii_encoding = {
{ VTABLE1, ascii_toUtf8, latin1_toUtf16, 1, 1, 0 },
{
#define BT_COLON BT_NMSTRT
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
#undef BT_COLON
/* BT_NONXML == 0 */
},
@@ -725,7 +725,7 @@ little2_isNmstrtMin(const ENCODING *enc, const char *p)
#define IS_NMSTRT_CHAR(enc, p, n) (0)
#define IS_NMSTRT_CHAR_MINBPC(enc, p) LITTLE2_IS_NMSTRT_CHAR_MINBPC(enc, p)
-#include "xmltok_impl.c"
+#include <xsde/c/expat/xmltok_impl.c>
#undef MINBPC
#undef BYTE_TYPE
@@ -750,8 +750,8 @@ static const struct normal_encoding little2_encoding_ns = {
#endif
},
{
-#include "asciitab.h"
-#include "latin1tab.h"
+#include <xsde/c/expat/asciitab.h>
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(little2_) ZERO_VTABLE
};
@@ -768,9 +768,9 @@ static const struct normal_encoding little2_encoding = {
},
{
#define BT_COLON BT_NMSTRT
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
#undef BT_COLON
-#include "latin1tab.h"
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(little2_) ZERO_VTABLE
};
@@ -782,8 +782,8 @@ static const struct normal_encoding little2_encoding = {
static const struct normal_encoding internal_little2_encoding_ns = {
{ VTABLE, 2, 0, 1 },
{
-#include "iasciitab.h"
-#include "latin1tab.h"
+#include <xsde/c/expat/iasciitab.h>
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(little2_) ZERO_VTABLE
};
@@ -794,9 +794,9 @@ static const struct normal_encoding internal_little2_encoding = {
{ VTABLE, 2, 0, 1 },
{
#define BT_COLON BT_NMSTRT
-#include "iasciitab.h"
+#include <xsde/c/expat/iasciitab.h>
#undef BT_COLON
-#include "latin1tab.h"
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(little2_) ZERO_VTABLE
};
@@ -864,7 +864,7 @@ big2_isNmstrtMin(const ENCODING *enc, const char *p)
#define IS_NMSTRT_CHAR(enc, p, n) (0)
#define IS_NMSTRT_CHAR_MINBPC(enc, p) BIG2_IS_NMSTRT_CHAR_MINBPC(enc, p)
-#include "xmltok_impl.c"
+#include <xsde/c/expat/xmltok_impl.c>
#undef MINBPC
#undef BYTE_TYPE
@@ -889,8 +889,8 @@ static const struct normal_encoding big2_encoding_ns = {
#endif
},
{
-#include "asciitab.h"
-#include "latin1tab.h"
+#include <xsde/c/expat/asciitab.h>
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(big2_) ZERO_VTABLE
};
@@ -907,9 +907,9 @@ static const struct normal_encoding big2_encoding = {
},
{
#define BT_COLON BT_NMSTRT
-#include "asciitab.h"
+#include <xsde/c/expat/asciitab.h>
#undef BT_COLON
-#include "latin1tab.h"
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(big2_) ZERO_VTABLE
};
@@ -921,8 +921,8 @@ static const struct normal_encoding big2_encoding = {
static const struct normal_encoding internal_big2_encoding_ns = {
{ VTABLE, 2, 0, 1 },
{
-#include "iasciitab.h"
-#include "latin1tab.h"
+#include <xsde/c/expat/iasciitab.h>
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(big2_) ZERO_VTABLE
};
@@ -933,9 +933,9 @@ static const struct normal_encoding internal_big2_encoding = {
{ VTABLE, 2, 0, 1 },
{
#define BT_COLON BT_NMSTRT
-#include "iasciitab.h"
+#include <xsde/c/expat/iasciitab.h>
#undef BT_COLON
-#include "latin1tab.h"
+#include <xsde/c/expat/latin1tab.h>
},
STANDARD_VTABLE(big2_) ZERO_VTABLE
};
@@ -1644,7 +1644,7 @@ initScan(const ENCODING * const *encodingTable,
#define NS(x) x
#define ns(x) x
-#include "xmltok_ns.c"
+#include <xsde/c/expat/xmltok_ns.c>
#undef NS
#undef ns
@@ -1653,7 +1653,7 @@ initScan(const ENCODING * const *encodingTable,
#define NS(x) x ## NS
#define ns(x) x ## _ns
-#include "xmltok_ns.c"
+#include <xsde/c/expat/xmltok_ns.c>
#undef NS
#undef ns
diff --git a/libxsde/xsde/c/genx/char-props.c b/libxsde/xsde/c/genx/char-props.c
index 1fcb165..ec73d55 100644
--- a/libxsde/xsde/c/genx/char-props.c
+++ b/libxsde/xsde/c/genx/char-props.c
@@ -13,7 +13,7 @@
*/
#include <xsde/c/pre.h>
-#include "genx.h"
+#include <xsde/c/genx/genx.h>
static void charProp(char * p, int c, int prop)
{
diff --git a/libxsde/xsde/c/genx/genx.c b/libxsde/xsde/c/genx/genx.c
index 4330d53..5c1fc63 100644
--- a/libxsde/xsde/c/genx/genx.c
+++ b/libxsde/xsde/c/genx/genx.c
@@ -15,7 +15,7 @@
#include <xsde/config.h>
-#include "genx.h"
+#include <xsde/c/genx/genx.h>
#ifdef XSDE_CUSTOM_ALLOCATOR
# include <xsde/allocator.h>
diff --git a/libxsde/xsde/c/regexp/chvalid.c b/libxsde/xsde/c/regexp/chvalid.c
index ad248ad..0330ce9 100644
--- a/libxsde/xsde/c/regexp/chvalid.c
+++ b/libxsde/xsde/c/regexp/chvalid.c
@@ -11,7 +11,8 @@
#include <xsde/c/pre.h>
#include <stddef.h>
-#include "chvalid.h"
+
+#include <xsde/c/regexp/chvalid.h>
/*
* The initial tables ({func_name}_tab) are used to validate whether a
diff --git a/libxsde/xsde/c/regexp/xmlregexp.c b/libxsde/xsde/c/regexp/xmlregexp.c
index ad493ce..6d598ed 100644
--- a/libxsde/xsde/c/regexp/xmlregexp.c
+++ b/libxsde/xsde/c/regexp/xmlregexp.c
@@ -22,9 +22,9 @@
# include <xsde/allocator.h>
#endif
-#include "xmlregexp.h"
-#include "xmlunicode.h"
-#include "chvalid.h"
+#include <xsde/c/regexp/xmlregexp.h>
+#include <xsde/c/regexp/xmlunicode.h>
+#include <xsde/c/regexp/chvalid.h>
#ifndef INT_MAX
#define INT_MAX 123456789 /* easy to flag and big enough for our needs */
diff --git a/libxsde/xsde/c/regexp/xmlunicode.c b/libxsde/xsde/c/regexp/xmlunicode.c
index 848c148..5bfdf1f 100644
--- a/libxsde/xsde/c/regexp/xmlunicode.c
+++ b/libxsde/xsde/c/regexp/xmlunicode.c
@@ -13,8 +13,8 @@
#include <string.h>
-#include "xmlunicode.h"
-#include "chvalid.h"
+#include <xsde/c/regexp/xmlunicode.h>
+#include <xsde/c/regexp/chvalid.h>
typedef int (xmlIntFunc)(int); /* just to keep one's mind untwisted */