| 1 |
/************************************************************************** |
| 2 |
* This program is Copyright (C) 1986-2002 by Jonathan Payne. JOVE is * |
| 3 |
* provided by Jonathan and Jovehacks without charge and without * |
| 4 |
* warranty. You may copy, modify, and/or distribute JOVE, provided that * |
| 5 |
* this notice is included in all the source files and documentation. * |
| 6 |
**************************************************************************/ |
| 7 |
|
| 8 |
/* values for the `flags' argument to complete (may be combined) */ |
| 9 |
#define CASEIND 001 /* map all to lower case */ |
| 10 |
#define ALLOW_OLD 002 /* accept member */ |
| 11 |
#define ALLOW_INDEX 004 /* accept index number as answer (on CR) */ |
| 12 |
#define ALLOW_NEW 010 /* accept non-member (on CR) */ |
| 13 |
#define ALLOW_EMPTY 020 /* accept empty answer (on CR) */ |
| 14 |
|
| 15 |
extern int InJoverc; /* depth in sourcing */ |
| 16 |
|
| 17 |
extern jbool joverc(char *file); |
| 18 |
|
| 19 |
struct variable; /* forward declaration preventing prototype scoping */ |
| 20 |
|
| 21 |
extern void |
| 22 |
DoAutoExec(char *new, char *old), |
| 23 |
vpr_aux(const struct variable *, char *, size_t), |
| 24 |
vset_aux(const struct variable *, char *); |
| 25 |
|
| 26 |
extern ZXchar |
| 27 |
addgetc(void); |
| 28 |
|
| 29 |
extern long |
| 30 |
ask_long(const char *def, const char *prompt, int base); |
| 31 |
|
| 32 |
extern int |
| 33 |
ask_int(const char *def, const char *prompt, int base), |
| 34 |
complete(const char *const *possible, const char *def, const char *prompt, int flags); |
| 35 |
|
| 36 |
extern jbool |
| 37 |
chr_to_int(const char *cp, int base, jbool allints, int *result), |
| 38 |
chr_to_long(const char *cp, int base, jbool allints, long *result); |
| 39 |
|
| 40 |
/* Commands: */ |
| 41 |
extern void |
| 42 |
BufPos(void), |
| 43 |
CAutoExec(void), |
| 44 |
Extend(void), |
| 45 |
MAutoExec(void), |
| 46 |
PrVar(void), |
| 47 |
InsVar(void), |
| 48 |
SetVar(void), |
| 49 |
Source(void); |