jassub 1.7.11 → 1.7.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +251 -251
  3. package/dist/COPYRIGHT +951 -951
  4. package/dist/jassub-worker-modern.wasm +0 -0
  5. package/dist/jassub-worker.js +11 -11
  6. package/dist/jassub-worker.wasm +0 -0
  7. package/dist/jassub-worker.wasm.js +1 -1
  8. package/dist/jassub.es.js +1 -1
  9. package/dist/jassub.umd.js +1 -1
  10. package/dist/js/jassub-worker-modern.js +119 -1
  11. package/dist/js/jassub-worker-modern.wasm +0 -0
  12. package/dist/js/jassub-worker.js +122 -4
  13. package/dist/js/jassub-worker.wasm +0 -0
  14. package/dist/js/jassub-worker.wasm.js +26 -25
  15. package/dist/js/jassub.js +832 -832
  16. package/dist/libraries/bin/brotli.js +1 -0
  17. package/dist/libraries/include/ass/ass.h +812 -0
  18. package/dist/libraries/include/ass/ass_types.h +292 -0
  19. package/dist/libraries/include/brotli/decode.h +344 -0
  20. package/dist/libraries/include/brotli/encode.h +448 -0
  21. package/dist/libraries/include/brotli/port.h +288 -0
  22. package/dist/libraries/include/brotli/types.h +83 -0
  23. package/dist/libraries/include/expat.h +1064 -0
  24. package/dist/libraries/include/expat_config.h +115 -0
  25. package/dist/libraries/include/expat_external.h +165 -0
  26. package/dist/libraries/include/fontconfig/fcfreetype.h +59 -0
  27. package/dist/libraries/include/fontconfig/fcprivate.h +134 -0
  28. package/dist/libraries/include/fontconfig/fontconfig.h +1154 -0
  29. package/dist/libraries/include/freetype2/freetype/config/ftconfig.h +63 -0
  30. package/dist/libraries/include/freetype2/freetype/config/ftheader.h +824 -0
  31. package/dist/libraries/include/freetype2/freetype/config/ftmodule.h +20 -0
  32. package/dist/libraries/include/freetype2/freetype/config/ftoption.h +1011 -0
  33. package/dist/libraries/include/freetype2/freetype/config/ftstdlib.h +175 -0
  34. package/dist/libraries/include/freetype2/freetype/config/integer-types.h +245 -0
  35. package/dist/libraries/include/freetype2/freetype/config/mac-support.h +49 -0
  36. package/dist/libraries/include/freetype2/freetype/config/public-macros.h +120 -0
  37. package/dist/libraries/include/freetype2/freetype/freetype.h +4833 -0
  38. package/dist/libraries/include/freetype2/freetype/ftadvanc.h +188 -0
  39. package/dist/libraries/include/freetype2/freetype/ftbbox.h +101 -0
  40. package/dist/libraries/include/freetype2/freetype/ftbdf.h +212 -0
  41. package/dist/libraries/include/freetype2/freetype/ftbitmap.h +329 -0
  42. package/dist/libraries/include/freetype2/freetype/ftbzip2.h +102 -0
  43. package/dist/libraries/include/freetype2/freetype/ftcache.h +1087 -0
  44. package/dist/libraries/include/freetype2/freetype/ftchapters.h +147 -0
  45. package/dist/libraries/include/freetype2/freetype/ftcid.h +167 -0
  46. package/dist/libraries/include/freetype2/freetype/ftcolor.h +1609 -0
  47. package/dist/libraries/include/freetype2/freetype/ftdriver.h +1193 -0
  48. package/dist/libraries/include/freetype2/freetype/fterrdef.h +279 -0
  49. package/dist/libraries/include/freetype2/freetype/fterrors.h +296 -0
  50. package/dist/libraries/include/freetype2/freetype/ftfntfmt.h +93 -0
  51. package/dist/libraries/include/freetype2/freetype/ftgasp.h +143 -0
  52. package/dist/libraries/include/freetype2/freetype/ftglyph.h +664 -0
  53. package/dist/libraries/include/freetype2/freetype/ftgxval.h +354 -0
  54. package/dist/libraries/include/freetype2/freetype/ftgzip.h +151 -0
  55. package/dist/libraries/include/freetype2/freetype/ftimage.h +1276 -0
  56. package/dist/libraries/include/freetype2/freetype/ftincrem.h +348 -0
  57. package/dist/libraries/include/freetype2/freetype/ftlcdfil.h +323 -0
  58. package/dist/libraries/include/freetype2/freetype/ftlist.h +296 -0
  59. package/dist/libraries/include/freetype2/freetype/ftlogging.h +184 -0
  60. package/dist/libraries/include/freetype2/freetype/ftlzw.h +100 -0
  61. package/dist/libraries/include/freetype2/freetype/ftmac.h +289 -0
  62. package/dist/libraries/include/freetype2/freetype/ftmm.h +752 -0
  63. package/dist/libraries/include/freetype2/freetype/ftmodapi.h +806 -0
  64. package/dist/libraries/include/freetype2/freetype/ftmoderr.h +204 -0
  65. package/dist/libraries/include/freetype2/freetype/ftotval.h +206 -0
  66. package/dist/libraries/include/freetype2/freetype/ftoutln.h +586 -0
  67. package/dist/libraries/include/freetype2/freetype/ftparams.h +203 -0
  68. package/dist/libraries/include/freetype2/freetype/ftpfr.h +179 -0
  69. package/dist/libraries/include/freetype2/freetype/ftrender.h +244 -0
  70. package/dist/libraries/include/freetype2/freetype/ftsizes.h +159 -0
  71. package/dist/libraries/include/freetype2/freetype/ftsnames.h +272 -0
  72. package/dist/libraries/include/freetype2/freetype/ftstroke.h +773 -0
  73. package/dist/libraries/include/freetype2/freetype/ftsynth.h +83 -0
  74. package/dist/libraries/include/freetype2/freetype/ftsystem.h +352 -0
  75. package/dist/libraries/include/freetype2/freetype/fttrigon.h +350 -0
  76. package/dist/libraries/include/freetype2/freetype/fttypes.h +615 -0
  77. package/dist/libraries/include/freetype2/freetype/ftwinfnt.h +276 -0
  78. package/dist/libraries/include/freetype2/freetype/t1tables.h +773 -0
  79. package/dist/libraries/include/freetype2/freetype/ttnameid.h +1235 -0
  80. package/dist/libraries/include/freetype2/freetype/tttables.h +855 -0
  81. package/dist/libraries/include/freetype2/freetype/tttags.h +123 -0
  82. package/dist/libraries/include/freetype2/ft2build.h +42 -0
  83. package/dist/libraries/include/fribidi/fribidi-arabic.h +81 -0
  84. package/dist/libraries/include/fribidi/fribidi-begindecls.h +3 -0
  85. package/dist/libraries/include/fribidi/fribidi-bidi-types-list.h +96 -0
  86. package/dist/libraries/include/fribidi/fribidi-bidi-types.h +405 -0
  87. package/dist/libraries/include/fribidi/fribidi-bidi.h +142 -0
  88. package/dist/libraries/include/fribidi/fribidi-brackets.h +89 -0
  89. package/dist/libraries/include/fribidi/fribidi-char-sets-list.h +54 -0
  90. package/dist/libraries/include/fribidi/fribidi-char-sets.h +106 -0
  91. package/dist/libraries/include/fribidi/fribidi-common.h +158 -0
  92. package/dist/libraries/include/fribidi/fribidi-config.h +23 -0
  93. package/dist/libraries/include/fribidi/fribidi-deprecated.h +175 -0
  94. package/dist/libraries/include/fribidi/fribidi-enddecls.h +3 -0
  95. package/dist/libraries/include/fribidi/fribidi-flags.h +72 -0
  96. package/dist/libraries/include/fribidi/fribidi-joining-types-list.h +44 -0
  97. package/dist/libraries/include/fribidi/fribidi-joining-types.h +249 -0
  98. package/dist/libraries/include/fribidi/fribidi-joining.h +74 -0
  99. package/dist/libraries/include/fribidi/fribidi-mirroring.h +86 -0
  100. package/dist/libraries/include/fribidi/fribidi-shape.h +71 -0
  101. package/dist/libraries/include/fribidi/fribidi-types.h +79 -0
  102. package/dist/libraries/include/fribidi/fribidi-unicode-version.h +10 -0
  103. package/dist/libraries/include/fribidi/fribidi-unicode.h +105 -0
  104. package/dist/libraries/include/fribidi/fribidi.h +129 -0
  105. package/dist/libraries/include/harfbuzz/hb-aat-layout.h +795 -0
  106. package/dist/libraries/include/harfbuzz/hb-aat.h +38 -0
  107. package/dist/libraries/include/harfbuzz/hb-blob.h +160 -0
  108. package/dist/libraries/include/harfbuzz/hb-buffer.h +799 -0
  109. package/dist/libraries/include/harfbuzz/hb-common.h +902 -0
  110. package/dist/libraries/include/harfbuzz/hb-cplusplus.hh +221 -0
  111. package/dist/libraries/include/harfbuzz/hb-deprecated.h +251 -0
  112. package/dist/libraries/include/harfbuzz/hb-draw.h +325 -0
  113. package/dist/libraries/include/harfbuzz/hb-face.h +181 -0
  114. package/dist/libraries/include/harfbuzz/hb-font.h +1108 -0
  115. package/dist/libraries/include/harfbuzz/hb-ft.h +145 -0
  116. package/dist/libraries/include/harfbuzz/hb-map.h +124 -0
  117. package/dist/libraries/include/harfbuzz/hb-ot-color.h +146 -0
  118. package/dist/libraries/include/harfbuzz/hb-ot-deprecated.h +141 -0
  119. package/dist/libraries/include/harfbuzz/hb-ot-font.h +45 -0
  120. package/dist/libraries/include/harfbuzz/hb-ot-layout.h +503 -0
  121. package/dist/libraries/include/harfbuzz/hb-ot-math.h +333 -0
  122. package/dist/libraries/include/harfbuzz/hb-ot-meta.h +72 -0
  123. package/dist/libraries/include/harfbuzz/hb-ot-metrics.h +129 -0
  124. package/dist/libraries/include/harfbuzz/hb-ot-name.h +158 -0
  125. package/dist/libraries/include/harfbuzz/hb-ot-shape.h +53 -0
  126. package/dist/libraries/include/harfbuzz/hb-ot-var.h +191 -0
  127. package/dist/libraries/include/harfbuzz/hb-ot.h +49 -0
  128. package/dist/libraries/include/harfbuzz/hb-set.h +200 -0
  129. package/dist/libraries/include/harfbuzz/hb-shape-plan.h +122 -0
  130. package/dist/libraries/include/harfbuzz/hb-shape.h +62 -0
  131. package/dist/libraries/include/harfbuzz/hb-style.h +81 -0
  132. package/dist/libraries/include/harfbuzz/hb-subset-repacker.h +81 -0
  133. package/dist/libraries/include/harfbuzz/hb-subset.h +234 -0
  134. package/dist/libraries/include/harfbuzz/hb-unicode.h +643 -0
  135. package/dist/libraries/include/harfbuzz/hb-version.h +95 -0
  136. package/dist/libraries/include/harfbuzz/hb.h +50 -0
  137. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config-version.cmake +70 -0
  138. package/dist/libraries/lib/cmake/expat-2.4.7/expat-config.cmake +99 -0
  139. package/dist/libraries/lib/cmake/expat-2.4.7/expat-noconfig.cmake +19 -0
  140. package/dist/libraries/lib/cmake/expat-2.4.7/expat.cmake +99 -0
  141. package/dist/libraries/lib/libass.a +0 -0
  142. package/dist/libraries/lib/libass.la +41 -0
  143. package/dist/libraries/lib/libbrotlicommon.a +0 -0
  144. package/dist/libraries/lib/libbrotlidec.a +0 -0
  145. package/dist/libraries/lib/libbrotlienc.a +0 -0
  146. package/dist/libraries/lib/libexpat.a +0 -0
  147. package/dist/libraries/lib/libfontconfig.a +0 -0
  148. package/dist/libraries/lib/libfontconfig.la +41 -0
  149. package/dist/libraries/lib/libfreetype.a +0 -0
  150. package/dist/libraries/lib/libfreetype.la +41 -0
  151. package/dist/libraries/lib/libfribidi.a +0 -0
  152. package/dist/libraries/lib/libfribidi.la +41 -0
  153. package/dist/libraries/lib/libharfbuzz-subset.a +0 -0
  154. package/dist/libraries/lib/libharfbuzz-subset.la +41 -0
  155. package/dist/libraries/lib/libharfbuzz.a +0 -0
  156. package/dist/libraries/lib/libharfbuzz.la +41 -0
  157. package/dist/libraries/lib/pkgconfig/expat.pc +11 -0
  158. package/dist/libraries/lib/pkgconfig/fontconfig.pc +18 -0
  159. package/dist/libraries/lib/pkgconfig/freetype2.pc +14 -0
  160. package/dist/libraries/lib/pkgconfig/fribidi.pc +13 -0
  161. package/dist/libraries/lib/pkgconfig/harfbuzz-subset.pc +12 -0
  162. package/dist/libraries/lib/pkgconfig/harfbuzz.pc +13 -0
  163. package/dist/libraries/lib/pkgconfig/libass.pc +13 -0
  164. package/dist/libraries/lib/pkgconfig/libbrotlicommon.pc +11 -0
  165. package/dist/libraries/lib/pkgconfig/libbrotlidec.pc +12 -0
  166. package/dist/libraries/lib/pkgconfig/libbrotlienc.pc +12 -0
  167. package/dist/libraries/share/aclocal/freetype2.m4 +194 -0
  168. package/dist/libraries/share/doc/expat/AUTHORS +10 -0
  169. package/dist/libraries/share/doc/expat/changelog +1161 -0
  170. package/index.d.ts +115 -115
  171. package/package.json +1 -1
