3 /* cmds.h -- declarations for cmds.c.
4 Id: cmds.h,v 1.9 2004/11/26 00:48:35 karl Exp
6 Copyright (C) 1998, 1999, 2002, 2003, 2004 Free Software Foundation,
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2, or (at your option)
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License along
20 with this program; if not, write to the Free Software Foundation, Inc.,
21 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
26 /* The three arguments a command can get are a flag saying whether it is
27 before argument parsing (START) or after (END), the starting position
28 of the arguments, and the ending position. */
29 typedef void COMMAND_FUNCTION (); /* So we can say COMMAND_FUNCTION *foo; */
31 /* Each command has an associated function. When the command is
32 encountered in the text, the associated function is called with START
33 as the argument. If the function expects arguments in braces, it
34 remembers itself on the stack. When the corresponding close brace is
35 encountered, the function is called with END as the argument. */
39 /* Does the command expect braces? */
40 #define NO_BRACE_ARGS 0
42 #define MAYBE_BRACE_ARGS 2
47 COMMAND_FUNCTION
*proc
;
48 int argument_in_braces
;
51 extern COMMAND command_table
[];
53 typedef struct acronym_desc
55 struct acronym_desc
*next
;
60 /* Texinfo commands. */
61 extern void insert_self (int arg
),
62 insert_space (int arg
),
63 cm_ignore_line (void),
64 cm_ignore_arg (int arg
, int start_pos
, int end_pos
),
68 /* Document structure and meta information. */
69 extern void cm_setfilename (void),
71 cm_documentdescription (void),
75 cm_dircategory (void),
80 extern void cm_include (void),
81 cm_verbatiminclude (void);
83 /* Cross referencing commands. */
84 extern void cm_anchor (int arg
),
91 /* Special insertions. */
92 extern void cm_LaTeX (int arg
),
97 cm_copyright (int arg
),
102 cm_expansion (int arg
),
104 cm_insert_copying (void),
109 cm_registeredsymbol (int arg
),
112 /* Emphasis and markup. */
113 extern void cm_acronym (int arg
),
116 cm_cite (int arg
, int position
),
118 cm_dfn (int arg
, int position
),
126 cm_not_fixed_width (int arg
, int start
, int end
),
128 cm_sansserif (int arg
),
129 cm_sc (int arg
, int start_pos
, int end_pos
),
130 cm_slanted (int arg
),
131 cm_strong (int arg
, int start_pos
, int end_pos
),
133 cm_indicate_url (int arg
, int start
, int end
),
134 cm_var (int arg
, int start_pos
, int end_pos
),
137 /* Block environments. */
138 extern void cm_cartouche (void),
141 cm_smalldisplay (void),
143 cm_smallexample (void),
147 cm_smallformat (void),
151 cm_flushright (void),
155 /* Tables, lists, enumerations. */
156 extern void cm_table (void),
161 cm_multitable (void),
167 extern void cm_center (void),
171 cm_noindent_cmd (void);
173 /* Line and page breaks. */
174 extern void cm_asterisk (void),
178 /* Non breaking words. */
179 extern void cm_tie (int arg
),
182 /* Title page creation. */
183 extern void cm_titlepage (void),
185 cm_titlepage_cmds (void),
186 cm_titlefont (int arg
),
190 extern void cm_float (void),
191 cm_caption (int arg
),
192 cm_shortcaption (void),
193 cm_listoffloats (void);
196 extern void cm_kindex (void),
203 cm_defcodeindex (void),
205 cm_printindex (void);
208 extern void cm_set (void),
213 cm_value (int arg
, int start_pos
, int end_pos
);