Skip to content

Commit 1dbb1ca

Browse files
committed
Initial revision
1 parent 2e250b4 commit 1dbb1ca

17 files changed

Lines changed: 11093 additions & 0 deletions

Modules/expat/Makefile.in

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
################################################################
2+
# Process this file with top-level configure script to produce Makefile
3+
#
4+
# Copyright 2000 Clark Cooper
5+
#
6+
# This file is part of EXPAT.
7+
#
8+
# EXPAT is free software; you can redistribute it and/or modify it
9+
# under the terms of the License (based on the MIT/X license) contained
10+
# in the file COPYING that comes with this distribution.
11+
#
12+
# EXPAT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
13+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
14+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
15+
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
16+
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
17+
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
18+
# SOFTWARE OR THE USE OR OTHER DEALINGS IN EXPAT.
19+
#
20+
21+
22+
SHELL = @SHELL@
23+
24+
srcdir = @srcdir@
25+
top_srcdir = @top_srcdir@
26+
VPATH = @srcdir@
27+
prefix = @prefix@
28+
exec_prefix = @exec_prefix@
29+
30+
bindir = @bindir@
31+
sbindir = @sbindir@
32+
libexecdir = @libexecdir@
33+
datadir = @datadir@
34+
sysconfdir = @sysconfdir@
35+
sharedstatedir = @sharedstatedir@
36+
localstatedir = @localstatedir@
37+
libdir = @libdir@
38+
infodir = @infodir@
39+
mandir = @mandir@
40+
includedir = @includedir@
41+
oldincludedir = /usr/include
42+
43+
subdir = lib
44+
45+
top_builddir = ..
46+
47+
INSTALL = @INSTALL@
48+
INSTALL_PROGRAM = @INSTALL_PROGRAM@
49+
INSTALL_SCRIPT = @INSTALL_SCRIPT@
50+
INSTALL_DATA = @INSTALL_DATA@
51+
52+
host_alias = @host_alias@
53+
host_triplet = @host@
54+
AS = @AS@
55+
CC = @CC@
56+
DLLTOOL = @DLLTOOL@
57+
LIBTOOL = @LIBTOOL@
58+
LN_S = @LN_S@
59+
OBJDUMP = @OBJDUMP@
60+
PACKAGE = @PACKAGE@
61+
RANLIB = @RANLIB@
62+
VERSION = @VERSION@
63+
64+
LIBRARY = libexpat.la
65+
SOURCES = xmlparse.c xmltok.c xmlrole.c
66+
OBJECTS = $(SOURCES:.c=.o)
67+
LTOBJECTS = $(SOURCES:.c=.lo)
68+
69+
TEMPLATES = xmltok_impl.c xmltok_ns.c
70+
APIHEADER = expat.h
71+
HEADERS = ascii.h iasciitab.h utf8tab.h xmltok.h asciitab.h latin1tab.h \
72+
nametab.h xmldef.h xmlrole.h xmltok_impl.h
73+
74+
mkinstalldirs = $(SHELL) $(top_srcdir)/conftools/mkinstalldirs
75+
CONFIG_HEADER = ../config.h
76+
CONFIG_CLEAN_FILES =
77+
78+
INCLUDES = -I$(srcdir) -I. -I..
79+
DEFS = @DEFS@ -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(PACKAGE)_$(VERSION)"'
80+
81+
CPPFLAGS = @CPPFLAGS@
82+
LDFLAGS = @LDFLAGS@
83+
LIBS = @LIBS@
84+
CFLAGS = @CFLAGS@
85+
86+
LIBREVISION = @LIBREVISION@
87+
LIBCURRENT = @LIBCURRENT@
88+
LIBAGE = @LIBAGE@
89+
90+
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
91+
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
92+
CCLD = $(CC)
93+
LINK = $(LIBTOOL) --mode=link $(CCLD) -version-info $(LIBCURRENT):$(LIBREVISION):$(LIBAGE) $(CFLAGS) $(LDFLAGS) -o $@
94+
DIST_COMMON = Makefile.in
95+
96+
97+
DISTFILES = $(DIST_COMMON) $(SOURCES) $(TEMPLATES) $(APIHEADER) $(HEADERS)
98+
99+
TAR = gtar
100+
GZIP_ENV = --best
101+
102+
all: $(LIBRARY)
103+
104+
.SUFFIXES: .c .lo .o
105+
.PHONY: all clean distclean maintainer-clean
106+
107+
.c.o:
108+
$(COMPILE) -c $<
109+
110+
.c.lo:
111+
$(LTCOMPILE) -c $<
112+
113+
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
114+
cd $(top_builddir) \
115+
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
116+
117+
$(top_builddir)/config.status: $(top_builddir)/configure
118+
cd $(top_builddir) && $(MAKE) config.status
119+
120+
$(top_builddir)/config.h: $(top_builddir)/config.h.in
121+
cd $(top_builddir) && $(MAKE) config.h
122+
123+
clean:
124+
rm -f $(LIBRARY) *.o *.lo *~
125+
rm -rf .libs _libs
126+
127+
distclean: clean
128+
rm -f Makefile
129+
130+
maintainer-clean: distclean
131+
132+
check: $(SUBDIRS)
133+
@echo
134+
@echo This package does not yet have a regression test.
135+
@echo
136+
137+
install: $(LIBRARY) $(APIHEADER)
138+
$(mkinstalldirs) $(libdir) $(includedir)
139+
$(LIBTOOL) --mode=install $(INSTALL) $(LIBRARY) $(libdir)/$(LIBRARY)
140+
$(INSTALL_DATA) $(APIHEADER) $(includedir)
141+
142+
uninstall:
143+
$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(LIBRARY);
144+
rm -f $(libdir)/$(APIHEADER)
145+
146+
$(LIBRARY): $(LTOBJECTS)
147+
$(LINK) -rpath $(libdir) $(LDFLAGS) $(LTOBJECTS)
148+
149+
xmlparse.o \
150+
xmlparse.lo: xmlparse.c expat.h xmlrole.h xmltok.h $(top_builddir)/config.h
151+
152+
xmlrole.o \
153+
xmlrole.lo: xmlrole.c ascii.h xmlrole.h $(top_builddir)/config.h
154+
155+
xmltok.o \
156+
xmltok.lo: xmltok.c xmltok_impl.c xmltok_ns.c \
157+
ascii.h asciitab.h iasciitab.h latin1tab.h nametab.h utf8tab.h \
158+
xmltok.h xmltok_impl.h $(top_builddir)/config.h

