Imported Robodoc.
[robodoc.git] / Source / globals.h
1 #ifndef ROBODOC_GLOBALS_H
2 #define ROBODOC_GLOBALS_H
3 /*
4 Copyright (C) 1994-2007  Frans Slothouber, Jacco van Weert, Petteri Kettunen,
5 Bernd Koesling, Thomas Aglassinger, Anthon Pang, Stefan Kost, David Druffner,
6 Sasha Vasko, Kai Hofmann, Thierry Pierron, Friedrich Haase, and Gergely Budai.
7
8 This file is part of ROBODoc
9
10 ROBODoc is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23 */
24
25
26 #include <stdio.h>
27 #include "robodoc.h"
28
29 /* TODO  Try to get rid of as many as these as possible. */
30
31 #define MAX_LINE_LEN        512
32 #define MAX_TABS            256
33 #define DEFAULT_TABSIZE       8
34 #define TABSIZE_SEPARATOR   ","
35 #define DEFAULT_HEADER_BREAKS 2
36 #define MAX_HEADER_BREAKS   255
37
38 #define TEMP_BUF_SIZE      1024
39 #define DEFAULT_DOT_NAME    "dot"
40 #define DOT_GRAPH_NAME      "dot_graph_"
41 #define EPSTOPDF_NAME       "epstopdf"
42 #define DOT_HTML_TYPE       "png"
43 #define DOT_LATEX_TYPE      "ps"
44
45 // Class definitions for syntax highlighting
46 // Note: Should correlate with css file
47 #define SOURCE_CLASS        "source"
48 #define KEYWORD_CLASS       "keyword"
49 #define COMMENT_CLASS       "comment"
50 #define QUOTE_CLASS         "quote"
51 #define SQUOTE_CLASS        "squote"
52 #define SIGN_CLASS          "sign"
53
54 // Default HTML charset
55 #define DEFAULT_CHARSET     "ISO-8859-1"
56
57 // Default document title
58 #define DEFAULT_DOCTITILE   "API Reference"
59
60 // Document title
61 extern char        *document_title;
62
63 extern char        *source_file;        /* DCD */
64
65 /* extern T_RB_DocType output_mode; */
66 /* extern long course_of_action; */
67 /* extern int line_number; */
68 void                RB_Close_The_Shop(
69     void );
70
71 // More ugly globals... Any idea where should we place them?
72 extern int          tab_stops[MAX_TABS];
73 extern char        *dot_name;
74 extern int          header_breaks;
75
76 /* These are really necessary */
77 extern int          number_of_warnings;
78 extern unsigned int link_index_size;
79 extern struct RB_link **link_index;
80 extern char        *current_file;
81 extern T_RB_DocType output_mode;
82 extern actions_t    course_of_action;
83 extern int          line_number;
84 extern char         line_buffer[MAX_LINE_LEN];
85 extern char        *whoami;
86 extern char        *myLine;
87 extern int          readChars;
88 extern long         debugmode;
89
90 #endif /* ROBODOC_GLOBALS_H */