Skip to content

Commit 08317ae

Browse files
committed
Update to Expat 1.95.7; there are no changes to the Expat sources.
1 parent 6aedcfc commit 08317ae

File tree

13 files changed

+604
-1045
lines changed

13 files changed

+604
-1045
lines changed

Modules/expat/asciitab.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*
2-
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3-
See the file COPYING for copying permission.
1+
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2+
See the file COPYING for copying permission.
43
*/
54

65
/* 0x00 */ BT_NONXML, BT_NONXML, BT_NONXML, BT_NONXML,

Modules/expat/expat.h

Lines changed: 157 additions & 85 deletions
Large diffs are not rendered by default.

Modules/expat/expat.h.in

Lines changed: 0 additions & 735 deletions
This file was deleted.

Modules/expat/iasciitab.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*
2-
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3-
See the file COPYING for copying permission.
1+
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2+
See the file COPYING for copying permission.
43
*/
54

65
/* Like asciitab.h, except that 0xD has code BT_S rather than BT_CR */

Modules/expat/internal.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@
2020
and therefore subject to change.
2121
*/
2222

23-
#if defined(__GNUC__)
24-
/* Instability reported with egcs on a RedHat Linux 7.3.
25-
Let's comment it out:
23+
#if defined(__GNUC__) && defined(__i386__)
24+
/* We'll use this version by default only where we know it helps.
25+
26+
regparm() generates warnings on Solaris boxes. See SF bug #692878.
27+
28+
Instability reported with egcs on a RedHat Linux 7.3.
29+
Let's comment out:
2630
#define FASTCALL __attribute__((stdcall, regparm(3)))
2731
and let's try this:
2832
*/
2933
#define FASTCALL __attribute__((regparm(3)))
30-
#define PTRCALL
3134
#define PTRFASTCALL __attribute__((regparm(3)))
35+
#endif
3236

33-
#elif defined(WIN32)
3437
/* Using __fastcall seems to have an unexpected negative effect under
3538
MS VC++, especially for function pointers, so we won't use it for
3639
now on that platform. It may be reconsidered for a future release
3740
if it can be made more effective.
3841
Likely reason: __fastcall on Windows is like stdcall, therefore
3942
the compiler cannot perform stack optimizations for call clusters.
4043
*/
41-
#define FASTCALL
42-
#define PTRCALL
43-
#define PTRFASTCALL
4444

45-
#endif
45+
/* Make sure all of these are defined if they aren't already. */
4646

4747
#ifndef FASTCALL
4848
#define FASTCALL

Modules/expat/latin1tab.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*
2-
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3-
See the file COPYING for copying permission.
1+
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2+
See the file COPYING for copying permission.
43
*/
54

65
/* 0x80 */ BT_OTHER, BT_OTHER, BT_OTHER, BT_OTHER,

Modules/expat/macconfig.h

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
/*================================================================
2+
** Copyright 2000, Clark Cooper
3+
** All rights reserved.
4+
**
5+
** This is free software. You are permitted to copy, distribute, or modify
6+
** it under the terms of the MIT/X license (contained in the COPYING file
7+
** with this distribution.)
8+
**
9+
*/
10+
11+
#ifndef MACCONFIG_H
12+
#define MACCONFIG_H
13+
14+
15+
/* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
16+
#define BYTEORDER 4321
17+
18+
/* Define to 1 if you have the `bcopy' function. */
19+
#undef HAVE_BCOPY
20+
21+
/* Define to 1 if you have the <dlfcn.h> header file. */
22+
#undef HAVE_DLFCN_H
23+
24+
/* Define to 1 if you have the <fcntl.h> header file. */
25+
#undef HAVE_FCNTL_H
26+
27+
/* Define to 1 if you have the `getpagesize' function. */
28+
#undef HAVE_GETPAGESIZE
29+
30+
/* Define to 1 if you have the <inttypes.h> header file. */
31+
#undef HAVE_INTTYPES_H
32+
33+
/* Define to 1 if you have the `memmove' function. */
34+
#define HAVE_MEMMOVE
35+
36+
/* Define to 1 if you have the <memory.h> header file. */
37+
#undef HAVE_MEMORY_H
38+
39+
/* Define to 1 if you have a working `mmap' system call. */
40+
#undef HAVE_MMAP
41+
42+
/* Define to 1 if you have the <stdint.h> header file. */
43+
#undef HAVE_STDINT_H
44+
45+
/* Define to 1 if you have the <stdlib.h> header file. */
46+
#define HAVE_STDLIB_H
47+
48+
/* Define to 1 if you have the <strings.h> header file. */
49+
#undef HAVE_STRINGS_H
50+
51+
/* Define to 1 if you have the <string.h> header file. */
52+
#define HAVE_STRING_H
53+
54+
/* Define to 1 if you have the <sys/stat.h> header file. */
55+
#undef HAVE_SYS_STAT_H
56+
57+
/* Define to 1 if you have the <sys/types.h> header file. */
58+
#undef HAVE_SYS_TYPES_H
59+
60+
/* Define to 1 if you have the <unistd.h> header file. */
61+
#undef HAVE_UNISTD_H
62+
63+
/* Define to the address where bug reports for this package should be sent. */
64+
#undef PACKAGE_BUGREPORT
65+
66+
/* Define to the full name of this package. */
67+
#undef PACKAGE_NAME
68+
69+
/* Define to the full name and version of this package. */
70+
#undef PACKAGE_STRING
71+
72+
/* Define to the one symbol short name of this package. */
73+
#undef PACKAGE_TARNAME
74+
75+
/* Define to the version of this package. */
76+
#undef PACKAGE_VERSION
77+
78+
/* Define to 1 if you have the ANSI C header files. */
79+
#define STDC_HEADERS
80+
81+
/* whether byteorder is bigendian */
82+
#define WORDS_BIGENDIAN
83+
84+
/* Define to specify how much context to retain around the current parse
85+
point. */
86+
#undef XML_CONTEXT_BYTES
87+
88+
/* Define to make parameter entity parsing functionality available. */
89+
#define XML_DTD
90+
91+
/* Define to make XML Namespaces functionality available. */
92+
#define XML_NS
93+
94+
/* Define to empty if `const' does not conform to ANSI C. */
95+
#undef const
96+
97+
/* Define to `long' if <sys/types.h> does not define. */
98+
#define off_t long
99+
100+
/* Define to `unsigned' if <sys/types.h> does not define. */
101+
#undef size_t
102+
103+
104+
#endif /* ifndef MACCONFIG_H */

Modules/expat/utf8tab.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*
2-
Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3-
See the file COPYING for copying permission.
1+
/* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
2+
See the file COPYING for copying permission.
43
*/
54

65

Modules/expat/winconfig.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
** This is free software. You are permitted to copy, distribute, or modify
66
** it under the terms of the MIT/X license (contained in the COPYING file
77
** with this distribution.)
8-
**
9-
**
108
*/
119

1210
#ifndef WINCONFIG_H
@@ -21,7 +19,12 @@
2119

2220
#define XML_NS 1
2321
#define XML_DTD 1
24-
#define XML_BYTE_ORDER 12
2522
#define XML_CONTEXT_BYTES 1024
2623

24+
/* we will assume all Windows platforms are little endian */
25+
#define BYTEORDER 1234
26+
27+
/* Windows has memmove() available. */
28+
#define HAVE_MEMMOVE
29+
2730
#endif /* ndef WINCONFIG_H */

0 commit comments

Comments
 (0)