src/c2html.h

Tue, 23 Aug 2016 13:59:48 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 23 Aug 2016 13:59:48 +0200
changeset 40
903b46fc4214
parent 39
ac35daceb24c
child 49
f86f0b054464
permissions
-rw-r--r--

fixes plaintext output

22
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 /*
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 *
35
abaf2489c549 adjusted copyright info
Mike Becker <universe@uap-core.de>
parents: 24
diff changeset
4 * Copyright 2016 Mike Becker. All rights reserved.
22
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 *
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 * Redistribution and use in source and binary forms, with or without
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 * modification, are permitted provided that the following conditions are met:
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 *
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 * 1. Redistributions of source code must retain the above copyright
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 * notice, this list of conditions and the following disclaimer.
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 *
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 * 2. Redistributions in binary form must reproduce the above copyright
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 * notice, this list of conditions and the following disclaimer in the
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 * documentation and/or other materials provided with the distribution.
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 *
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 * POSSIBILITY OF SUCH DAMAGE.
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 *
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 */
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 #ifndef C2HTML_H
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 #define C2HTML_H
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 #include <stdio.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 #include <stdlib.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 #include <string.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 #include <fcntl.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 #include <unistd.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 #include <ctype.h>
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 #include "javacodegen.h"
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 #include "ccodegen.h"
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 #ifdef __cplusplus
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 extern "C" {
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 #endif
37
1a67185e5496 adds version number and changes build system
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
46
1a67185e5496 adds version number and changes build system
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
47 #define VERSION_MAJOR 2
1a67185e5496 adds version number and changes build system
Mike Becker <universe@uap-core.de>
parents: 35
diff changeset
48 #define VERSION_MINOR 0
39
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 37
diff changeset
49 #define VERSION_DEVELOP 1 /* set this to zero for release version */
22
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 typedef struct {
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 char* outfilename;
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 char* headerfile;
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 char* footerfile;
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 char* infilename;
24
e43dee5892f4 improved code structure and added option for disabling line numbers
Olaf Wintermann <olaf.wintermann@gmail.com>
parents: 22
diff changeset
56 int showlinenumbers;
39
ac35daceb24c adds UCX + changes how the input file is read (uses an consecutive memory area now)
Mike Becker <universe@uap-core.de>
parents: 37
diff changeset
57 } Settings;
22
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 #ifdef __cplusplus
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 }
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 #endif
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 #endif /* C2HTML_H */
f463693b5eeb added command line parameters for header and footer file
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65

mercurial