grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / utilities / Installer / execute.h
blob330aa0d0a3642030212349ebcb1316bb2e717683
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef _EXECUTE_H
7 #define _EXECUTE_H
9 /* Function prototypes */
10 extern char *strip_quotes(char *);
11 extern int database_keyword(char *);
12 extern struct ParameterList *get_parameters(ScriptArg *, int);
13 extern void collect_stringargs(ScriptArg *, int, struct ParameterList *);
14 extern void modify_userstartup(char *, struct ParameterList *);
15 extern void free_parameterlist(struct ParameterList *);
16 extern void free_parameter(struct ParameterList);
17 extern int eval_cmd(char *);
18 extern char *collect_strings(ScriptArg *, char, int);
19 extern long int getint(ScriptArg *);
20 extern void traperr(char *, char *);
21 extern void execute_script(ScriptArg *, int);
22 extern char * DynNameFromLock(BPTR);
24 /* Command symbols */
25 struct CommandList
27 char * cmdsymbol;
28 int cmdnumber;
31 #define _USERDEF -1
32 #define _UNKNOWN 0
34 /* Commands */
35 #define _ABORT 1
36 #define _AND 2
37 #define _ASKBOOL 3
38 #define _ASKCHOICE 4
39 #define _ASKDIR 5
40 #define _ASKDISK 6
41 #define _ASKFILE 7
42 #define _ASKNUMBER 8
43 #define _ASKOPTIONS 9
44 #define _ASKSTRING 10
45 #define _BITAND 11
46 #define _BITNOT 12
47 #define _BITOR 13
48 #define _BITXOR 14
49 #define _CAT 15
50 #define _COMPLETE 16
51 #define _COPYFILES 17
52 #define _COPYLIB 18
53 #define _DATABASE 19
54 #define _DEBUG 20
55 #define _DELETE 21
56 #define _DIFF 22
57 #define _DIV 23
58 #define _EARLIER 24
59 #define _EQUAL 25
60 #define _EXECUTE 26
61 #define _EXISTS 27
62 #define _EXIT 28
63 #define _EXPANDPATH 29
64 #define _FILEONLY 30
65 #define _FOREACH 31
66 #define _GETASSIGN 32
67 #define _GETDEVICE 33
68 #define _GETDISKSPACE 34
69 #define _GETENV 35
70 #define _GETSIZE 36
71 #define _GETSUM 37
72 #define _GETVERSION 38
73 #define _IF 39
74 #define _IN 40
75 #define _LESS 41
76 #define _LESSEQ 42
77 #define _MAKEASSIGN 43
78 #define _MAKEDIR 44
79 #define _MESSAGE 45
80 #define _MINUS 46
81 #define _MORE 47
82 #define _MOREEQ 48
83 #define _NOT 49
84 #define _ONERROR 50
85 #define _OR 51
86 #define _PATHONLY 52
87 #define _PATMATCH 53
88 #define _PLUS 54
89 #define _PROCEDURE 55
90 #define _PROTECT 56
91 #define _RENAME 57
92 #define _REXX 58
93 #define _RUN 59
94 #define _SELECT 60
95 #define _SET 61
96 #define _SHIFTLEFT 62
97 #define _SHIFTRGHT 63
98 #define _STARTUP 64
99 #define _STRING 65
100 #define _STRLEN 66
101 #define _SUBSTR 67
102 #define _SYMBOLSET 68
103 #define _SYMBOLVAL 69
104 #define _TACKON 70
105 #define _TEXTFILE 71
106 #define _TIMES 72
107 #define _TOOLTYPE 73
108 #define _TRANSCRIPT 74
109 #define _TRAP 75
110 #define _UNTIL 76
111 #define _USER 77
112 #define _WELCOME 78
113 #define _WHILE 79
114 #define _WORKING 80
115 #define _XOR 81
116 #define _ICONINFO 82
118 #define NUMCMDS 82
121 /* Parameters */
122 #define _PARAMETER 128 /* Base number for parameters */
124 /* Parameters with args */
125 #define _APPEND (_PARAMETER + 1)
126 #define _CHOICES (_PARAMETER + 2)
127 #define _COMMAND (_PARAMETER + 3)
128 #define _CONFIRM (_PARAMETER + 4)
129 #define _DEFAULT (_PARAMETER + 5)
130 #define _DELOPTS (_PARAMETER + 6)
131 #define _DEST (_PARAMETER + 7)
132 #define _HELP (_PARAMETER + 8)
133 #define _INCLUDE (_PARAMETER + 9)
134 #define _NEWNAME (_PARAMETER + 10)
135 #define _OPTIONAL (_PARAMETER + 11)
136 #define _PATTERN (_PARAMETER + 12)
137 #define _PROMPT (_PARAMETER + 13)
138 #define _RANGE (_PARAMETER + 14)
139 #define _SETDEFAULTTOOL (_PARAMETER + 15)
140 #define _SETPOSITION (_PARAMETER + 16)
141 #define _SETSTACK (_PARAMETER + 17)
142 #define _SETTOOLTYPE (_PARAMETER + 18)
143 #define _SOURCE (_PARAMETER + 19)
145 /* Boolean parameters */
146 #define _ALL (_PARAMETER + 20)
147 #define _ASSIGNS (_PARAMETER + 21)
148 #define _DISK (_PARAMETER + 22)
149 #define _FILES (_PARAMETER + 23)
150 #define _FONTS (_PARAMETER + 24)
151 #define _INFOS (_PARAMETER + 25)
152 #define _NEWPATH (_PARAMETER + 26)
153 #define _NOGAUGE (_PARAMETER + 27)
154 #define _NOPOSITION (_PARAMETER + 28)
155 #define _QUIET (_PARAMETER + 29)
156 #define _RESIDENT (_PARAMETER + 30)
157 #define _SAFE (_PARAMETER + 31)
158 #define _SWAPCOLORS (_PARAMETER + 32)
160 #define NUMPARAMS 32 /* Number of keywords used as parameters */
161 #define NUMARGPARAMS 19 /* Number of keywords used as parameters which may have arguments */
163 #define _MAXCOMMAND (NUMPARAMS+NUMCMDS) /* Total number of keywords */
166 #define GetPL(x, y) x[y - _PARAMETER -1]
169 /* _DATABASE keywords */
171 /* Installer 1.24 keywords */
172 #define _VBLANK 1
173 #define _CPU 2
174 #define _GRAPHICS_MEM 3
175 #define _TOTAL_MEM 4
176 /* Installer V43 keywords */
177 #define _FPU 5
178 #define _CHIPREV 6
181 #endif /* _EXECUTE_H */