Modules/expat/ascii.h

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
/*
2+
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3+
See the file COPYING for copying permission.
4+
*/
5+
6+
#define ASCII_A 0x41
7+
#define ASCII_B 0x42
8+
#define ASCII_C 0x43
9+
#define ASCII_D 0x44
10+
#define ASCII_E 0x45
11+
#define ASCII_F 0x46
12+
#define ASCII_G 0x47
13+
#define ASCII_H 0x48
14+
#define ASCII_I 0x49
15+
#define ASCII_J 0x4A
16+
#define ASCII_K 0x4B
17+
#define ASCII_L 0x4C
18+
#define ASCII_M 0x4D
19+
#define ASCII_N 0x4E
20+
#define ASCII_O 0x4F
21+
#define ASCII_P 0x50
22+
#define ASCII_Q 0x51
23+
#define ASCII_R 0x52
24+
#define ASCII_S 0x53
25+
#define ASCII_T 0x54
26+
#define ASCII_U 0x55
27+
#define ASCII_V 0x56
28+
#define ASCII_W 0x57
29+
#define ASCII_X 0x58
30+
#define ASCII_Y 0x59
31+
#define ASCII_Z 0x5A
32+
33+
#define ASCII_a 0x61
34+
#define ASCII_b 0x62
35+
#define ASCII_c 0x63
36+
#define ASCII_d 0x64
37+
#define ASCII_e 0x65
38+
#define ASCII_f 0x66
39+
#define ASCII_g 0x67
40+
#define ASCII_h 0x68
41+
#define ASCII_i 0x69
42+
#define ASCII_j 0x6A
43+
#define ASCII_k 0x6B
44+
#define ASCII_l 0x6C
45+
#define ASCII_m 0x6D
46+
#define ASCII_n 0x6E
47+
#define ASCII_o 0x6F
48+
#define ASCII_p 0x70
49+
#define ASCII_q 0x71
50+
#define ASCII_r 0x72
51+
#define ASCII_s 0x73
52+
#define ASCII_t 0x74
53+
#define ASCII_u 0x75
54+
#define ASCII_v 0x76
55+
#define ASCII_w 0x77
56+
#define ASCII_x 0x78
57+
#define ASCII_y 0x79
58+
#define ASCII_z 0x7A
59+
60+
#define ASCII_0 0x30
61+
#define ASCII_1 0x31
62+
#define ASCII_2 0x32
63+
#define ASCII_3 0x33
64+
#define ASCII_4 0x34
65+
#define ASCII_5 0x35
66+
#define ASCII_6 0x36
67+
#define ASCII_7 0x37
68+
#define ASCII_8 0x38
69+
#define ASCII_9 0x39
70+
71+
#define ASCII_TAB 0x09
72+
#define ASCII_SPACE 0x20
73+
#define ASCII_EXCL 0x21
74+
#define ASCII_QUOT 0x22
75+
#define ASCII_AMP 0x26
76+
#define ASCII_APOS 0x27
77+
#define ASCII_MINUS 0x2D
78+
#define ASCII_PERIOD 0x2E
79+
#define ASCII_COLON 0x3A
80+
#define ASCII_SEMI 0x3B
81+
#define ASCII_LT 0x3C
82+
#define ASCII_EQUALS 0x3D
83+
#define ASCII_GT 0x3E
84+
#define ASCII_LSQB 0x5B
85+
#define ASCII_RSQB 0x5D
86+
#define ASCII_UNDERSCORE 0x5F

