1 /* cmds.h -- declarations for cmds.c.
2 $Id: cmds.h,v 1.4 1999/04/25 20:43:51 karl Exp $
4 Copyright (C) 1998, 99 Free Software Foundation, Inc.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along
17 with this program; if not, write to the Free Software Foundation, Inc.,
18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
23 /* The three arguments a command can get are a flag saying whether it is
24 before argument parsing (START) or after (END), the starting position
25 of the arguments, and the ending position. */
26 typedef void COMMAND_FUNCTION (); /* So we can say COMMAND_FUNCTION *foo; */
28 /* Each command has an associated function. When the command is
29 encountered in the text, the associated function is called with START
30 as the argument. If the function expects arguments in braces, it
31 remembers itself on the stack. When the corresponding close brace is
32 encountered, the function is called with END as the argument. */
36 /* Does the command expect braces? */
37 #define NO_BRACE_ARGS 0
39 #define MAYBE_BRACE_ARGS 2
44 COMMAND_FUNCTION *proc;
45 int argument_in_braces;
48 extern COMMAND command_table[];