1 #ifndef ROBODOC_GLOBALS_H
2 #define ROBODOC_GLOBALS_H
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.
8 This file is part of ROBODoc
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.
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.
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/>.
29 /* TODO Try to get rid of as many as these as possible. */
31 #define MAX_LINE_LEN 512
33 #define DEFAULT_TABSIZE 8
34 #define TABSIZE_SEPARATOR ","
35 #define DEFAULT_HEADER_BREAKS 2
36 #define MAX_HEADER_BREAKS 255
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"
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"
54 // Default HTML charset
55 #define DEFAULT_CHARSET "ISO-8859-1"
57 // Default document title
58 #define DEFAULT_DOCTITILE "API Reference"
60 // Document title, header and footer
61 extern char *document_title;
62 extern char *document_header;
63 extern char *document_footer;
65 extern char *source_file; /* DCD */
67 /* extern T_RB_DocType output_mode; */
68 /* extern long course_of_action; */
69 /* extern int line_number; */
70 void RB_Close_The_Shop(
73 // More ugly globals... Any idea where should we place them?
74 extern int tab_stops[MAX_TABS];
75 extern char *dot_name;
76 extern int header_breaks;
78 /* These are really necessary */
79 extern int number_of_warnings;
80 extern unsigned int link_index_size;
81 extern struct RB_link **link_index;
82 extern char *current_file;
83 extern T_RB_DocType output_mode;
84 extern actions_t course_of_action;
85 extern int line_number;
86 extern char line_buffer[MAX_LINE_LEN];
90 extern long debugmode;
92 #endif /* ROBODOC_GLOBALS_H */