@@ -0,0 +1,115 @@
1
+ /* expat_config.h.cmake. Based upon generated expat_config.h.in. */
2
+
3
+ /* 1234 = LIL_ENDIAN, 4321 = BIGENDIAN */
4
+ #define BYTEORDER 1234
5
+
6
+ /* Define to 1 if you have the `arc4random' function. */
7
+ /* #undef HAVE_ARC4RANDOM */
8
+
9
+ /* Define to 1 if you have the `arc4random_buf' function. */
10
+ /* #undef HAVE_ARC4RANDOM_BUF */
11
+
12
+ /* Define to 1 if you have the <dlfcn.h> header file. */
13
+ #define HAVE_DLFCN_H
14
+
15
+ /* Define to 1 if you have the <fcntl.h> header file. */
16
+ #define HAVE_FCNTL_H
17
+
18
+ /* Define to 1 if you have the `getpagesize' function. */
19
+ #define HAVE_GETPAGESIZE
20
+
21
+ /* Define to 1 if you have the `getrandom' function. */
22
+ /* #undef HAVE_GETRANDOM */
23
+
24
+ /* Define to 1 if you have the <inttypes.h> header file. */
25
+ #define HAVE_INTTYPES_H
26
+
27
+ /* Define to 1 if you have the `bsd' library (-lbsd). */
28
+ /* #undef HAVE_LIBBSD */
29
+
30
+ /* Define to 1 if you have the <memory.h> header file. */
31
+ #define HAVE_MEMORY_H
32
+
33
+ /* Define to 1 if you have a working `mmap' system call. */
34
+ #define HAVE_MMAP
35
+
36
+ /* Define to 1 if you have the <stdint.h> header file. */
37
+ #define HAVE_STDINT_H
38
+
39
+ /* Define to 1 if you have the <stdlib.h> header file. */
40
+ #define HAVE_STDLIB_H
41
+
42
+ /* Define to 1 if you have the <strings.h> header file. */
43
+ #define HAVE_STRINGS_H
44
+
45
+ /* Define to 1 if you have the <string.h> header file. */
46
+ #define HAVE_STRING_H
47
+
48
+ /* Define to 1 if you have `syscall' and `SYS_getrandom'. */
49
+ /* #undef HAVE_SYSCALL_GETRANDOM */
50
+
51
+ /* Define to 1 if you have the <sys/stat.h> header file. */
52
+ #define HAVE_SYS_STAT_H
53
+
54
+ /* Define to 1 if you have the <sys/types.h> header file. */
55
+ #define HAVE_SYS_TYPES_H
56
+
57
+ /* Define to 1 if you have the <unistd.h> header file. */
58
+ #define HAVE_UNISTD_H
59
+
60
+ /* Name of package */
61
+ #define PACKAGE "expat"
62
+
63
+ /* Define to the address where bug reports for this package should be sent. */
64
+ #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org"
65
+
66
+ /* Define to the full name of this package. */
67
+ #define PACKAGE_NAME "expat"
68
+
69
+ /* Define to the full name and version of this package. */
70
+ #define PACKAGE_STRING "expat 2.4.7"
71
+
72
+ /* Define to the one symbol short name of this package. */
73
+ #define PACKAGE_TARNAME "expat"
74
+
75
+ /* Define to the home page for this package. */
76
+ #define PACKAGE_URL ""
77
+
78
+ /* Define to the version of this package. */
79
+ #define PACKAGE_VERSION "2.4.7"
80
+
81
+ /* Define to 1 if you have the ANSI C header files. */
82
+ #define STDC_HEADERS
83
+
84
+ /* whether byteorder is bigendian */
85
+ /* #undef WORDS_BIGENDIAN */
86
+
87
+ /* Define to allow retrieving the byte offsets for attribute names and values.
88
+ */
89
+ /* #undef XML_ATTR_INFO */
90
+
91
+ /* Define to specify how much context to retain around the current parse
92
+ point. */
93
+ #define XML_CONTEXT_BYTES 1024
94
+
95
+ #if ! defined(_WIN32)
96
+ /* Define to include code reading entropy from `/dev/urandom'. */
97
+ #define XML_DEV_URANDOM
98
+ #endif
99
+
100
+ /* Define to make parameter entity parsing functionality available. */
101
+ #define XML_DTD
102
+
103
+ /* Define to make XML Namespaces functionality available. */
104
+ #define XML_NS
105
+
106
+ /* Define to __FUNCTION__ or "" if `__func__' does not conform to ANSI C. */
107
+ #ifdef _MSC_VER
108
+ # define __func__ __FUNCTION__
109
+ #endif
110
+
111
+ /* Define to `long' if <sys/types.h> does not define. */
112
+ /* #undef off_t */
113
+
114
+ /* Define to `unsigned' if <sys/types.h> does not define. */
115
+ /* #undef size_t */
@@ -0,0 +1,165 @@
1
+ /*
2
+ __ __ _
3
+ ___\ \/ /_ __ __ _| |_
4
+ / _ \\ /| '_ \ / _` | __|
5
+ | __// \| |_) | (_| | |_
6
+ \___/_/\_\ .__/ \__,_|\__|
7
+ |_| XML parser
8
+
9
+ Copyright (c) 1997-2000 Thai Open Source Software Center Ltd
10
+ Copyright (c) 2000 Clark Cooper <coopercc@users.sourceforge.net>
11
+ Copyright (c) 2000-2004 Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
12
+ Copyright (c) 2001-2002 Greg Stein <gstein@users.sourceforge.net>
13
+ Copyright (c) 2002-2006 Karl Waclawek <karl@waclawek.net>
14
+ Copyright (c) 2016 Cristian Rodríguez <crrodriguez@opensuse.org>
15
+ Copyright (c) 2016-2019 Sebastian Pipping <sebastian@pipping.org>
16
+ Copyright (c) 2017 Rhodri James <rhodri@wildebeest.org.uk>
17
+ Copyright (c) 2018 Yury Gribov <tetra2005@gmail.com>
18
+ Licensed under the MIT license:
19
+
20
+ Permission is hereby granted, free of charge, to any person obtaining
21
+ a copy of this software and associated documentation files (the
22
+ "Software"), to deal in the Software without restriction, including
23
+ without limitation the rights to use, copy, modify, merge, publish,
24
+ distribute, sublicense, and/or sell copies of the Software, and to permit
25
+ persons to whom the Software is furnished to do so, subject to the
26
+ following conditions:
27
+
28
+ The above copyright notice and this permission notice shall be included
29
+ in all copies or substantial portions of the Software.
30
+
31
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
32
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
34
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
35
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
36
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
37
+ USE OR OTHER DEALINGS IN THE SOFTWARE.
38
+ */
39
+
40
+ #ifndef Expat_External_INCLUDED
41
+ #define Expat_External_INCLUDED 1
42
+
43
+ /* External API definitions */
44
+
45
+ /* Expat tries very hard to make the API boundary very specifically
46
+ defined. There are two macros defined to control this boundary;
47
+ each of these can be defined before including this header to
48
+ achieve some different behavior, but doing so it not recommended or
49
+ tested frequently.
50
+
51
+ XMLCALL - The calling convention to use for all calls across the
52
+ "library boundary." This will default to cdecl, and
53
+ try really hard to tell the compiler that's what we
54
+ want.
55
+
56
+ XMLIMPORT - Whatever magic is needed to note that a function is
57
+ to be imported from a dynamically loaded library
58
+ (.dll, .so, or .sl, depending on your platform).
59
+
60
+ The XMLCALL macro was added in Expat 1.95.7. The only one which is
61
+ expected to be directly useful in client code is XMLCALL.
62
+
63
+ Note that on at least some Unix versions, the Expat library must be
64
+ compiled with the cdecl calling convention as the default since
65
+ system headers may assume the cdecl convention.
66
+ */
67
+ #ifndef XMLCALL
68
+ # if defined(_MSC_VER)
69
+ # define XMLCALL __cdecl
70
+ # elif defined(__GNUC__) && defined(__i386) && ! defined(__INTEL_COMPILER)
71
+ # define XMLCALL __attribute__((cdecl))
72
+ # else
73
+ /* For any platform which uses this definition and supports more than
74
+ one calling convention, we need to extend this definition to
75
+ declare the convention used on that platform, if it's possible to
76
+ do so.
77
+
78
+ If this is the case for your platform, please file a bug report
79
+ with information on how to identify your platform via the C
80
+ pre-processor and how to specify the same calling convention as the
81
+ platform's malloc() implementation.
82
+ */
83
+ # define XMLCALL
84
+ # endif
85
+ #endif /* not defined XMLCALL */
86
+
87
+ #if ! defined(XML_STATIC) && ! defined(XMLIMPORT)
88
+ # ifndef XML_BUILDING_EXPAT
89
+ /* using Expat from an application */
90
+
91
+ # if defined(_MSC_EXTENSIONS) && ! defined(__BEOS__) && ! defined(__CYGWIN__)
92
+ # define XMLIMPORT __declspec(dllimport)
93
+ # endif
94
+
95
+ # endif
96
+ #endif /* not defined XML_STATIC */
97
+
98
+ #ifndef XML_ENABLE_VISIBILITY
99
+ # define XML_ENABLE_VISIBILITY 0
100
+ #endif
101
+
102
+ #if ! defined(XMLIMPORT) && XML_ENABLE_VISIBILITY
103
+ # define XMLIMPORT __attribute__((visibility("default")))
104
+ #endif
105
+
106
+ /* If we didn't define it above, define it away: */
107
+ #ifndef XMLIMPORT
108
+ # define XMLIMPORT
109
+ #endif
110
+
111
+ #if defined(__GNUC__) \
112
+ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96))
113
+ # define XML_ATTR_MALLOC __attribute__((__malloc__))
114
+ #else
115
+ # define XML_ATTR_MALLOC
116
+ #endif
117
+
118
+ #if defined(__GNUC__) \
119
+ && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
120
+ # define XML_ATTR_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
121
+ #else
122
+ # define XML_ATTR_ALLOC_SIZE(x)
123
+ #endif
124
+
125
+ #define XMLPARSEAPI(type) XMLIMPORT type XMLCALL
126
+
127
+ #ifdef __cplusplus
128
+ extern "C" {
129
+ #endif
130
+
131
+ #ifdef XML_UNICODE_WCHAR_T
132
+ # ifndef XML_UNICODE
133
+ # define XML_UNICODE
134
+ # endif
135
+ # if defined(__SIZEOF_WCHAR_T__) && (__SIZEOF_WCHAR_T__ != 2)
136
+ # error "sizeof(wchar_t) != 2; Need -fshort-wchar for both Expat and libc"
137
+ # endif
138
+ #endif
139
+
140
+ #ifdef XML_UNICODE /* Information is UTF-16 encoded. */
141
+ # ifdef XML_UNICODE_WCHAR_T
142
+ typedef wchar_t XML_Char;
143
+ typedef wchar_t XML_LChar;
144
+ # else
145
+ typedef unsigned short XML_Char;
146
+ typedef char XML_LChar;
147
+ # endif /* XML_UNICODE_WCHAR_T */
148
+ #else /* Information is UTF-8 encoded. */
149
+ typedef char XML_Char;
150
+ typedef char XML_LChar;
151
+ #endif /* XML_UNICODE */
152
+
153
+ #ifdef XML_LARGE_SIZE /* Use large integers for file/stream positions. */
154
+ typedef long long XML_Index;
155
+ typedef unsigned long long XML_Size;
156
+ #else
157
+ typedef long XML_Index;
158
+ typedef unsigned long XML_Size;
159
+ #endif /* XML_LARGE_SIZE */
160
+
161
+ #ifdef __cplusplus
162
+ }
163
+ #endif
164
+
165
+ #endif /* not Expat_External_INCLUDED */
@@ -0,0 +1,59 @@
1
+ /*
2
+ * fontconfig/fontconfig/fcfreetype.h
3
+ *
4
+ * Copyright © 2001 Keith Packard
5
+ *
6
+ * Permission to use, copy, modify, distribute, and sell this software and its
7
+ * documentation for any purpose is hereby granted without fee, provided that
8
+ * the above copyright notice appear in all copies and that both that
9
+ * copyright notice and this permission notice appear in supporting
10
+ * documentation, and that the name of the author(s) not be used in
11
+ * advertising or publicity pertaining to distribution of the software without
12
+ * specific, written prior permission. The authors make no
13
+ * representations about the suitability of this software for any purpose. It
14
+ * is provided "as is" without express or implied warranty.
15
+ *
16
+ * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18
+ * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
+ * PERFORMANCE OF THIS SOFTWARE.
23
+ */
24
+
25
+ #ifndef _FCFREETYPE_H_
26
+ #define _FCFREETYPE_H_
27
+ #include <ft2build.h>
28
+ #include FT_FREETYPE_H
29
+
30
+ #ifndef FcPublic
31
+ #define FcPublic
32
+ #endif
33
+
34
+ _FCFUNCPROTOBEGIN
35
+
36
+ FcPublic FT_UInt
37
+ FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4);
38
+
39
+ FcPublic FcCharSet *
40
+ FcFreeTypeCharSetAndSpacing (FT_Face face, FcBlanks *blanks, int *spacing);
41
+
42
+ FcPublic FcCharSet *
43
+ FcFreeTypeCharSet (FT_Face face, FcBlanks *blanks);
44
+
45
+ FcPublic FcResult
46
+ FcPatternGetFTFace (const FcPattern *p, const char *object, int n, FT_Face *f);
47
+
48
+ FcPublic FcBool
49
+ FcPatternAddFTFace (FcPattern *p, const char *object, const FT_Face f);
50
+
51
+ FcPublic FcPattern *
52
+ FcFreeTypeQueryFace (const FT_Face face,
53
+ const FcChar8 *file,
54
+ unsigned int id,
55
+ FcBlanks *blanks);
56
+
57
+ _FCFUNCPROTOEND
58
+
59
+ #endif
@@ -0,0 +1,134 @@
1
+ /*
2
+ * fontconfig/fontconfig/fcprivate.h
3
+ *
4
+ * Copyright © 2001 Keith Packard
5
+ *
6
+ * Permission to use, copy, modify, distribute, and sell this software and its
7
+ * documentation for any purpose is hereby granted without fee, provided that
8
+ * the above copyright notice appear in all copies and that both that
9
+ * copyright notice and this permission notice appear in supporting
10
+ * documentation, and that the name of the author(s) not be used in
11
+ * advertising or publicity pertaining to distribution of the software without
12
+ * specific, written prior permission. The authors make no
13
+ * representations about the suitability of this software for any purpose. It
14
+ * is provided "as is" without express or implied warranty.
15
+ *
16
+ * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18
+ * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22
+ * PERFORMANCE OF THIS SOFTWARE.
23
+ */
24
+
25
+ #ifndef _FCPRIVATE_H_
26
+ #define _FCPRIVATE_H_
27
+
28
+ /*
29
+ * I tried this with functions that took va_list* arguments
30
+ * but portability concerns made me change these functions
31
+ * into macros (sigh).
32
+ */
33
+
34
+ #define FcPatternVapBuild(result, orig, va) \
35
+ { \
36
+ FcPattern *__p__ = (orig); \
37
+ const char *__o__; \
38
+ FcValue __v__; \
39
+ \
40
+ if (!__p__) \
41
+ { \
42
+ __p__ = FcPatternCreate (); \
43
+ if (!__p__) \
44
+ goto _FcPatternVapBuild_bail0; \
45
+ } \
46
+ for (;;) \
47
+ { \
48
+ __o__ = va_arg (va, const char *); \
49
+ if (!__o__) \
50
+ break; \
51
+ __v__.type = va_arg (va, int); \
52
+ switch (__v__.type) { \
53
+ case FcTypeUnknown: \
54
+ case FcTypeVoid: \
55
+ goto _FcPatternVapBuild_bail1; \
56
+ case FcTypeInteger: \
57
+ __v__.u.i = va_arg (va, int); \
58
+ break; \
59
+ case FcTypeDouble: \
60
+ __v__.u.d = va_arg (va, double); \
61
+ break; \
62
+ case FcTypeString: \
63
+ __v__.u.s = va_arg (va, const FcChar8 *); \
64
+ break; \
65
+ case FcTypeBool: \
66
+ __v__.u.b = va_arg (va, FcBool); \
67
+ break; \
68
+ case FcTypeMatrix: \
69
+ __v__.u.m = va_arg (va, const FcMatrix *); \
70
+ break; \
71
+ case FcTypeCharSet: \
72
+ __v__.u.c = va_arg (va, const FcCharSet *); \
73
+ break; \
74
+ case FcTypeFTFace: \
75
+ __v__.u.f = va_arg (va, FT_Face); \
76
+ break; \
77
+ case FcTypeLangSet: \
78
+ __v__.u.l = va_arg (va, const FcLangSet *); \
79
+ break; \
80
+ case FcTypeRange: \
81
+ __v__.u.r = va_arg (va, const FcRange *); \
82
+ break; \
83
+ } \
84
+ if (!FcPatternAdd (__p__, __o__, __v__, FcTrue)) \
85
+ goto _FcPatternVapBuild_bail1; \
86
+ } \
87
+ result = __p__; \
88
+ goto _FcPatternVapBuild_return; \
89
+ \
90
+ _FcPatternVapBuild_bail1: \
91
+ if (!orig) \
92
+ FcPatternDestroy (__p__); \
93
+ _FcPatternVapBuild_bail0: \
94
+ result = (void*)0; \
95
+ \
96
+ _FcPatternVapBuild_return: \
97
+ ; \
98
+ }
99
+
100
+
101
+ #define FcObjectSetVapBuild(__ret__, __first__, __va__) \
102
+ { \
103
+ FcObjectSet *__os__; \
104
+ const char *__ob__; \
105
+ \
106
+ __ret__ = 0; \
107
+ __os__ = FcObjectSetCreate (); \
108
+ if (!__os__) \
109
+ goto _FcObjectSetVapBuild_bail0; \
110
+ __ob__ = __first__; \
111
+ while (__ob__) \
112
+ { \
113
+ if (!FcObjectSetAdd (__os__, __ob__)) \
114
+ goto _FcObjectSetVapBuild_bail1; \
115
+ __ob__ = va_arg (__va__, const char *); \
116
+ } \
117
+ __ret__ = __os__; \
118
+ \
119
+ _FcObjectSetVapBuild_bail1: \
120
+ if (!__ret__ && __os__) \
121
+ FcObjectSetDestroy (__os__); \
122
+ _FcObjectSetVapBuild_bail0: \
123
+ ; \
124
+ }
125
+
126
+ #ifndef FC_ATTRIBUTE_VISIBILITY_HIDDEN
127
+ #define FC_ATTRIBUTE_VISIBILITY_HIDDEN __attribute((visibility("hidden")))
128
+ #endif
129
+
130
+ #ifndef FC_ATTRIBUTE_VISIBILITY_EXPORT
131
+ #define FC_ATTRIBUTE_VISIBILITY_EXPORT __attribute((visibility("default")))
132
+ #endif
133
+
134
+ #endif /* _FCPRIVATE_H_ */