1 /* $MirOS: contrib/code/jupp/cmd.h,v 1.4 2014/06/09 16:06:46 tg Exp $ */
5 * (C) 1992 Joseph H. Allen
7 * This file is part of JOE (Joe's Own Editor)
15 extern CMD cmds[]; /* Built-in commands */
18 /* Command execution flags */
20 #define EMID 1 /* Recenter screen */
21 #define ECHKXCOL 2 /* Don't execute command if cursor column is wrong */
22 #define EFIXXCOL 4 /* Fix column position after command has executed */
23 #define EMINOR 8 /* Full screen update not needed */
24 #define EPOS 16 /* A position history command */
25 #define EMOVE 32 /* A movement for position history purposes */
26 #define EKILL 64 /* Function is a kill */
27 #define EMOD 128 /* Not allowed on readonly files */
28 /* These use same bits as TYPE* in types.h */
29 #define EBLOCK 0x4000 /* Finish block selection */
31 /* CMD *findcmd(char *s);
32 * Return command address for given name
34 CMD *findcmd PARAMS((unsigned char *s));
35 void addcmd PARAMS((unsigned char *s, MACRO *m));
37 /* Execute a command. Returns return value of command */
38 int execmd PARAMS((CMD *cmd, int k));