2 Copyright (C) 1994-2007 Frans Slothouber, Jacco van Weert, Petteri Kettunen,
3 Bernd Koesling, Thomas Aglassinger, Anthon Pang, Stefan Kost, David Druffner,
4 Sasha Vasko, Kai Hofmann, Thierry Pierron, Friedrich Haase, and Gergely Budai.
6 This file is part of ROBODoc
8 ROBODoc is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 /****h* ROBODoc/Globals
26 * A number of global variables.
30 * $Id: globals.c,v 1.22 2007/07/10 19:13:51 gumpu Exp $
43 int number_of_warnings = 0;
45 /* Pointer to the name of the current file that is being analysed,
48 char *current_file = 0;
50 /****v* Globals/document_title
52 * documentat_title -- title for the documentation.
54 * Used as the title for master index files or for latex documentation.
58 char *document_title = NULL;
63 /****v* Globals/output_mode [2.0]
65 * output_mode -- the mode of output
67 * Controls which type of output will be generated.
71 T_RB_DocType output_mode = ASCII;
76 /****v* Globals/course_of_action [2.0]
80 * Global Variable that defines the course of action.
84 actions_t course_of_action;
88 /****v* Globals/debugmode
92 * A bitfield determining the output levels
101 /****v* Globals/line_buffer [2.0]
103 * line_buffer -- global line buffer
105 * Temporary storage area for lines
106 * that are read from an input file.
110 char line_buffer[MAX_LINE_LEN];
114 /****v* Globals/myLine
116 * myLine -- dynamic buffer for current line
118 * Temporary storage area for lines
119 * that are read from an input file.
127 /****v* Globals/readChars
129 * readChars -- number of characters in the currently bufferd line
131 * Temporary storage area for lines
132 * that are read from an input file.
140 /****v* Globals/line_number [2.0]
142 * line_number -- global line counter
144 * Keeps track of the number of lines that are read from the source file.
157 /* TODO Document these. */
159 char *source_file; /* DCD */
160 char *whoami = NULL; /* me,myself&i */
161 int tab_stops[MAX_TABS]; /* Tab stop positions */
163 // Number of header item names before linebreak
164 int header_breaks = DEFAULT_HEADER_BREAKS;
167 // Path and filename to dot tool
168 char *dot_name = DEFAULT_DOT_NAME;
171 /****i* Globals/RB_Close_The_Shop [3.0b]
173 * RB_Close_The_Shop -- free resources.
175 * void RB_Close_The_Shop ()
177 * Frees all resources used by robodoc.
179 * RB_Free_Header(), RB_Free_Link()
183 void RB_Close_The_Shop(
186 /* TODO if (link_index) { free(link_index); } */