Codebase list unrtf / dff09ba
New upstream version 0.21.10-clean Willi Mann 4 years ago
47 changed file(s) with 5959 addition(s) and 2956 deletion(s). Raw diff Collapse all Expand all
283283 - Support EndNote reference citations in convert.c
284284 - Improved handling of some tables
285285 - Fixed --text processing broken in 0.21.8 - outputs/text.conf
286 0.21.10:
287 - added gentoo automake-fix and iconv-detection patches
+170
-172
INSTALL less more
00 Installation Instructions
11 *************************
22
3 Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
4 Inc.
3 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
4 Foundation, Inc.
55
66 Copying and distribution of this file, with or without modification,
77 are permitted in any medium without royalty provided the copyright
1111 Basic Installation
1212 ==================
1313
14 Briefly, the shell commands `./configure; make; make install' should
15 configure, build, and install this package. The following
16 more-detailed instructions are generic; see the `README' file for
14 Briefly, the shell command './configure && make && make install'
15 should configure, build, and install this package. The following
16 more-detailed instructions are generic; see the 'README' file for
1717 instructions specific to this package. Some packages provide this
18 `INSTALL' file but do not implement all of the features documented
18 'INSTALL' file but do not implement all of the features documented
1919 below. The lack of an optional feature in a given package is not
2020 necessarily a bug. More recommendations for GNU packages can be found
2121 in *note Makefile Conventions: (standards)Makefile Conventions.
2222
23 The `configure' shell script attempts to guess correct values for
23 The 'configure' shell script attempts to guess correct values for
2424 various system-dependent variables used during compilation. It uses
25 those values to create a `Makefile' in each directory of the package.
26 It may also create one or more `.h' files containing system-dependent
27 definitions. Finally, it creates a shell script `config.status' that
25 those values to create a 'Makefile' in each directory of the package.
26 It may also create one or more '.h' files containing system-dependent
27 definitions. Finally, it creates a shell script 'config.status' that
2828 you can run in the future to recreate the current configuration, and a
29 file `config.log' containing compiler output (useful mainly for
30 debugging `configure').
31
32 It can also use an optional file (typically called `config.cache'
33 and enabled with `--cache-file=config.cache' or simply `-C') that saves
34 the results of its tests to speed up reconfiguring. Caching is
35 disabled by default to prevent problems with accidental use of stale
36 cache files.
29 file 'config.log' containing compiler output (useful mainly for
30 debugging 'configure').
31
32 It can also use an optional file (typically called 'config.cache' and
33 enabled with '--cache-file=config.cache' or simply '-C') that saves the
34 results of its tests to speed up reconfiguring. Caching is disabled by
35 default to prevent problems with accidental use of stale cache files.
3736
3837 If you need to do unusual things to compile the package, please try
39 to figure out how `configure' could check whether to do them, and mail
40 diffs or instructions to the address given in the `README' so they can
38 to figure out how 'configure' could check whether to do them, and mail
39 diffs or instructions to the address given in the 'README' so they can
4140 be considered for the next release. If you are using the cache, and at
42 some point `config.cache' contains results you don't want to keep, you
41 some point 'config.cache' contains results you don't want to keep, you
4342 may remove or edit it.
4443
45 The file `configure.ac' (or `configure.in') is used to create
46 `configure' by a program called `autoconf'. You need `configure.ac' if
47 you want to change it or regenerate `configure' using a newer version
48 of `autoconf'.
44 The file 'configure.ac' (or 'configure.in') is used to create
45 'configure' by a program called 'autoconf'. You need 'configure.ac' if
46 you want to change it or regenerate 'configure' using a newer version of
47 'autoconf'.
4948
5049 The simplest way to compile this package is:
5150
52 1. `cd' to the directory containing the package's source code and type
53 `./configure' to configure the package for your system.
54
55 Running `configure' might take a while. While running, it prints
51 1. 'cd' to the directory containing the package's source code and type
52 './configure' to configure the package for your system.
53
54 Running 'configure' might take a while. While running, it prints
5655 some messages telling which features it is checking for.
5756
58 2. Type `make' to compile the package.
59
60 3. Optionally, type `make check' to run any self-tests that come with
57 2. Type 'make' to compile the package.
58
59 3. Optionally, type 'make check' to run any self-tests that come with
6160 the package, generally using the just-built uninstalled binaries.
6261
63 4. Type `make install' to install the programs and any data files and
62 4. Type 'make install' to install the programs and any data files and
6463 documentation. When installing into a prefix owned by root, it is
6564 recommended that the package be configured and built as a regular
66 user, and only the `make install' phase executed with root
65 user, and only the 'make install' phase executed with root
6766 privileges.
6867
69 5. Optionally, type `make installcheck' to repeat any self-tests, but
68 5. Optionally, type 'make installcheck' to repeat any self-tests, but
7069 this time using the binaries in their final installed location.
7170 This target does not install anything. Running this target as a
72 regular user, particularly if the prior `make install' required
71 regular user, particularly if the prior 'make install' required
7372 root privileges, verifies that the installation completed
7473 correctly.
7574
7675 6. You can remove the program binaries and object files from the
77 source code directory by typing `make clean'. To also remove the
78 files that `configure' created (so you can compile the package for
79 a different kind of computer), type `make distclean'. There is
80 also a `make maintainer-clean' target, but that is intended mainly
76 source code directory by typing 'make clean'. To also remove the
77 files that 'configure' created (so you can compile the package for
78 a different kind of computer), type 'make distclean'. There is
79 also a 'make maintainer-clean' target, but that is intended mainly
8180 for the package's developers. If you use it, you may have to get
8281 all sorts of other programs in order to regenerate files that came
8382 with the distribution.
8483
85 7. Often, you can also type `make uninstall' to remove the installed
84 7. Often, you can also type 'make uninstall' to remove the installed
8685 files again. In practice, not all packages have tested that
8786 uninstallation works correctly, even though it is required by the
8887 GNU Coding Standards.
8988
90 8. Some packages, particularly those that use Automake, provide `make
89 8. Some packages, particularly those that use Automake, provide 'make
9190 distcheck', which can by used by developers to test that all other
92 targets like `make install' and `make uninstall' work correctly.
91 targets like 'make install' and 'make uninstall' work correctly.
9392 This target is generally not run by end users.
9493
9594 Compilers and Options
9695 =====================
9796
9897 Some systems require unusual options for compilation or linking that
99 the `configure' script does not know about. Run `./configure --help'
98 the 'configure' script does not know about. Run './configure --help'
10099 for details on some of the pertinent environment variables.
101100
102 You can give `configure' initial values for configuration parameters
103 by setting variables in the command line or in the environment. Here
104 is an example:
101 You can give 'configure' initial values for configuration parameters
102 by setting variables in the command line or in the environment. Here is
103 an example:
105104
106105 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
107106
112111
113112 You can compile the package for more than one kind of computer at the
114113 same time, by placing the object files for each architecture in their
115 own directory. To do this, you can use GNU `make'. `cd' to the
114 own directory. To do this, you can use GNU 'make'. 'cd' to the
116115 directory where you want the object files and executables to go and run
117 the `configure' script. `configure' automatically checks for the
118 source code in the directory that `configure' is in and in `..'. This
119 is known as a "VPATH" build.
120
121 With a non-GNU `make', it is safer to compile the package for one
116 the 'configure' script. 'configure' automatically checks for the source
117 code in the directory that 'configure' is in and in '..'. This is known
118 as a "VPATH" build.
119
120 With a non-GNU 'make', it is safer to compile the package for one
122121 architecture at a time in the source code directory. After you have
123 installed the package for one architecture, use `make distclean' before
122 installed the package for one architecture, use 'make distclean' before
124123 reconfiguring for another architecture.
125124
126125 On MacOS X 10.5 and later systems, you can create libraries and
127126 executables that work on multiple system types--known as "fat" or
128 "universal" binaries--by specifying multiple `-arch' options to the
129 compiler but only a single `-arch' option to the preprocessor. Like
127 "universal" binaries--by specifying multiple '-arch' options to the
128 compiler but only a single '-arch' option to the preprocessor. Like
130129 this:
131130
132131 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135134
136135 This is not guaranteed to produce working output in all cases, you
137136 may have to build one architecture at a time and combine the results
138 using the `lipo' tool if you have problems.
137 using the 'lipo' tool if you have problems.
139138
140139 Installation Names
141140 ==================
142141
143 By default, `make install' installs the package's commands under
144 `/usr/local/bin', include files under `/usr/local/include', etc. You
145 can specify an installation prefix other than `/usr/local' by giving
146 `configure' the option `--prefix=PREFIX', where PREFIX must be an
142 By default, 'make install' installs the package's commands under
143 '/usr/local/bin', include files under '/usr/local/include', etc. You
144 can specify an installation prefix other than '/usr/local' by giving
145 'configure' the option '--prefix=PREFIX', where PREFIX must be an
147146 absolute file name.
148147
149148 You can specify separate installation prefixes for
150149 architecture-specific files and architecture-independent files. If you
151 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
150 pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
152151 PREFIX as the prefix for installing programs and libraries.
153152 Documentation and other data files still use the regular prefix.
154153
155154 In addition, if you use an unusual directory layout you can give
156 options like `--bindir=DIR' to specify different values for particular
157 kinds of files. Run `configure --help' for a list of the directories
158 you can set and what kinds of files go in them. In general, the
159 default for these options is expressed in terms of `${prefix}', so that
160 specifying just `--prefix' will affect all of the other directory
155 options like '--bindir=DIR' to specify different values for particular
156 kinds of files. Run 'configure --help' for a list of the directories
157 you can set and what kinds of files go in them. In general, the default
158 for these options is expressed in terms of '${prefix}', so that
159 specifying just '--prefix' will affect all of the other directory
161160 specifications that were not explicitly provided.
162161
163162 The most portable way to affect installation locations is to pass the
164 correct locations to `configure'; however, many packages provide one or
163 correct locations to 'configure'; however, many packages provide one or
165164 both of the following shortcuts of passing variable assignments to the
166 `make install' command line to change installation locations without
165 'make install' command line to change installation locations without
167166 having to reconfigure or recompile.
168167
169168 The first method involves providing an override variable for each
170 affected directory. For example, `make install
169 affected directory. For example, 'make install
171170 prefix=/alternate/directory' will choose an alternate location for all
172171 directory configuration variables that were expressed in terms of
173 `${prefix}'. Any directories that were specified during `configure',
174 but not in terms of `${prefix}', must each be overridden at install
175 time for the entire installation to be relocated. The approach of
176 makefile variable overrides for each directory variable is required by
177 the GNU Coding Standards, and ideally causes no recompilation.
178 However, some platforms have known limitations with the semantics of
179 shared libraries that end up requiring recompilation when using this
180 method, particularly noticeable in packages that use GNU Libtool.
181
182 The second method involves providing the `DESTDIR' variable. For
183 example, `make install DESTDIR=/alternate/directory' will prepend
184 `/alternate/directory' before all installation names. The approach of
185 `DESTDIR' overrides is not required by the GNU Coding Standards, and
172 '${prefix}'. Any directories that were specified during 'configure',
173 but not in terms of '${prefix}', must each be overridden at install time
174 for the entire installation to be relocated. The approach of makefile
175 variable overrides for each directory variable is required by the GNU
176 Coding Standards, and ideally causes no recompilation. However, some
177 platforms have known limitations with the semantics of shared libraries
178 that end up requiring recompilation when using this method, particularly
179 noticeable in packages that use GNU Libtool.
180
181 The second method involves providing the 'DESTDIR' variable. For
182 example, 'make install DESTDIR=/alternate/directory' will prepend
183 '/alternate/directory' before all installation names. The approach of
184 'DESTDIR' overrides is not required by the GNU Coding Standards, and
186185 does not work on platforms that have drive letters. On the other hand,
187186 it does better at avoiding recompilation issues, and works well even
188 when some directory options were not specified in terms of `${prefix}'
189 at `configure' time.
187 when some directory options were not specified in terms of '${prefix}'
188 at 'configure' time.
190189
191190 Optional Features
192191 =================
193192
194193 If the package supports it, you can cause programs to be installed
195 with an extra prefix or suffix on their names by giving `configure' the
196 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
197
198 Some packages pay attention to `--enable-FEATURE' options to
199 `configure', where FEATURE indicates an optional part of the package.
200 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
201 is something like `gnu-as' or `x' (for the X Window System). The
202 `README' should mention any `--enable-' and `--with-' options that the
194 with an extra prefix or suffix on their names by giving 'configure' the
195 option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
196
197 Some packages pay attention to '--enable-FEATURE' options to
198 'configure', where FEATURE indicates an optional part of the package.
199 They may also pay attention to '--with-PACKAGE' options, where PACKAGE
200 is something like 'gnu-as' or 'x' (for the X Window System). The
201 'README' should mention any '--enable-' and '--with-' options that the
203202 package recognizes.
204203
205 For packages that use the X Window System, `configure' can usually
204 For packages that use the X Window System, 'configure' can usually
206205 find the X include and library files automatically, but if it doesn't,
207 you can use the `configure' options `--x-includes=DIR' and
208 `--x-libraries=DIR' to specify their locations.
206 you can use the 'configure' options '--x-includes=DIR' and
207 '--x-libraries=DIR' to specify their locations.
209208
210209 Some packages offer the ability to configure how verbose the
211 execution of `make' will be. For these packages, running `./configure
210 execution of 'make' will be. For these packages, running './configure
212211 --enable-silent-rules' sets the default to minimal output, which can be
213 overridden with `make V=1'; while running `./configure
212 overridden with 'make V=1'; while running './configure
214213 --disable-silent-rules' sets the default to verbose, which can be
215 overridden with `make V=0'.
214 overridden with 'make V=0'.
216215
217216 Particular systems
218217 ==================
219218
220 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
221 CC is not installed, it is recommended to use the following options in
219 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
220 is not installed, it is recommended to use the following options in
222221 order to use an ANSI C compiler:
223222
224223 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
225224
226225 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
227226
228 HP-UX `make' updates targets which have the same time stamps as
229 their prerequisites, which makes it generally unusable when shipped
230 generated files such as `configure' are involved. Use GNU `make'
231 instead.
227 HP-UX 'make' updates targets which have the same time stamps as their
228 prerequisites, which makes it generally unusable when shipped generated
229 files such as 'configure' are involved. Use GNU 'make' instead.
232230
233231 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
234 parse its `<wchar.h>' header file. The option `-nodtk' can be used as
235 a workaround. If GNU CC is not installed, it is therefore recommended
236 to try
232 parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
233 workaround. If GNU CC is not installed, it is therefore recommended to
234 try
237235
238236 ./configure CC="cc"
239237
241239
242240 ./configure CC="cc -nodtk"
243241
244 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
242 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
245243 directory contains several dysfunctional programs; working variants of
246 these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
247 in your `PATH', put it _after_ `/usr/bin'.
248
249 On Haiku, software installed for all users goes in `/boot/common',
250 not `/usr/local'. It is recommended to use the following options:
244 these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
245 in your 'PATH', put it _after_ '/usr/bin'.
246
247 On Haiku, software installed for all users goes in '/boot/common',
248 not '/usr/local'. It is recommended to use the following options:
251249
252250 ./configure --prefix=/boot/common
253251
254252 Specifying the System Type
255253 ==========================
256254
257 There may be some features `configure' cannot figure out
255 There may be some features 'configure' cannot figure out
258256 automatically, but needs to determine by the type of machine the package
259257 will run on. Usually, assuming the package is built to be run on the
260 _same_ architectures, `configure' can figure that out, but if it prints
258 _same_ architectures, 'configure' can figure that out, but if it prints
261259 a message saying it cannot guess the machine type, give it the
262 `--build=TYPE' option. TYPE can either be a short name for the system
263 type, such as `sun4', or a canonical name which has the form:
260 '--build=TYPE' option. TYPE can either be a short name for the system
261 type, such as 'sun4', or a canonical name which has the form:
264262
265263 CPU-COMPANY-SYSTEM
266264
269267 OS
270268 KERNEL-OS
271269
272 See the file `config.sub' for the possible values of each field. If
273 `config.sub' isn't included in this package, then this package doesn't
270 See the file 'config.sub' for the possible values of each field. If
271 'config.sub' isn't included in this package, then this package doesn't
274272 need to know the machine type.
275273
276274 If you are _building_ compiler tools for cross-compiling, you should
277 use the option `--target=TYPE' to select the type of system they will
275 use the option '--target=TYPE' to select the type of system they will
278276 produce code for.
279277
280278 If you want to _use_ a cross compiler, that generates code for a
281279 platform different from the build platform, you should specify the
282280 "host" platform (i.e., that on which the generated programs will
283 eventually be run) with `--host=TYPE'.
281 eventually be run) with '--host=TYPE'.
284282
285283 Sharing Defaults
286284 ================
287285
288 If you want to set default values for `configure' scripts to share,
289 you can create a site shell script called `config.site' that gives
290 default values for variables like `CC', `cache_file', and `prefix'.
291 `configure' looks for `PREFIX/share/config.site' if it exists, then
292 `PREFIX/etc/config.site' if it exists. Or, you can set the
293 `CONFIG_SITE' environment variable to the location of the site script.
294 A warning: not all `configure' scripts look for a site script.
286 If you want to set default values for 'configure' scripts to share,
287 you can create a site shell script called 'config.site' that gives
288 default values for variables like 'CC', 'cache_file', and 'prefix'.
289 'configure' looks for 'PREFIX/share/config.site' if it exists, then
290 'PREFIX/etc/config.site' if it exists. Or, you can set the
291 'CONFIG_SITE' environment variable to the location of the site script.
292 A warning: not all 'configure' scripts look for a site script.
295293
296294 Defining Variables
297295 ==================
298296
299297 Variables not defined in a site shell script can be set in the
300 environment passed to `configure'. However, some packages may run
298 environment passed to 'configure'. However, some packages may run
301299 configure again during the build, and the customized values of these
302300 variables may be lost. In order to avoid this problem, you should set
303 them in the `configure' command line, using `VAR=value'. For example:
301 them in the 'configure' command line, using 'VAR=value'. For example:
304302
305303 ./configure CC=/usr/local2/bin/gcc
306304
307 causes the specified `gcc' to be used as the C compiler (unless it is
305 causes the specified 'gcc' to be used as the C compiler (unless it is
308306 overridden in the site shell script).
309307
310 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
311 an Autoconf limitation. Until the limitation is lifted, you can use
312 this workaround:
308 Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
309 Autoconf limitation. Until the limitation is lifted, you can use this
310 workaround:
313311
314312 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
315313
316 `configure' Invocation
314 'configure' Invocation
317315 ======================
318316
319 `configure' recognizes the following options to control how it
317 'configure' recognizes the following options to control how it
320318 operates.
321319
322 `--help'
323 `-h'
324 Print a summary of all of the options to `configure', and exit.
325
326 `--help=short'
327 `--help=recursive'
320 '--help'
321 '-h'
322 Print a summary of all of the options to 'configure', and exit.
323
324 '--help=short'
325 '--help=recursive'
328326 Print a summary of the options unique to this package's
329 `configure', and exit. The `short' variant lists options used
330 only in the top level, while the `recursive' variant lists options
331 also present in any nested packages.
332
333 `--version'
334 `-V'
335 Print the version of Autoconf used to generate the `configure'
327 'configure', and exit. The 'short' variant lists options used only
328 in the top level, while the 'recursive' variant lists options also
329 present in any nested packages.
330
331 '--version'
332 '-V'
333 Print the version of Autoconf used to generate the 'configure'
336334 script, and exit.
337335
338 `--cache-file=FILE'
336 '--cache-file=FILE'
339337 Enable the cache: use and save the results of the tests in FILE,
340 traditionally `config.cache'. FILE defaults to `/dev/null' to
338 traditionally 'config.cache'. FILE defaults to '/dev/null' to
341339 disable caching.
342340
343 `--config-cache'
344 `-C'
345 Alias for `--cache-file=config.cache'.
346
347 `--quiet'
348 `--silent'
349 `-q'
341 '--config-cache'
342 '-C'
343 Alias for '--cache-file=config.cache'.
344
345 '--quiet'
346 '--silent'
347 '-q'
350348 Do not print messages saying which checks are being made. To
351 suppress all normal output, redirect it to `/dev/null' (any error
349 suppress all normal output, redirect it to '/dev/null' (any error
352350 messages will still be shown).
353351
354 `--srcdir=DIR'
352 '--srcdir=DIR'
355353 Look for the package's source code in directory DIR. Usually
356 `configure' can determine that directory automatically.
357
358 `--prefix=DIR'
359 Use DIR as the installation prefix. *note Installation Names::
360 for more details, including other options available for fine-tuning
361 the installation locations.
362
363 `--no-create'
364 `-n'
354 'configure' can determine that directory automatically.
355
356 '--prefix=DIR'
357 Use DIR as the installation prefix. *note Installation Names:: for
358 more details, including other options available for fine-tuning the
359 installation locations.
360
361 '--no-create'
362 '-n'
365363 Run the configure checks, but stop before creating any output
366364 files.
367365
368 `configure' also accepts some other, not widely useful, options. Run
369 `configure --help' for more details.
366 'configure' also accepts some other, not widely useful, options. Run
367 'configure --help' for more details.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616 # this is the main Makefile.am
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
7989 build_triplet = @build@
8090 host_triplet = @host@
8191 subdir = .
82 DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \
83 $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
84 $(top_srcdir)/configure $(am__configure_deps) \
85 $(srcdir)/config.h.in COPYING config/config.guess \
86 config/config.sub config/depcomp config/install-sh \
87 config/missing $(top_srcdir)/config/config.guess \
88 $(top_srcdir)/config/config.sub \
89 $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing
9092 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
9193 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
9294 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9395 $(ACLOCAL_M4)
96 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
97 $(am__configure_deps) $(am__DIST_COMMON)
9498 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
9599 configure.lineno config.status.lineno
96100 mkinstalldirs = $(install_sh) -d
154158 CTAGS = ctags
155159 CSCOPE = cscope
156160 DIST_SUBDIRS = $(SUBDIRS)
161 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
162 $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \
163 $(top_srcdir)/config/config.sub \
164 $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing \
165 AUTHORS COPYING ChangeLog INSTALL NEWS README config/compile \
166 config/config.guess config/config.sub config/install-sh \
167 config/missing
157168 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
158169 distdir = $(PACKAGE)-$(VERSION)
159170 top_distdir = $(distdir)
318329 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
319330 $(am__cd) $(top_srcdir) && \
320331 $(AUTOMAKE) --gnu Makefile
321 .PRECIOUS: Makefile
322332 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
323333 @case '$?' in \
324334 *config.status*) \
339349 $(am__aclocal_m4_deps):
340350
341351 config.h: stamp-h1
342 @if test ! -f $@; then rm -f stamp-h1; else :; fi
343 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
352 @test -f $@ || rm -f stamp-h1
353 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
344354
345355 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
346356 @rm -f stamp-h1
524534 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
525535 || chmod -R a+r "$(distdir)"
526536 dist-gzip: distdir
527 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
537 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
528538 $(am__post_remove_distdir)
529539
530540 dist-bzip2: distdir
540550 $(am__post_remove_distdir)
541551
542552 dist-tarZ: distdir
553 @echo WARNING: "Support for distribution archives compressed with" \
554 "legacy program 'compress' is deprecated." >&2
555 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
543556 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
544557 $(am__post_remove_distdir)
545558
546559 dist-shar: distdir
547 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
560 @echo WARNING: "Support for shar distribution archives is" \
561 "deprecated." >&2
562 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
563 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
548564 $(am__post_remove_distdir)
549565
550566 dist-zip: distdir
562578 distcheck: dist
563579 case '$(DIST_ARCHIVES)' in \
564580 *.tar.gz*) \
565 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
581 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
566582 *.tar.bz2*) \
567583 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
568584 *.tar.lz*) \
572588 *.tar.Z*) \
573589 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
574590 *.shar.gz*) \
575 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
591 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
576592 *.zip*) \
577593 unzip $(distdir).zip ;;\
578594 esac
579595 chmod -R a-w $(distdir)
580596 chmod u+w $(distdir)
581 mkdir $(distdir)/_build $(distdir)/_inst
597 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
582598 chmod a-w $(distdir)
583599 test -d $(distdir)/_build || exit 0; \
584600 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
585601 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
586602 && am__cwd=`pwd` \
587 && $(am__cd) $(distdir)/_build \
588 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
603 && $(am__cd) $(distdir)/_build/sub \
604 && ../../configure \
589605 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
590606 $(DISTCHECK_CONFIGURE_FLAGS) \
607 --srcdir=../.. --prefix="$$dc_install_base" \
591608 && $(MAKE) $(AM_MAKEFLAGS) \
592609 && $(MAKE) $(AM_MAKEFLAGS) dvi \
593610 && $(MAKE) $(AM_MAKEFLAGS) check \
762779 mostlyclean-generic pdf pdf-am ps ps-am tags tags-am uninstall \
763780 uninstall-am
764781
782 .PRECIOUS: Makefile
783
765784
766785 # Tell versions [3.59,3.63) of GNU make to not export all variables.
767786 # Otherwise a system limit (for SysV at least) may be exceeded.
0 0.21.10 (23 Nov 2018):
1 Applied gentoo automake-fix and iconv.detection patches
02 0.21.9 (2 Jan 2015):
13 Correct text conversion failure introduced in 0.21.8
24 Improved processing of tables
0 #
1 # Makefile for unrtf (MinGW version)
2 #
3
4 CC = gcc
5 LD = gcc
6
7 INSTALL = cp -f
8 INSTALL_PROGRAM = $(INSTALL)
9 INSTALL_DATA = $(INSTALL)
10
11 # must be equal to DEBUG or NDEBUG
12 DB = NDEBUG
13 OPT = -O2
14
15 LDLIBS = -liconv -lShlwapi
16
17 CFLAGS = -Wall $(OPT) -D$(DB) -I. -DHAVE_CONFIG_H
18 LDFLAGS =
19
20 SRCS = attr.c convert.c error.c hash.c my_iconv.c main.c \
21 malloc.c output.c parse.c path.c unicode.c user.c \
22 util.c word.c unrtf_w.c
23 OBJS = attr.o convert.o error.o hash.o my_iconv.o main.o \
24 malloc.o output.o parse.o path.o unicode.o user.o \
25 util.o word.o unrtf_w.o
26
27 PROGS = unrtf
28
29 VPATH = ./:../src
30
31 all: $(PROGS)
32
33 clean:
34 rm -f $(OBJS)
35 rm -f $(PROGS)
36
37 unrtf : $(OBJS)
38 @rm -f $@
39 $(LD) $(LDFLAGS) $(OBJS) $(LDLIBS) -o $@
40
41 .c.o:
42 $(CC) $(CFLAGS) -c $<
0 <?xml version="1.0" encoding="utf-8"?>
1 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <ImportGroup Label="PropertySheets" />
3 <PropertyGroup Label="UserMacros">
4 <libiconv>c:\recolldeps\iconv64</libiconv>
5 </PropertyGroup>
6 <PropertyGroup />
7 <ItemDefinitionGroup />
8 <ItemGroup>
9 <BuildMacro Include="libiconv">
10 <Value>$(libiconv)</Value>
11 <EnvironmentVariable>true</EnvironmentVariable>
12 </BuildMacro>
13 </ItemGroup>
14 </Project>
0 /* safeunistd.h: <unistd.h>, but with compat. and large file support for MSVC.
1 *
2 * Copyright (C) 2007 Olly Betts
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of the
7 * License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
17 * USA
18 */
19
20 #ifndef XAPIAN_INCLUDED_SAFEUNISTD_H
21 #define XAPIAN_INCLUDED_SAFEUNISTD_H
22
23 #ifndef _MSC_VER
24 # include <unistd.h>
25 #else
26
27 // sys/types.h has a typedef for off_t so make sure we've seen that before
28 // we hide it behind a #define.
29 # include <sys/types.h>
30
31 // MSVC doesn't even HAVE unistd.h - io.h seems the nearest equivalent.
32 // We also need to do some renaming of functions to get versions which
33 // work on large files.
34 # include <io.h>
35
36 # ifdef lseek
37 # undef lseek
38 # endif
39
40 # ifdef off_t
41 # undef off_t
42 # endif
43
44 # define lseek(FD, OFF, WHENCE) _lseeki64(FD, OFF, WHENCE)
45 # define off_t __int64
46
47 // process.h is needed for getpid().
48 # include <process.h>
49
50 #endif
51
52 #ifdef _MSC_VER
53
54 inline unsigned int
55 sleep(unsigned int seconds)
56 {
57 // Use our own little helper function to avoid pulling in <windows.h>.
58 extern void xapian_sleep_milliseconds(unsigned int millisecs);
59
60 // Sleep takes a time interval in milliseconds, whereas POSIX sleep takes
61 // a time interval in seconds, so we need to multiply 'seconds' by 1000.
62 //
63 // But make sure the multiplication won't overflow! 4294967 seconds is
64 // nearly 50 days, so just sleep for that long and return the number of
65 // seconds left to sleep for. The common case of sleep(CONSTANT) should
66 // optimise to just xapian_sleep_milliseconds(CONSTANT).
67 if (seconds > 4294967u) {
68 xapian_sleep_milliseconds(4294967000u);
69 return seconds - 4294967u;
70 }
71 xapian_sleep_milliseconds(seconds * 1000u);
72 return 0;
73 }
74
75 #endif
76
77 #endif /* XAPIAN_INCLUDED_SAFEUNISTD_H */
0 
1 Microsoft Visual Studio Solution File, Format Version 12.00
2 # Visual Studio 14
3 VisualStudioVersion = 14.0.23107.0
4 MinimumVisualStudioVersion = 10.0.40219.1
5 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "unrtf", "unrtf.vcxproj", "{4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}"
6 EndProject
7 Global
8 GlobalSection(SolutionConfigurationPlatforms) = preSolution
9 Debug|x64 = Debug|x64
10 Debug|x86 = Debug|x86
11 Release|x64 = Release|x64
12 Release|x86 = Release|x86
13 EndGlobalSection
14 GlobalSection(ProjectConfigurationPlatforms) = postSolution
15 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x64.ActiveCfg = Release|Win32
16 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x64.Build.0 = Release|Win32
17 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x86.ActiveCfg = Debug|Win32
18 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Debug|x86.Build.0 = Debug|Win32
19 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x64.ActiveCfg = Release|x64
20 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x64.Build.0 = Release|x64
21 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x86.ActiveCfg = Release|Win32
22 {4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}.Release|x86.Build.0 = Release|Win32
23 EndGlobalSection
24 GlobalSection(SolutionProperties) = preSolution
25 HideSolutionNode = FALSE
26 EndGlobalSection
27 EndGlobal
0 <?xml version="1.0" encoding="utf-8"?>
1 <Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <ItemGroup Label="ProjectConfigurations">
3 <ProjectConfiguration Include="Debug|Win32">
4 <Configuration>Debug</Configuration>
5 <Platform>Win32</Platform>
6 </ProjectConfiguration>
7 <ProjectConfiguration Include="Release|Win32">
8 <Configuration>Release</Configuration>
9 <Platform>Win32</Platform>
10 </ProjectConfiguration>
11 <ProjectConfiguration Include="Debug|x64">
12 <Configuration>Debug</Configuration>
13 <Platform>x64</Platform>
14 </ProjectConfiguration>
15 <ProjectConfiguration Include="Release|x64">
16 <Configuration>Release</Configuration>
17 <Platform>x64</Platform>
18 </ProjectConfiguration>
19 </ItemGroup>
20 <PropertyGroup Label="Globals">
21 <ProjectGuid>{4122B6B8-B7D8-46A4-9119-C7CE1CA9AB24}</ProjectGuid>
22 <Keyword>Win32Proj</Keyword>
23 <RootNamespace>unrtf</RootNamespace>
24 <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
25 </PropertyGroup>
26 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
27 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
28 <ConfigurationType>Application</ConfigurationType>
29 <UseDebugLibraries>true</UseDebugLibraries>
30 <PlatformToolset>v140</PlatformToolset>
31 <CharacterSet>MultiByte</CharacterSet>
32 </PropertyGroup>
33 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
34 <ConfigurationType>Application</ConfigurationType>
35 <UseDebugLibraries>false</UseDebugLibraries>
36 <PlatformToolset>v140</PlatformToolset>
37 <WholeProgramOptimization>true</WholeProgramOptimization>
38 <CharacterSet>MultiByte</CharacterSet>
39 </PropertyGroup>
40 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
41 <ConfigurationType>Application</ConfigurationType>
42 <UseDebugLibraries>true</UseDebugLibraries>
43 <PlatformToolset>v140</PlatformToolset>
44 <CharacterSet>MultiByte</CharacterSet>
45 </PropertyGroup>
46 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
47 <ConfigurationType>Application</ConfigurationType>
48 <UseDebugLibraries>false</UseDebugLibraries>
49 <PlatformToolset>v140</PlatformToolset>
50 <WholeProgramOptimization>true</WholeProgramOptimization>
51 <CharacterSet>MultiByte</CharacterSet>
52 </PropertyGroup>
53 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
54 <ImportGroup Label="ExtensionSettings">
55 </ImportGroup>
56 <ImportGroup Label="Shared">
57 </ImportGroup>
58 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
60 <Import Project="SolutionSettings.props" />
61 </ImportGroup>
62 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
63 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
64 <Import Project="SolutionSettings.props" />
65 </ImportGroup>
66 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
67 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68 <Import Project="SolutionSettings.props" />
69 </ImportGroup>
70 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
71 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
72 <Import Project="SolutionSettings.props" />
73 </ImportGroup>
74 <PropertyGroup Label="UserMacros" />
75 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
76 <LinkIncremental>true</LinkIncremental>
77 </PropertyGroup>
78 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
79 <LinkIncremental>true</LinkIncremental>
80 </PropertyGroup>
81 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
82 <LinkIncremental>false</LinkIncremental>
83 <OutDir>$(SolutionDir)\$(Platform)\$(Configuration)\</OutDir>
84 </PropertyGroup>
85 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
86 <LinkIncremental>false</LinkIncremental>
87 </PropertyGroup>
88 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
89 <ClCompile>
90 <PrecompiledHeader>
91 </PrecompiledHeader>
92 <WarningLevel>Level3</WarningLevel>
93 <Optimization>Disabled</Optimization>
94 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
95 <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories>
96 </ClCompile>
97 <Link>
98 <SubSystem>Console</SubSystem>
99 <GenerateDebugInformation>true</GenerateDebugInformation>
100 <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
101 <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
102 </Link>
103 </ItemDefinitionGroup>
104 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
105 <ClCompile>
106 <PrecompiledHeader>
107 </PrecompiledHeader>
108 <WarningLevel>Level3</WarningLevel>
109 <Optimization>Disabled</Optimization>
110 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111 <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories>
112 </ClCompile>
113 <Link>
114 <SubSystem>Console</SubSystem>
115 <GenerateDebugInformation>true</GenerateDebugInformation>
116 <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
117 <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
118 </Link>
119 </ItemDefinitionGroup>
120 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
121 <ClCompile>
122 <WarningLevel>Level3</WarningLevel>
123 <PrecompiledHeader>
124 </PrecompiledHeader>
125 <Optimization>MaxSpeed</Optimization>
126 <FunctionLevelLinking>true</FunctionLevelLinking>
127 <IntrinsicFunctions>true</IntrinsicFunctions>
128 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129 <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories>
130 </ClCompile>
131 <Link>
132 <SubSystem>Console</SubSystem>
133 <GenerateDebugInformation>true</GenerateDebugInformation>
134 <EnableCOMDATFolding>true</EnableCOMDATFolding>
135 <OptimizeReferences>true</OptimizeReferences>
136 <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
137 <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
138 </Link>
139 </ItemDefinitionGroup>
140 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
141 <ClCompile>
142 <WarningLevel>Level3</WarningLevel>
143 <PrecompiledHeader>
144 </PrecompiledHeader>
145 <Optimization>MaxSpeed</Optimization>
146 <FunctionLevelLinking>true</FunctionLevelLinking>
147 <IntrinsicFunctions>true</IntrinsicFunctions>
148 <PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS;HAVE_CONFIG_H;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
149 <AdditionalIncludeDirectories>$(SolutionDir);$(libiconv)\include</AdditionalIncludeDirectories>
150 </ClCompile>
151 <Link>
152 <SubSystem>Console</SubSystem>
153 <GenerateDebugInformation>true</GenerateDebugInformation>
154 <EnableCOMDATFolding>true</EnableCOMDATFolding>
155 <OptimizeReferences>true</OptimizeReferences>
156 <AdditionalLibraryDirectories>$(libiconv)\libiconv\$(Platform)\$(Configuration)</AdditionalLibraryDirectories>
157 <AdditionalDependencies>libiconv.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
158 </Link>
159 </ItemDefinitionGroup>
160 <ItemGroup>
161 <ClCompile Include="..\src\attr.c" />
162 <ClCompile Include="..\src\convert.c" />
163 <ClCompile Include="..\src\error.c" />
164 <ClCompile Include="..\src\hash.c" />
165 <ClCompile Include="..\src\main.c" />
166 <ClCompile Include="..\src\malloc.c" />
167 <ClCompile Include="..\src\my_iconv.c" />
168 <ClCompile Include="..\src\output.c" />
169 <ClCompile Include="..\src\parse.c" />
170 <ClCompile Include="..\src\path.c" />
171 <ClCompile Include="..\src\unicode.c" />
172 <ClCompile Include="..\src\user.c" />
173 <ClCompile Include="..\src\util.c" />
174 <ClCompile Include="..\src\word.c" />
175 <ClCompile Include="unrtf_w.c" />
176 </ItemGroup>
177 <ItemGroup>
178 <ClInclude Include="..\src\attr.h" />
179 <ClInclude Include="..\src\convert.h" />
180 <ClInclude Include="..\src\defs.h" />
181 <ClInclude Include="..\src\error.h" />
182 <ClInclude Include="..\src\hash.h" />
183 <ClInclude Include="..\src\main.h" />
184 <ClInclude Include="..\src\malloc.h" />
185 <ClInclude Include="..\src\my_iconv.h" />
186 <ClInclude Include="..\src\output.h" />
187 <ClInclude Include="..\src\parse.h" />
188 <ClInclude Include="..\src\path.h" />
189 <ClInclude Include="..\src\unicode.h" />
190 <ClInclude Include="..\src\user.h" />
191 <ClInclude Include="..\src\util.h" />
192 <ClInclude Include="..\src\word.h" />
193 <ClInclude Include="config.h" />
194 </ItemGroup>
195 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
196 <ImportGroup Label="ExtensionTargets">
197 </ImportGroup>
198 </Project>
0 <?xml version="1.0" encoding="utf-8"?>
1 <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <ItemGroup>
3 <Filter Include="Source Files">
4 <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
5 <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
6 </Filter>
7 <Filter Include="Header Files">
8 <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
9 <Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions>
10 </Filter>
11 <Filter Include="Resource Files">
12 <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
13 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
14 </Filter>
15 </ItemGroup>
16 <ItemGroup>
17 <ClCompile Include="..\src\attr.c">
18 <Filter>Source Files</Filter>
19 </ClCompile>
20 <ClCompile Include="..\src\convert.c">
21 <Filter>Source Files</Filter>
22 </ClCompile>
23 <ClCompile Include="..\src\error.c">
24 <Filter>Source Files</Filter>
25 </ClCompile>
26 <ClCompile Include="..\src\hash.c">
27 <Filter>Source Files</Filter>
28 </ClCompile>
29 <ClCompile Include="..\src\main.c">
30 <Filter>Source Files</Filter>
31 </ClCompile>
32 <ClCompile Include="..\src\malloc.c">
33 <Filter>Source Files</Filter>
34 </ClCompile>
35 <ClCompile Include="..\src\my_iconv.c">
36 <Filter>Source Files</Filter>
37 </ClCompile>
38 <ClCompile Include="..\src\output.c">
39 <Filter>Source Files</Filter>
40 </ClCompile>
41 <ClCompile Include="..\src\parse.c">
42 <Filter>Source Files</Filter>
43 </ClCompile>
44 <ClCompile Include="..\src\path.c">
45 <Filter>Source Files</Filter>
46 </ClCompile>
47 <ClCompile Include="..\src\unicode.c">
48 <Filter>Source Files</Filter>
49 </ClCompile>
50 <ClCompile Include="..\src\user.c">
51 <Filter>Source Files</Filter>
52 </ClCompile>
53 <ClCompile Include="..\src\util.c">
54 <Filter>Source Files</Filter>
55 </ClCompile>
56 <ClCompile Include="..\src\word.c">
57 <Filter>Source Files</Filter>
58 </ClCompile>
59 <ClCompile Include="unrtf_w.c">
60 <Filter>Source Files</Filter>
61 </ClCompile>
62 </ItemGroup>
63 <ItemGroup>
64 <ClInclude Include="..\src\attr.h">
65 <Filter>Header Files</Filter>
66 </ClInclude>
67 <ClInclude Include="..\src\convert.h">
68 <Filter>Header Files</Filter>
69 </ClInclude>
70 <ClInclude Include="..\src\error.h">
71 <Filter>Header Files</Filter>
72 </ClInclude>
73 <ClInclude Include="..\src\hash.h">
74 <Filter>Header Files</Filter>
75 </ClInclude>
76 <ClInclude Include="..\src\main.h">
77 <Filter>Header Files</Filter>
78 </ClInclude>
79 <ClInclude Include="..\src\malloc.h">
80 <Filter>Header Files</Filter>
81 </ClInclude>
82 <ClInclude Include="..\src\my_iconv.h">
83 <Filter>Header Files</Filter>
84 </ClInclude>
85 <ClInclude Include="..\src\output.h">
86 <Filter>Header Files</Filter>
87 </ClInclude>
88 <ClInclude Include="..\src\parse.h">
89 <Filter>Header Files</Filter>
90 </ClInclude>
91 <ClInclude Include="..\src\path.h">
92 <Filter>Header Files</Filter>
93 </ClInclude>
94 <ClInclude Include="..\src\unicode.h">
95 <Filter>Header Files</Filter>
96 </ClInclude>
97 <ClInclude Include="..\src\user.h">
98 <Filter>Header Files</Filter>
99 </ClInclude>
100 <ClInclude Include="..\src\util.h">
101 <Filter>Header Files</Filter>
102 </ClInclude>
103 <ClInclude Include="..\src\word.h">
104 <Filter>Header Files</Filter>
105 </ClInclude>
106 <ClInclude Include="config.h">
107 <Filter>Header Files</Filter>
108 </ClInclude>
109 <ClInclude Include="..\src\defs.h">
110 <Filter>Header Files</Filter>
111 </ClInclude>
112 </ItemGroup>
113 </Project>
0 #include "config.h"
1
2 #ifdef _WIN32
3 /*-
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * The quadratic code is derived from software contributed to Berkeley by
8 * Chris Torek.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 4. Neither the name of the University nor the names of its contributors
19 * may be used to endorse or promote products derived from this software
20 * without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 */
34
35 #include <ctype.h>
36 #include <string.h>
37 #include <stdio.h>
38
39 /*
40 * Find the first occurrence of find in s, ignore case.
41 */
42 char *strcasestr(const char *s, const char *find)
43 {
44 /* Less code size, but quadratic performance in the worst case. */
45 char c, sc;
46 size_t len;
47
48 if ((c = *find++) != 0) {
49 c = tolower((unsigned char)c);
50 len = strlen(find);
51 do {
52 do {
53 if ((sc = *s++) == 0)
54 return (NULL);
55 } while ((char)tolower((unsigned char)sc) != c);
56 } while (strncasecmp(s, find, len) != 0);
57 s--;
58 }
59 return ((char *)s);
60 }
61
62
63
64 unsigned int unrtf_ntohl(unsigned int in)
65 {
66 const unsigned char *f = (const unsigned char*)&in;
67 return(
68 ((unsigned int)(f[3])) +
69 ((unsigned int)(f[2]) << 8) +
70 ((unsigned int)(f[1]) << 16) +
71 ((unsigned int)(f[0]) << 24));
72 }
73
74 #endif
75
76 #include <Shlwapi.h>
77 #pragma comment(lib, "shlwapi.lib")
78
79 const char *path_thisexecpath()
80 {
81 #ifdef UNICODE
82 Error: Need to add UNICODE code here
83 #else
84 static TCHAR text[MAX_PATH];
85 if (text[0] == 0) {
86 DWORD length = GetModuleFileName(NULL, text, MAX_PATH);
87 #ifdef NTDDI_WIN8_future
88 PathCchRemoveFileSpec(text, MAX_PATH);
89 #else
90 PathRemoveFileSpec(text);
91 #endif
92 }
93 return (const char *)text;
94 #endif
95 }
96
97 /* Location for program data: charmaps etc */
98 const char *unrtfDataDir()
99 {
100 static char buffer[MAX_PATH];
101 if (buffer[0] == 0) {
102 const char *execdir = path_thisexecpath();
103 if (strlen(execdir) + strlen("Share") + 4 < MAX_PATH) {
104 snprintf(buffer, MAX_PATH, "%s\\Share\\", execdir);
105 }
106 }
107 return buffer;
108 }
0 # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3131 # generated from the m4 files accompanying Automake X.Y.
3232 # (This private macro should not be called outside this file.)
3333 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.13'
34 [am__api_version='1.15'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.13.4], [],
37 m4_if([$1], [1.15.1], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.13.4])dnl
53 [AM_AUTOMAKE_VERSION([1.15.1])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
102102 # configured tree to be moved without reconfiguration.
103103
104104 AC_DEFUN([AM_AUX_DIR_EXPAND],
105 [dnl Rely on autoconf to set up CDPATH properly.
106 AC_PREREQ([2.50])dnl
107 # expand $ac_aux_dir to an absolute path
108 am_aux_dir=`cd $ac_aux_dir && pwd`
105 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
106 # Expand $ac_aux_dir to an absolute path.
107 am_aux_dir=`cd "$ac_aux_dir" && pwd`
109108 ])
110109
111110 # AM_CONDITIONAL -*- Autoconf -*-
112111
113 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
114113 #
115114 # This file is free software; the Free Software Foundation
116115 # gives unlimited permission to copy and/or distribute it,
141140 Usually this means the macro was only invoked conditionally.]])
142141 fi])])
143142
144 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
145144 #
146145 # This file is free software; the Free Software Foundation
147146 # gives unlimited permission to copy and/or distribute it,
332331
333332 # Generate code to set up dependency tracking. -*- Autoconf -*-
334333
335 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
336335 #
337336 # This file is free software; the Free Software Foundation
338337 # gives unlimited permission to copy and/or distribute it,
408407
409408 # Do all the work for Automake. -*- Autoconf -*-
410409
411 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
410 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
412411 #
413412 # This file is free software; the Free Software Foundation
414413 # gives unlimited permission to copy and/or distribute it,
416415
417416 # This macro actually does too much. Some checks are only needed if
418417 # your package does certain things. But this isn't really a big deal.
418
419 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
420 m4_define([AC_PROG_CC],
421 m4_defn([AC_PROG_CC])
422 [_AM_PROG_CC_C_O
423 ])
419424
420425 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
421426 # AM_INIT_AUTOMAKE([OPTIONS])
492497 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
493498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
494499 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
495 # We need awk for the "check" target. The system "awk" is bad on
496 # some platforms.
500 # We need awk for the "check" target (and possibly the TAP driver). The
501 # system "awk" is bad on some platforms.
497502 AC_REQUIRE([AC_PROG_AWK])dnl
498503 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
499504 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
525530 AC_CONFIG_COMMANDS_PRE(dnl
526531 [m4_provide_if([_AM_COMPILER_EXEEXT],
527532 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
533
534 # POSIX will say in a future version that running "rm -f" with no argument
535 # is OK; and we want to be able to make that assumption in our Makefile
536 # recipes. So use an aggressive probe to check that the usage we want is
537 # actually supported "in the wild" to an acceptable degree.
538 # See automake bug#10828.
539 # To make any issue more visible, cause the running configure to be aborted
540 # by default if the 'rm' program in use doesn't match our expectations; the
541 # user can still override this though.
542 if rm -f && rm -fr && rm -rf; then : OK; else
543 cat >&2 <<'END'
544 Oops!
545
546 Your 'rm' program seems unable to run without file operands specified
547 on the command line, even when the '-f' option is present. This is contrary
548 to the behaviour of most rm programs out there, and not conforming with
549 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
550
551 Please tell bug-automake@gnu.org about your system, including the value
552 of your $PATH and any error possibly output before this message. This
553 can help us improve future automake versions.
554
555 END
556 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
557 echo 'Configuration will proceed anyway, since you have set the' >&2
558 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
559 echo >&2
560 else
561 cat >&2 <<'END'
562 Aborting the configuration process, to ensure you take notice of the issue.
563
564 You can download and install GNU coreutils to get an 'rm' implementation
565 that behaves properly: <http://www.gnu.org/software/coreutils/>.
566
567 If you want to complete the configuration process using your problematic
568 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
569 to "yes", and re-run configure.
570
571 END
572 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
573 fi
574 fi
575 dnl The trailing newline in this macro's definition is deliberate, for
576 dnl backward compatibility and to allow trailing 'dnl'-style comments
577 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
528578 ])
529579
530580 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
532582 dnl mangled by Autoconf and run in a shell conditional statement.
533583 m4_define([_AC_COMPILER_EXEEXT],
534584 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
535
536585
537586 # When config.status generates a header, we must update the stamp-h file.
538587 # This file resides in the same directory as the config header
555604 done
556605 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
557606
558 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
607 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
559608 #
560609 # This file is free software; the Free Software Foundation
561610 # gives unlimited permission to copy and/or distribute it,
566615 # Define $install_sh.
567616 AC_DEFUN([AM_PROG_INSTALL_SH],
568617 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
569 if test x"${install_sh}" != xset; then
618 if test x"${install_sh+set}" != xset; then
570619 case $am_aux_dir in
571620 *\ * | *\ *)
572621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
576625 fi
577626 AC_SUBST([install_sh])])
578627
579 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
628 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
580629 #
581630 # This file is free software; the Free Software Foundation
582631 # gives unlimited permission to copy and/or distribute it,
598647 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
599648 # From Jim Meyering
600649
601 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
650 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
602651 #
603652 # This file is free software; the Free Software Foundation
604653 # gives unlimited permission to copy and/or distribute it,
633682
634683 # Check to see how 'make' treats includes. -*- Autoconf -*-
635684
636 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
685 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
637686 #
638687 # This file is free software; the Free Software Foundation
639688 # gives unlimited permission to copy and/or distribute it,
683732
684733 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
685734
686 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
735 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
687736 #
688737 # This file is free software; the Free Software Foundation
689738 # gives unlimited permission to copy and/or distribute it,
722771
723772 # Helper functions for option handling. -*- Autoconf -*-
724773
725 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
774 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
726775 #
727776 # This file is free software; the Free Software Foundation
728777 # gives unlimited permission to copy and/or distribute it,
751800 AC_DEFUN([_AM_IF_OPTION],
752801 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
753802
803 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
804 #
805 # This file is free software; the Free Software Foundation
806 # gives unlimited permission to copy and/or distribute it,
807 # with or without modifications, as long as this notice is preserved.
808
809 # _AM_PROG_CC_C_O
810 # ---------------
811 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
812 # to automatically call this.
813 AC_DEFUN([_AM_PROG_CC_C_O],
814 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
815 AC_REQUIRE_AUX_FILE([compile])dnl
816 AC_LANG_PUSH([C])dnl
817 AC_CACHE_CHECK(
818 [whether $CC understands -c and -o together],
819 [am_cv_prog_cc_c_o],
820 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
821 # Make sure it works both with $CC and with simple cc.
822 # Following AC_PROG_CC_C_O, we do the test twice because some
823 # compilers refuse to overwrite an existing .o file with -o,
824 # though they will create one.
825 am_cv_prog_cc_c_o=yes
826 for am_i in 1 2; do
827 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
828 && test -f conftest2.$ac_objext; then
829 : OK
830 else
831 am_cv_prog_cc_c_o=no
832 break
833 fi
834 done
835 rm -f core conftest*
836 unset am_i])
837 if test "$am_cv_prog_cc_c_o" != yes; then
838 # Losing compiler, so override with the script.
839 # FIXME: It is wrong to rewrite CC.
840 # But if we don't then we get into trouble of one sort or another.
841 # A longer-term fix would be to have automake use am__CC in this case,
842 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
843 CC="$am_aux_dir/compile $CC"
844 fi
845 AC_LANG_POP([C])])
846
847 # For backward compatibility.
848 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
849
850 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
851 #
852 # This file is free software; the Free Software Foundation
853 # gives unlimited permission to copy and/or distribute it,
854 # with or without modifications, as long as this notice is preserved.
855
856 # AM_RUN_LOG(COMMAND)
857 # -------------------
858 # Run COMMAND, save the exit status in ac_status, and log it.
859 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
860 AC_DEFUN([AM_RUN_LOG],
861 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
862 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
863 ac_status=$?
864 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
865 (exit $ac_status); }])
866
754867 # Check to make sure that the build environment is sane. -*- Autoconf -*-
755868
756 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
869 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
757870 #
758871 # This file is free software; the Free Software Foundation
759872 # gives unlimited permission to copy and/or distribute it,
834947 rm -f conftest.file
835948 ])
836949
837 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
950 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
838951 #
839952 # This file is free software; the Free Software Foundation
840953 # gives unlimited permission to copy and/or distribute it,
8941007 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
8951008 ])
8961009
897 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1010 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
8981011 #
8991012 # This file is free software; the Free Software Foundation
9001013 # gives unlimited permission to copy and/or distribute it,
9221035 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9231036 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9241037
925 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1038 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
9261039 #
9271040 # This file is free software; the Free Software Foundation
9281041 # gives unlimited permission to copy and/or distribute it,
9411054
9421055 # Check how to create a tarball. -*- Autoconf -*-
9431056
944 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1057 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
9451058 #
9461059 # This file is free software; the Free Software Foundation
9471060 # gives unlimited permission to copy and/or distribute it,
0 outputsdir = ${libdir}/${PACKAGE}
0 outputsdir = ${pkgdatadir}
11 dist_outputs_DATA = SYMBOL.charmap
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for unrtf 0.21.9.
2 # Generated by GNU Autoconf 2.69 for unrtf 0.21.10.
33 #
44 # Report bugs to <bug-unrtf@gnu.org>.
55 #
579579 # Identity of this package.
580580 PACKAGE_NAME='unrtf'
581581 PACKAGE_TARNAME='unrtf'
582 PACKAGE_VERSION='0.21.9'
583 PACKAGE_STRING='unrtf 0.21.9'
582 PACKAGE_VERSION='0.21.10'
583 PACKAGE_STRING='unrtf 0.21.10'
584584 PACKAGE_BUGREPORT='bug-unrtf@gnu.org'
585585 PACKAGE_URL=''
586586
12771277 # Omit some internal or obsolete options to make the list less imposing.
12781278 # This message is too long to be a string in the A/UX 3.1 sh.
12791279 cat <<_ACEOF
1280 \`configure' configures unrtf 0.21.9 to adapt to many kinds of systems.
1280 \`configure' configures unrtf 0.21.10 to adapt to many kinds of systems.
12811281
12821282 Usage: $0 [OPTION]... [VAR=VALUE]...
12831283
13471347
13481348 if test -n "$ac_init_help"; then
13491349 case $ac_init_help in
1350 short | recursive ) echo "Configuration of unrtf 0.21.9:";;
1350 short | recursive ) echo "Configuration of unrtf 0.21.10:";;
13511351 esac
13521352 cat <<\_ACEOF
13531353
14411441 test -n "$ac_init_help" && exit $ac_status
14421442 if $ac_init_version; then
14431443 cat <<\_ACEOF
1444 unrtf configure 0.21.9
1444 unrtf configure 0.21.10
14451445 generated by GNU Autoconf 2.69
14461446
14471447 Copyright (C) 2012 Free Software Foundation, Inc.
18101810 This file contains any messages produced by compilers while
18111811 running configure, to aid debugging if configure makes a mistake.
18121812
1813 It was created by unrtf $as_me 0.21.9, which was
1813 It was created by unrtf $as_me 0.21.10, which was
18141814 generated by GNU Autoconf 2.69. Invocation command line was
18151815
18161816 $ $0 $@
21932193
21942194 # Initialize automake
21952195
2196 am__api_version='1.13'
2196 am__api_version='1.15'
21972197
21982198 # Find a good install program. We prefer a C program (faster),
21992199 # so one script is as good as another. But avoid the broken or
23652365 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
23662366 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
23672367
2368 # expand $ac_aux_dir to an absolute path
2369 am_aux_dir=`cd $ac_aux_dir && pwd`
2368 # Expand $ac_aux_dir to an absolute path.
2369 am_aux_dir=`cd "$ac_aux_dir" && pwd`
23702370
23712371 if test x"${MISSING+set}" != xset; then
23722372 case $am_aux_dir in
23852385 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
23862386 fi
23872387
2388 if test x"${install_sh}" != xset; then
2388 if test x"${install_sh+set}" != xset; then
23892389 case $am_aux_dir in
23902390 *\ * | *\ *)
23912391 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
26792679
26802680 # Define the identity of the package.
26812681 PACKAGE='unrtf'
2682 VERSION='0.21.9'
2682 VERSION='0.21.10'
26832683
26842684
26852685 cat >>confdefs.h <<_ACEOF
27132713 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
27142714 mkdir_p='$(MKDIR_P)'
27152715
2716 # We need awk for the "check" target. The system "awk" is bad on
2717 # some platforms.
2716 # We need awk for the "check" target (and possibly the TAP driver). The
2717 # system "awk" is bad on some platforms.
27182718 # Always define AMTAR for backward compatibility. Yes, it's still used
27192719 # in the wild :-( We should find a proper way to deprecate it ...
27202720 AMTAR='$${TAR-tar}'
27292729
27302730
27312731
2732
2733 # POSIX will say in a future version that running "rm -f" with no argument
2734 # is OK; and we want to be able to make that assumption in our Makefile
2735 # recipes. So use an aggressive probe to check that the usage we want is
2736 # actually supported "in the wild" to an acceptable degree.
2737 # See automake bug#10828.
2738 # To make any issue more visible, cause the running configure to be aborted
2739 # by default if the 'rm' program in use doesn't match our expectations; the
2740 # user can still override this though.
2741 if rm -f && rm -fr && rm -rf; then : OK; else
2742 cat >&2 <<'END'
2743 Oops!
2744
2745 Your 'rm' program seems unable to run without file operands specified
2746 on the command line, even when the '-f' option is present. This is contrary
2747 to the behaviour of most rm programs out there, and not conforming with
2748 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2749
2750 Please tell bug-automake@gnu.org about your system, including the value
2751 of your $PATH and any error possibly output before this message. This
2752 can help us improve future automake versions.
2753
2754 END
2755 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2756 echo 'Configuration will proceed anyway, since you have set the' >&2
2757 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2758 echo >&2
2759 else
2760 cat >&2 <<'END'
2761 Aborting the configuration process, to ensure you take notice of the issue.
2762
2763 You can download and install GNU coreutils to get an 'rm' implementation
2764 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2765
2766 If you want to complete the configuration process using your problematic
2767 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2768 to "yes", and re-run configure.
2769
2770 END
2771 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2772 fi
2773 fi
27322774
27332775
27342776 # AM_MAINTAINER_MODE is a controversial macro.
35553597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35563598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35573599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600
3601 ac_ext=c
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3607 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3608 if ${am_cv_prog_cc_c_o+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 # Make sure it works both with $CC and with simple cc.
3623 # Following AC_PROG_CC_C_O, we do the test twice because some
3624 # compilers refuse to overwrite an existing .o file with -o,
3625 # though they will create one.
3626 am_cv_prog_cc_c_o=yes
3627 for am_i in 1 2; do
3628 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3629 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3630 ac_status=$?
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); } \
3633 && test -f conftest2.$ac_objext; then
3634 : OK
3635 else
3636 am_cv_prog_cc_c_o=no
3637 break
3638 fi
3639 done
3640 rm -f core conftest*
3641 unset am_i
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3644 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3645 if test "$am_cv_prog_cc_c_o" != yes; then
3646 # Losing compiler, so override with the script.
3647 # FIXME: It is wrong to rewrite CC.
3648 # But if we don't then we get into trouble of one sort or another.
3649 # A longer-term fix would be to have automake use am__CC in this case,
3650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3651 CC="$am_aux_dir/compile $CC"
3652 fi
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658
35583659 DEPDIR="${am__leading_dot}deps"
35593660
35603661 ac_config_commands="$ac_config_commands depfiles"
43264427 ;;
43274428 *-*-darwin*) LIBS="-liconv"
43284429 ;;
4430 *-*-solaris*) LIBS="-liconv"
4431 ;;
43294432 esac
43304433
43314434 ac_config_files="$ac_config_files Makefile doc/Makefile outputs/Makefile patches/Makefile src/Makefile tests/Makefile"
48644967 # report actual input values of CONFIG_FILES etc. instead of their
48654968 # values after options handling.
48664969 ac_log="
4867 This file was extended by unrtf $as_me 0.21.9, which was
4970 This file was extended by unrtf $as_me 0.21.10, which was
48684971 generated by GNU Autoconf 2.69. Invocation command line was
48694972
48704973 CONFIG_FILES = $CONFIG_FILES
49305033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
49315034 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
49325035 ac_cs_version="\\
4933 unrtf config.status 0.21.9
5036 unrtf config.status 0.21.10
49345037 configured by $0, generated by GNU Autoconf 2.69,
49355038 with options \\"\$ac_cs_config\\"
49365039
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.59)
4 AC_INIT([unrtf], [0.21.9], [bug-unrtf@gnu.org])
4 AC_INIT([unrtf], [0.21.10], [bug-unrtf@gnu.org])
55 AC_CONFIG_SRCDIR([src/attr.c])
66 AC_CONFIG_AUX_DIR([config])
77 AC_CONFIG_HEADER([config.h])
4545 *-*-cygwin*) AC_SUBST(LIBS, ["-liconv"]);;
4646 *aix*) AC_SUBST(LIBS, ["-liconv"]);;
4747 *-*-darwin*) AC_SUBST(LIBS, ["-liconv"]);;
48 *-*-solaris*) AC_SUBST(LIBS, ["-liconv"]);;
4849 esac
4950
5051 AC_CONFIG_FILES([Makefile
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1313
1414 @SET_MAKE@
1515 VPATH = @srcdir@
16 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
16 am__is_gnu_make = { \
17 if test -z '$(MAKELEVEL)'; then \
18 false; \
19 elif test -n '$(MAKE_HOST)'; then \
20 true; \
21 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
22 true; \
23 else \
24 false; \
25 fi; \
26 }
1727 am__make_running_with_option = \
1828 case $${target_option-} in \
1929 ?) ;; \
7787 build_triplet = @build@
7888 host_triplet = @host@
7989 subdir = doc
80 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
81 $(dist_man1_MANS)
8290 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8391 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8492 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8593 $(ACLOCAL_M4)
94 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8695 mkinstalldirs = $(install_sh) -d
8796 CONFIG_HEADER = $(top_builddir)/config.h
8897 CONFIG_CLEAN_FILES =
138147 NROFF = nroff
139148 MANS = $(dist_man1_MANS)
140149 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
150 am__DIST_COMMON = $(dist_man1_MANS) $(srcdir)/Makefile.in
141151 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
142152 ACLOCAL = @ACLOCAL@
143153 AMTAR = @AMTAR@
252262 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
253263 $(am__cd) $(top_srcdir) && \
254264 $(AUTOMAKE) --gnu doc/Makefile
255 .PRECIOUS: Makefile
256265 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257266 @case '$?' in \
258267 *config.status*) \
467476 mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \
468477 uninstall-am uninstall-man uninstall-man1
469478
479 .PRECIOUS: Makefile
480
470481
471482 unrtf.1: unrtf.1.in Makefile
472483 sed -e 's!@DATADIR@!${datarootdir}/unrtf!g' < ${srcdir}/unrtf.1.in > unrtf.1
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7888 build_triplet = @build@
7989 host_triplet = @host@
8090 subdir = outputs
81 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
82 $(dist_outputs_DATA)
8391 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8492 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8593 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8694 $(ACLOCAL_M4)
95 DIST_COMMON = $(srcdir)/Makefile.am $(dist_outputs_DATA) \
96 $(am__DIST_COMMON)
8797 mkinstalldirs = $(install_sh) -d
8898 CONFIG_HEADER = $(top_builddir)/config.h
8999 CONFIG_CLEAN_FILES =
137147 am__installdirs = "$(DESTDIR)$(outputsdir)"
138148 DATA = $(dist_outputs_DATA)
139149 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
150 am__DIST_COMMON = $(srcdir)/Makefile.in
140151 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
141152 ACLOCAL = @ACLOCAL@
142153 AMTAR = @AMTAR@
259270 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu outputs/Makefile'; \
260271 $(am__cd) $(top_srcdir) && \
261272 $(AUTOMAKE) --gnu outputs/Makefile
262 .PRECIOUS: Makefile
263273 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
264274 @case '$?' in \
265275 *config.status*) \
452462 mostlyclean-generic pdf pdf-am ps ps-am tags-am uninstall \
453463 uninstall-am uninstall-dist_outputsDATA
454464
465 .PRECIOUS: Makefile
466
455467
456468 # Tell versions [3.59,3.63) of GNU make to not export all variables.
457469 # Otherwise a system limit (for SysV at least) may be exceeded.
177177 <s>
178178 dbl_strikethru_end
179179 </s>
180 all_caps_begin
181 <span style="text-transform: uppercase">
182 all_caps_end
183 </span>
184 small_caps_begin
185 <span style="font-variant: small-caps">
186 small_caps_end
187 </span>
180188 emboss_begin
181189 <span style="background:gray"><font color="black">
182190 emboss_end
758766 &hearts;
759767 9839
760768 &diams;
769 # non unicode characters in the symbol font
770 # see http://www.fileformat.info/info/unicode/font/symbol/nonunicode.htm
771 # 61472 space?
772 61473
773 !
774 61474
775 &forall;
776 61475
777 \#
778 61476
779 &exist;
780 61475
781 %
782 61478
783 &
784 61479
785 &ni;
786 61480
787 (
788 61481
789 )
790 61482
791 *
792 61483
793 +
794 61484
795 ,
796 61485
797 &mdash;
798 61486
799 .
800 61487
801 /
802 61488
803 0
804 61489
805 1
806 61490
807 2
808 61491
809 3
810 61492
811 4
812 61493
813 5
814 61494
815 6
816 61495
817 7
818 61496
819 8
820 61497
821 9
822 61498
823 :
824 61499
825 ;
826 61500
827 &lt;
828 61501
829 =
830 61502
831 &gt;
832 61503
833 ?
834 61504
835 &cong;
836 61505
837 &Alpha;
838 61506
839 &Beta;
840 61507
841 &Chi;
842 61508
843 &Delta;
844 61509
845 &Epsilon;
846 61510
847 &Phi;
848 61511
849 &Gamma;
850 61512
851 &Eta;
852 61513
853 &Iota;
854 61514
855 &phiv;
856 61515
857 &Kappa;
858 61516
859 &Lambda;
860 61517
861 &Mu;
862 61518
863 &Nu;
864 61519
865 &Omicron;
866 61520
867 &Pi;
868 61521
869 &Theta;
870 61522
871 &Rho;
872 61523
873 &Sigma;
874 61524
875 &Tau;
876 61525
877 &Upsilon;
878 61526
879 &sigmaf;
880 61527
881 &Omega;
882 61528
883 &Xi;
884 61529
885 &Psi;
886 61530
887 &Zeta;
888 61531
889 [
890 61532
891 &there4;
892 61533
893 ]
894 61534
895 &perp;
896 61535
897 _
898 61536
899 &oline;
900 61537
901 &alpha;
902 61538
903 &beta;
904 61539
905 &chi;
906 61540
907 &delta;
908 61541
909 &epsilon;
910 61542
911 &phi;
912 61543
913 &gamma;
914 61544
915 &eta;
916 61545
917 &tau;
918 61546
919 &phiv;
920 61547
921 &kappa;
922 61548
923 &lambda;
924 61549
925 &mu;
926 61550
927 &nu;
928 61551
929 &omicron;
930 61552
931 &pi;
932 61553
933 &theta;
934 61554
935 &rho;
936 61555
937 &sigma;
938 61556
939 &tau;
940 61557
941 &upsilon;
942 61558
943 &piv;
944 61559
945 &omega;
946 61560
947 &xi;
948 61561
949 &psi;
950 61562
951 &zeta;
952 61563
953 {
954 61564
955 |
956 61565
957 }
958 61566
959 &sim;
960 61600
961 &euro;
962 61601
963 &upsih;
964 61602
965 &prime;
966 61603
967 &le;
968 61604
969 &frasl;
970 61605
971 &infin;
972 61606
973 &fnof;
974 61607
975 &clubs;
976 61608
977 &diams;
978 61609
979 &hearts;
980 61610
981 &spades;
982 61611
983 &harr;
984 61612
985 &larr;
986 61613
987 &uarr;
988 61614
989 &rarr;
990 61615
991 &darr;
992 61616
993 &deg;
994 61617
995 &plusmn;
996 61618
997 &Prime;
998 61619
999 &ge;
1000 61620
1001 &times;
1002 61621
1003 &prop;
1004 61622
1005 &part;
1006 61623
1007 &bull;
1008 61624
1009 &divide;
1010 61625
1011 &ne;
1012 61626
1013 &equiv;
1014 61627
1015 &asymp;
1016 61628
1017 &hellip;
1018 # vertical bar
1019 61629
1020 |
1021 61630
1022 &mdash;
1023 61631
1024 &crarr;
1025 61632
1026 &alefsym;
1027 61633
1028 &image;
1029 61634
1030 &real;
1031 61635
1032 &weierp;
1033 61636
1034 &otimes;
1035 61637
1036 &oplus;
1037 61638
1038 &empty;
1039 61639
1040 &cap;
1041 61640
1042 &cup;
1043 61641
1044 &sup;
1045 61642
1046 &supe;
1047 61643
1048 &nsub;
1049 61644
1050 &sub;
1051 61645
1052 &sube;
1053 61646
1054 &isin;
1055 61647
1056 &notin;
1057 61648
1058 &ang;
1059 61649
1060 &nabla;
1061 61650
1062 &reg;
1063 61651
1064 &copy;
1065 61652
1066 &trade;
1067 61653
1068 &prod;
1069 61654
1070 &radic;
1071 61655
1072 &middot;
1073 61656
1074 &not;
1075 61657
1076 &and;
1077 61658
1078 &or;
1079 61659
1080 &hArr;
1081 61660
1082 &lArr;
1083 61661
1084 &uArr;
1085 61662
1086 &rArr;
1087 61663
1088 &dArr;
1089 61664
1090 &loz;
1091 61665
1092 &lang;
1093 61666
1094 &reg;
1095 61667
1096 &copy;
1097 61668
1098 &trade;
1099 61669
1100 &sum;
1101 #61670
1102 # large right parenthesis ceiling
1103 #61671
1104 # large parenthesis middle
1105 #61672
1106 # large left parenthesis floor
1107 61673
1108 # large left square bracket ceiling
1109 &lceil;
1110 #61674
1111 # large left square bracket middle
1112 61675
1113 # large left square bracket floor
1114 &lfloor;
1115 #61676
1116 # large left bracket ceiling
1117 # 61677
1118 # large left bracket middle
1119 #61678
1120 # large left bracket floor
1121 #61679
1122 # large vertical bar
1123 #61680
1124 # appears blank
1125 61681
1126 &rang;
1127 61682
1128 # integral
1129 &int;
1130 #61683
1131 # large integral ceiling
1132 #61684
1133 # large integral middle
1134 #61685
1135 # large integral floor
1136 #61686
1137 # large right parenthesis ceiling
1138 #61687
1139 # large right parenthesis middle
1140 #61688
1141 # large right parenthesis floor
1142 61689
1143 # large right square bracket ceiling
1144 &rceil;
1145 #61690
1146 # large right square bracket middle
1147 61691
1148 # large right square bracket floor
1149 &rfloor;
1150 #61692
1151 # large right bracket middle
1152 #61694
1153 # large right bracket floot
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1616 # this simple Makefile.am just adds the patches to the distributed
1717 # tarball in the release.
1818 VPATH = @srcdir@
19 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
19 am__is_gnu_make = { \
20 if test -z '$(MAKELEVEL)'; then \
21 false; \
22 elif test -n '$(MAKE_HOST)'; then \
23 true; \
24 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
25 true; \
26 else \
27 false; \
28 fi; \
29 }
2030 am__make_running_with_option = \
2131 case $${target_option-} in \
2232 ?) ;; \
8090 build_triplet = @build@
8191 host_triplet = @host@
8292 subdir = patches
83 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
8493 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8594 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8695 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
8796 $(ACLOCAL_M4)
97 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
8898 mkinstalldirs = $(install_sh) -d
8999 CONFIG_HEADER = $(top_builddir)/config.h
90100 CONFIG_CLEAN_FILES =
109119 *) (install-info --version) >/dev/null 2>&1;; \
110120 esac
111121 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
122 am__DIST_COMMON = $(srcdir)/Makefile.in
112123 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
113124 ACLOCAL = @ACLOCAL@
114125 AMTAR = @AMTAR@
222233 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu patches/Makefile'; \
223234 $(am__cd) $(top_srcdir) && \
224235 $(AUTOMAKE) --gnu patches/Makefile
225 .PRECIOUS: Makefile
226236 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
227237 @case '$?' in \
228238 *config.status*) \
390400 maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
391401 pdf-am ps ps-am tags-am uninstall uninstall-am
392402
403 .PRECIOUS: Makefile
404
393405
394406 # Tell versions [3.59,3.63) of GNU make to not export all variables.
395407 # Otherwise a system limit (for SysV at least) may be exceeded.
0 # Makefile.in generated by automake 1.13.4 from Makefile.am.
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1717 # It all works automagically.
1818
1919 VPATH = @srcdir@
20 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
20 am__is_gnu_make = { \
21 if test -z '$(MAKELEVEL)'; then \
22 false; \
23 elif test -n '$(MAKE_HOST)'; then \
24 true; \
25 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
26 true; \
27 else \
28 false; \
29 fi; \
30 }
2131 am__make_running_with_option = \
2232 case $${target_option-} in \
2333 ?) ;; \
8292 host_triplet = @host@
8393 bin_PROGRAMS = unrtf$(EXEEXT)
8494 subdir = src
85 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
86 $(top_srcdir)/config/depcomp
8795 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8896 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
8997 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9098 $(ACLOCAL_M4)
99 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
91100 mkinstalldirs = $(install_sh) -d
92101 CONFIG_HEADER = $(top_builddir)/config.h
93102 CONFIG_CLEAN_FILES =
155164 done | $(am__uniquify_input)`
156165 ETAGS = etags
157166 CTAGS = ctags
167 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp
158168 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
159169 ACLOCAL = @ACLOCAL@
160170 AMTAR = @AMTAR@
285295 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
286296 $(am__cd) $(top_srcdir) && \
287297 $(AUTOMAKE) --gnu src/Makefile
288 .PRECIOUS: Makefile
289298 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
290299 @case '$?' in \
291300 *config.status*) \
376385 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
377386 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
378387 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
379 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $<
388 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
380389
381390 .c.obj:
382391 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
383392 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
384393 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
385394 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
386 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'`
395 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
387396
388397 ID: $(am__tagged_files)
389398 $(am__define_uniq_tagged_files); mkid -fID $$unique
589598 ps ps-am tags tags-am uninstall uninstall-am \
590599 uninstall-binPROGRAMS
591600
601 .PRECIOUS: Makefile
602
592603
593604 # Tell versions [3.59,3.63) of GNU make to not export all variables.
594605 # Otherwise a system limit (for SysV at least) may be exceeded.
7474 extern int simulate_smallcaps;
7575
7676
77 #define MAX_ATTRS (10000)
77 #define MAX_ATTRS 100
7878
7979
8080 /* For each RTF text block (the text within braces) we must keep
8484 * from parent blocks, all new AttrStacks do the same from
8585 * their parent AttrStack.
8686 */
87 typedef struct _stack {
87 typedef struct _stack
88 {
8889 unsigned char attr_stack[MAX_ATTRS];
89 char *attr_stack_params[MAX_ATTRS];
90 char *attr_stack_params[MAX_ATTRS];
9091 int tos;
91 struct _stack *next;
92 struct _stack *prev;
9293 } AttrStack;
9394
9495 /*@null@*/ static AttrStack *stack_of_stacks = NULL;
9596 /*@null@*/ static AttrStack *stack_of_stacks_top = NULL;
9697
97
98 static void attr_express_begin(int attr, char *param);
99 static void attr_express_end(int attr, char *param);
100
101
102 /* Iterate from top of given stack looking for findattr */
103 static int attr_find(AttrStack *stack, int findattr)
104 {
105 int i;
106 for (i = stack->tos; i >= 0; i--)
107 if (stack->attr_stack[i] == findattr)
108 {
109 return i;
110 }
111 return -1;
112 }
113
114 /* Iterate all stacks looking for most recent value for attr */
115 static int attrstack_find_attr(int findattr, char **paramp)
116 {
117 AttrStack *stack = stack_of_stacks_top;
118
119 while (stack)
120 {
121 int index = attr_find(stack, findattr);
122 if (index >= 0)
123 {
124 *paramp = stack->attr_stack_params[index];
125 return TRUE;
126 }
127 stack = stack->prev;
128 }
129 return FALSE;
130 }
131
132 /* Remove attribute at the given index, unexpressing and reexpressing
133 the ones above in appropriate order. */
134 static void attr_pull_out(AttrStack *stack, int index)
135 {
136 int j;
137 /* Unexpress all newer attributes, and the one we'll remove */
138 for (j = stack->tos; j >= index; j--)
139 {
140 attr_express_end(stack->attr_stack[j], stack->attr_stack_params[j]);
141 }
142
143 /* Delete target attribute and shift the stack down */
144 if (stack->attr_stack_params[index])
145 my_free(stack->attr_stack_params[index]);
146 for (j = index; j < stack->tos; j++)
147 {
148 stack->attr_stack[j] = stack->attr_stack[j + 1];
149 stack->attr_stack_params[j] = stack->attr_stack_params[j + 1];
150 }
151 stack->tos--;
152
153 /* Re-express unexpressed attributes */
154 for (j = index; j <= stack->tos; j++)
155 {
156 attr_express_begin(stack->attr_stack[j], stack->attr_stack_params[j]);
157 }
158 return;
159 }
160
161 /* Unexpress and remove top attr. Internal version, no checking of args */
162 static void attr_pop_internal(AttrStack *stack, int attr)
163 {
164 if (stack->tos >= 0)
165 {
166 char *param = stack->attr_stack_params[stack->tos];
167
168 attr_express_end(attr, param);
169
170 if (param)
171 {
172 my_free(param);
173 }
174
175 stack->tos--;
176 }
177 }
98178
99179
100180 /*========================================================================
104184 * Returns: None.
105185 *=======================================================================*/
106186
107 void
108 attr_express_begin (int attr, char* param) {
109 switch(attr)
110 {
111 case ATTR_BOLD:
112 if (safe_printf(0, op->bold_begin)) fprintf(stderr, TOO_MANY_ARGS, "bold_begin");;
113 break;
114 case ATTR_ITALIC:
115 if (safe_printf(0, op->italic_begin)) fprintf(stderr, TOO_MANY_ARGS, "italic_begin");;
187 static void attr_express_begin(int attr, char *param)
188 {
189 switch (attr)
190 {
191 case ATTR_BOLD:
192 if (safe_printf(0, op->bold_begin))
193 {
194 fprintf(stderr, TOO_MANY_ARGS, "bold_begin");
195 };
196 break;
197 case ATTR_ITALIC:
198 if (safe_printf(0, op->italic_begin))
199 {
200 fprintf(stderr, TOO_MANY_ARGS, "italic_begin");
201 };
116202 break;
117203
118204 /* Various underlines, they all resolve to HTML's <u> */
119205 case ATTR_THICK_UL:
120206 case ATTR_WAVE_UL:
121207 case ATTR_DASH_UL:
122 case ATTR_DOT_UL:
208 case ATTR_DOT_UL:
123209 case ATTR_DOT_DASH_UL:
124210 case ATTR_2DOT_DASH_UL:
125 case ATTR_WORD_UL:
126 case ATTR_UNDERLINE:
127 if (safe_printf(0, op->underline_begin)) fprintf(stderr, TOO_MANY_ARGS, "underline_begin");;
128 break;
129
130 case ATTR_DOUBLE_UL:
131 if (safe_printf(0, op->dbl_underline_begin)) fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_begin");;
132 break;
133
134 case ATTR_FONTSIZE:
135 op_begin_std_fontsize (op, atoi (param));
136 break;
137
138 case ATTR_FONTFACE:
139 if (safe_printf(1, op->font_begin,param)) fprintf(stderr, TOO_MANY_ARGS, "font_begin");;
140 break;
141
142 case ATTR_FOREGROUND:
143 if (safe_printf(1, op->foreground_begin, param)) fprintf(stderr, TOO_MANY_ARGS, "foreground_begin");;
144 break;
145
146 case ATTR_BACKGROUND:
211 case ATTR_WORD_UL:
212 case ATTR_UNDERLINE:
213 if (safe_printf(0, op->underline_begin))
214 {
215 fprintf(stderr, TOO_MANY_ARGS, "underline_begin");
216 };
217 break;
218
219 case ATTR_DOUBLE_UL:
220 if (safe_printf(0, op->dbl_underline_begin))
221 {
222 fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_begin");
223 };
224 break;
225
226 case ATTR_FONTSIZE:
227 op_begin_std_fontsize(op, atoi(param));
228 break;
229
230 case ATTR_FONTFACE:
231 if (safe_printf(1, op->font_begin, param))
232 {
233 fprintf(stderr, TOO_MANY_ARGS, "font_begin");
234 };
235 break;
236
237 case ATTR_FOREGROUND:
238 if (safe_printf(1, op->foreground_begin, param))
239 {
240 fprintf(stderr, TOO_MANY_ARGS, "foreground_begin");
241 };
242 break;
243
244 case ATTR_BACKGROUND:
147245 if (!simple_mode)
148 if (safe_printf(1, op->background_begin,param)) fprintf(stderr, TOO_MANY_ARGS, "background_begin");;
149 break;
150
151 case ATTR_SUPER:
152 if (safe_printf(0, op->superscript_begin)) fprintf(stderr, TOO_MANY_ARGS, "superscript_begin");;
153 break;
154 case ATTR_SUB:
155 if (safe_printf(0, op->subscript_begin)) fprintf(stderr, TOO_MANY_ARGS, "subscript_begin");;
156 break;
157
158 case ATTR_STRIKE:
159 if (safe_printf(0, op->strikethru_begin)) fprintf(stderr, TOO_MANY_ARGS, "strikethru_begin");;
160 break;
161
162 case ATTR_DBL_STRIKE:
163 if (safe_printf(0, op->dbl_strikethru_begin)) fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_begin");;
164 break;
165
166 case ATTR_EXPAND:
167 if (safe_printf(1, op->expand_begin, param)) fprintf(stderr, TOO_MANY_ARGS, "expand_begin");;
168 break;
169
170 case ATTR_OUTLINE:
171 if (safe_printf(0, op->outline_begin)) fprintf(stderr, TOO_MANY_ARGS, "outline_begin");;
172 break;
173 case ATTR_SHADOW:
174 if (safe_printf(0, op->shadow_begin)) fprintf(stderr, TOO_MANY_ARGS, "shadow_begin");;
175 break;
176 case ATTR_EMBOSS:
177 if (safe_printf(0, op->emboss_begin)) fprintf(stderr, TOO_MANY_ARGS, "emboss_begin");;
178 break;
179 case ATTR_ENGRAVE:
180 if (safe_printf(0, op->engrave_begin)) fprintf(stderr, TOO_MANY_ARGS, "engrave_begin");;
246 if (safe_printf(1, op->background_begin, param))
247 {
248 fprintf(stderr, TOO_MANY_ARGS, "background_begin");
249 };
250 break;
251
252 case ATTR_SUPER:
253 if (safe_printf(0, op->superscript_begin))
254 {
255 fprintf(stderr, TOO_MANY_ARGS, "superscript_begin");
256 };
257 break;
258 case ATTR_SUB:
259 if (safe_printf(0, op->subscript_begin))
260 {
261 fprintf(stderr, TOO_MANY_ARGS, "subscript_begin");
262 };
263 break;
264
265 case ATTR_STRIKE:
266 if (safe_printf(0, op->strikethru_begin))
267 {
268 fprintf(stderr, TOO_MANY_ARGS, "strikethru_begin");
269 };
270 break;
271
272 case ATTR_DBL_STRIKE:
273 if (safe_printf(0, op->dbl_strikethru_begin))
274 {
275 fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_begin");
276 };
277 break;
278
279 case ATTR_EXPAND:
280 if (safe_printf(1, op->expand_begin, param))
281 {
282 fprintf(stderr, TOO_MANY_ARGS, "expand_begin");
283 };
284 break;
285
286 case ATTR_OUTLINE:
287 if (safe_printf(0, op->outline_begin))
288 {
289 fprintf(stderr, TOO_MANY_ARGS, "outline_begin");
290 };
291 break;
292 case ATTR_SHADOW:
293 if (safe_printf(0, op->shadow_begin))
294 {
295 fprintf(stderr, TOO_MANY_ARGS, "shadow_begin");
296 };
297 break;
298 case ATTR_EMBOSS:
299 if (safe_printf(0, op->emboss_begin))
300 {
301 fprintf(stderr, TOO_MANY_ARGS, "emboss_begin");
302 };
303 break;
304 case ATTR_ENGRAVE:
305 if (safe_printf(0, op->engrave_begin))
306 {
307 fprintf(stderr, TOO_MANY_ARGS, "engrave_begin");
308 };
181309 break;
182310
183311 case ATTR_CAPS:
184312 if (op->simulate_all_caps)
313 {
185314 simulate_allcaps = TRUE;
186 break;
187
188 case ATTR_SMALLCAPS:
315 }
316 else
317 {
318 if (op->all_caps_begin)
319 if (safe_printf(0, op->all_caps_begin))
320 {
321 fprintf(stderr, TOO_MANY_ARGS, "all_caps_begin");
322 }
323 }
324 break;
325
326 case ATTR_SMALLCAPS:
189327 if (op->simulate_small_caps)
328 {
190329 simulate_smallcaps = TRUE;
191 else {
330 }
331 else
332 {
192333 if (op->small_caps_begin)
193 if (safe_printf(0, op->small_caps_begin)) fprintf(stderr, TOO_MANY_ARGS, "small_caps_begin");;
334 if (safe_printf(0, op->small_caps_begin))
335 {
336 fprintf(stderr, TOO_MANY_ARGS, "small_caps_begin");
337 };
194338 }
195339 break;
196340 }
204348 * Returns: None.
205349 *=======================================================================*/
206350
207 void
208 attr_express_end (int attr, char *param)
209 {
210 switch(attr)
211 {
212 case ATTR_BOLD:
213 if (safe_printf(0, op->bold_end)) fprintf(stderr, TOO_MANY_ARGS, "bold_end");;
214 break;
215 case ATTR_ITALIC:
216 if (safe_printf(0, op->italic_end)) fprintf(stderr, TOO_MANY_ARGS, "italic_end");;
351 static void attr_express_end(int attr, char *param)
352 {
353 switch (attr)
354 {
355 case ATTR_BOLD:
356 if (safe_printf(0, op->bold_end))
357 {
358 fprintf(stderr, TOO_MANY_ARGS, "bold_end");
359 };
360 break;
361 case ATTR_ITALIC:
362 if (safe_printf(0, op->italic_end))
363 {
364 fprintf(stderr, TOO_MANY_ARGS, "italic_end");
365 };
217366 break;
218367
219368 /* Various underlines, they all resolve to HTML's </u> */
220369 case ATTR_THICK_UL:
221370 case ATTR_WAVE_UL:
222371 case ATTR_DASH_UL:
223 case ATTR_DOT_UL:
372 case ATTR_DOT_UL:
224373 case ATTR_DOT_DASH_UL:
225 case ATTR_2DOT_DASH_UL:
226 case ATTR_WORD_UL:
227 case ATTR_UNDERLINE:
228 if (safe_printf(0, op->underline_end)) fprintf(stderr, TOO_MANY_ARGS, "underline_end");;
229 break;
230
231 case ATTR_DOUBLE_UL:
232 if (safe_printf(0, op->dbl_underline_end)) fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_end");;
233 break;
234
235 case ATTR_FONTSIZE:
236 op_end_std_fontsize (op, atoi (param));
237 break;
238
239 case ATTR_FONTFACE:
240 if (safe_printf(0, op->font_end)) fprintf(stderr, TOO_MANY_ARGS, "font_end");;
241 break;
242
243 case ATTR_FOREGROUND:
244 if (safe_printf(0, op->foreground_end)) fprintf(stderr, TOO_MANY_ARGS, "foreground_end");;
245 break;
246 case ATTR_BACKGROUND:
374 case ATTR_2DOT_DASH_UL:
375 case ATTR_WORD_UL:
376 case ATTR_UNDERLINE:
377 if (safe_printf(0, op->underline_end))
378 {
379 fprintf(stderr, TOO_MANY_ARGS, "underline_end");
380 };
381 break;
382
383 case ATTR_DOUBLE_UL:
384 if (safe_printf(0, op->dbl_underline_end))
385 {
386 fprintf(stderr, TOO_MANY_ARGS, "dbl_underline_end");
387 };
388 break;
389
390 case ATTR_FONTSIZE:
391 op_end_std_fontsize(op, atoi(param));
392 break;
393
394 case ATTR_FONTFACE:
395 if (safe_printf(0, op->font_end))
396 {
397 fprintf(stderr, TOO_MANY_ARGS, "font_end");
398 };
399 break;
400
401 case ATTR_FOREGROUND:
402 if (safe_printf(0, op->foreground_end))
403 {
404 fprintf(stderr, TOO_MANY_ARGS, "foreground_end");
405 };
406 break;
407 case ATTR_BACKGROUND:
247408 if (!simple_mode)
248 if (safe_printf(0, op->background_end)) fprintf(stderr, TOO_MANY_ARGS, "background_end");;
249 break;
250
251 case ATTR_SUPER:
252 if (safe_printf(0, op->superscript_end)) fprintf(stderr, TOO_MANY_ARGS, "superscript_end");;
253 break;
254 case ATTR_SUB:
255 if (safe_printf(0, op->subscript_end)) fprintf(stderr, TOO_MANY_ARGS, "subscript_end");;
256 break;
257
258 case ATTR_STRIKE:
259 if (safe_printf(0, op->strikethru_end)) fprintf(stderr, TOO_MANY_ARGS, "strikethru_end");;
260 break;
261
262 case ATTR_DBL_STRIKE:
263 if (safe_printf(0, op->dbl_strikethru_end)) fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_end");;
264 break;
265
266 case ATTR_OUTLINE:
267 if (safe_printf(0, op->outline_end)) fprintf(stderr, TOO_MANY_ARGS, "outline_end");;
268 break;
269 case ATTR_SHADOW:
270 if (safe_printf(0, op->shadow_end)) fprintf(stderr, TOO_MANY_ARGS, "shadow_end");;
271 break;
272 case ATTR_EMBOSS:
273 if (safe_printf(0, op->emboss_end)) fprintf(stderr, TOO_MANY_ARGS, "emboss_end");;
274 break;
275 case ATTR_ENGRAVE:
276 if (safe_printf(0, op->engrave_end)) fprintf(stderr, TOO_MANY_ARGS, "engrave_end");;
277 break;
278
279 case ATTR_EXPAND:
280 if (safe_printf(0, op->expand_end)) fprintf(stderr, TOO_MANY_ARGS, "expand_end");;
409 if (safe_printf(0, op->background_end))
410 {
411 fprintf(stderr, TOO_MANY_ARGS, "background_end");
412 };
413 break;
414
415 case ATTR_SUPER:
416 if (safe_printf(0, op->superscript_end))
417 {
418 fprintf(stderr, TOO_MANY_ARGS, "superscript_end");
419 };
420 break;
421 case ATTR_SUB:
422 if (safe_printf(0, op->subscript_end))
423 {
424 fprintf(stderr, TOO_MANY_ARGS, "subscript_end");
425 };
426 break;
427
428 case ATTR_STRIKE:
429 if (safe_printf(0, op->strikethru_end))
430 {
431 fprintf(stderr, TOO_MANY_ARGS, "strikethru_end");
432 };
433 break;
434
435 case ATTR_DBL_STRIKE:
436 if (safe_printf(0, op->dbl_strikethru_end))
437 {
438 fprintf(stderr, TOO_MANY_ARGS, "dbl_strikethru_end");
439 };
440 break;
441
442 case ATTR_OUTLINE:
443 if (safe_printf(0, op->outline_end))
444 {
445 fprintf(stderr, TOO_MANY_ARGS, "outline_end");
446 };
447 break;
448 case ATTR_SHADOW:
449 if (safe_printf(0, op->shadow_end))
450 {
451 fprintf(stderr, TOO_MANY_ARGS, "shadow_end");
452 };
453 break;
454 case ATTR_EMBOSS:
455 if (safe_printf(0, op->emboss_end))
456 {
457 fprintf(stderr, TOO_MANY_ARGS, "emboss_end");
458 };
459 break;
460 case ATTR_ENGRAVE:
461 if (safe_printf(0, op->engrave_end))
462 {
463 fprintf(stderr, TOO_MANY_ARGS, "engrave_end");
464 };
465 break;
466
467 case ATTR_EXPAND:
468 if (safe_printf(0, op->expand_end))
469 {
470 fprintf(stderr, TOO_MANY_ARGS, "expand_end");
471 };
281472 break;
282473
283474 case ATTR_CAPS:
284475 if (op->simulate_all_caps)
476 {
285477 simulate_allcaps = FALSE;
286 break;
287
288 case ATTR_SMALLCAPS:
478 }
479 else
480 {
481 if (op->all_caps_end)
482 if (safe_printf(0, op->all_caps_end))
483 {
484 fprintf(stderr, TOO_MANY_ARGS, "all_caps_end");
485 };
486 }
487 break;
488
489 case ATTR_SMALLCAPS:
289490 if (op->simulate_small_caps)
491 {
290492 simulate_smallcaps = FALSE;
291 else {
493 }
494 else
495 {
292496 if (op->small_caps_end)
293 if (safe_printf(0, op->small_caps_end)) fprintf(stderr, TOO_MANY_ARGS, "small_caps_end");;
497 if (safe_printf(0, op->small_caps_end))
498 {
499 fprintf(stderr, TOO_MANY_ARGS, "small_caps_end");
500 };
294501 }
295502 break;
296503 }
305512 * Returns: None.
306513 *=======================================================================*/
307514
308 void
309 attr_push(int attr, char* param)
515 void attr_push(int attr, char *param)
310516 {
311517 AttrStack *stack = stack_of_stacks_top;
312 if (!stack) {
518 int i;
519 char *oldparam;
520
521 /*fprintf(stderr, "attr_push: [%d] [%s]\n", attr, param);*/
522
523 if (!stack)
524 {
313525 warning_handler("No stack to push attribute onto");
314526 return;
315527 }
316528
317 if (stack->tos >= MAX_ATTRS -1) {
529 /* Remove any current value of the same attr in the top stack */
530 if ((i = attr_find(stack, attr)) != -1)
531 {
532 attr_pull_out(stack, i);
533 }
534
535 if (stack->tos >= MAX_ATTRS - 1)
536 {
318537 fprintf(stderr, "Too many attributes!\n");
319538 return;
320539 }
326545
327546 ++stack->tos;
328547 stack->attr_stack[stack->tos] = attr;
329 if (param)
548 if (param)
549 {
330550 stack->attr_stack_params[stack->tos] = my_strdup(param);
551 }
331552 else
553 {
332554 stack->attr_stack_params[stack->tos] = NULL;
555 }
333556
334557 attr_express_begin(attr, param);
335558 }
336559
560 /* Unexpress and remove an attribute which is not the top one */
561 int attr_find_pop(int findattr)
562 {
563 int i;
564 AttrStack *stack = stack_of_stacks_top;
565
566 if (!stack)
567 {
568 warning_handler("no stack to pop attributes from");
569 return FALSE;
570 }
571
572 /* Check whether findattr is on stack at all; if not, just give up */
573 if ((i = attr_find(stack, findattr)) < 0)
574 {
575 return FALSE;
576 }
577 attr_pull_out(stack, i);
578 return TRUE;
579 }
337580
338581 /*========================================================================
339582 * Name: attr_get_param
342585 * Returns: string.
343586 *=======================================================================*/
344587
345 char *
346 attr_get_param(int attr)
588 char *
589 attr_get_param(int attr)
347590 {
348591 int i;
349592 AttrStack *stack = stack_of_stacks_top;
350 if (!stack) {
351 if (attr != ATTR_ENCODING) {
593 if (!stack)
594 {
595 if (attr != ATTR_ENCODING)
596 {
352597 /*
353598 * attr_get_param(ATTR_ENCODING) is always called
354599