Modules/expat/asciitab.h

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3+
See the file COPYING for copying permission.
4+
*/
5+
6+
/* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
7+
/* 0x04 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
8+
/* 0x08 */ BT_NONXML, BT_S, BT_LF, BT_NONXML,
9+
/* 0x0C */ BT_NONXML, BT_CR, BT_NONXML, BT_NONXML,
10+
/* 0x10 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
11+
/* 0x14 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
12+
/* 0x18 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
13+
/* 0x1C */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,
14+
/* 0x20 */ BT_S, BT_EXCL, BT_QUOT, BT_NUM,
15+
/* 0x24 */ BT_OTHER, BT_PERCNT, BT_AMP, BT_APOS,
16+
/* 0x28 */ BT_LPAR, BT_RPAR, BT_AST, BT_PLUS,
17+
/* 0x2C */ BT_COMMA, BT_MINUS, BT_NAME, BT_SOL,
18+
/* 0x30 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
19+
/* 0x34 */ BT_DIGIT, BT_DIGIT, BT_DIGIT, BT_DIGIT,
20+
/* 0x38 */ BT_DIGIT, BT_DIGIT, BT_COLON, BT_SEMI,
21+
/* 0x3C */ BT_LT, BT_EQUALS, BT_GT, BT_QUEST,
22+
/* 0x40 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
23+
/* 0x44 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
24+
/* 0x48 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
25+
/* 0x4C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
26+
/* 0x50 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
27+
/* 0x54 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
28+
/* 0x58 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_LSQB,
29+
/* 0x5C */ BT_OTHER, BT_RSQB, BT_OTHER, BT_NMSTRT,
30+
/* 0x60 */ BT_OTHER, BT_HEX, BT_HEX, BT_HEX,
31+
/* 0x64 */ BT_HEX, BT_HEX, BT_HEX, BT_NMSTRT,
32+
/* 0x68 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
33+
/* 0x6C */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
34+
/* 0x70 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
35+
/* 0x74 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_NMSTRT,
36+
/* 0x78 */ BT_NMSTRT, BT_NMSTRT, BT_NMSTRT, BT_OTHER,
37+
/* 0x7C */ BT_VERBAR, BT_OTHER, BT_OTHER, BT_OTHER,

0 commit comments

Comments
 (0)