-
Notifications
You must be signed in to change notification settings - Fork 2
/
sx.h
75 lines (50 loc) · 2.23 KB
/
sx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* sx.h
+------------------------------------+
| SamaruX - Unix like shell for CP/M |
+------------------------------------+
Copyright (c) 2007-2023 Miguel I. Garcia Lopez.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
Contact:
www.floppysoftware.es
cpm-connections.blogspot.com
Revisions:
05 Jun 2016 : Extracted from sx.c.
27 Nov 2016 : v2.06.
20 Sep 2021 : Add SX_MAX_RUN.
27 Dec 2023 : v3.00.
*/
/* SAMARUX DEFINES
---------------
*/
#define SX_APPNAME "SamaruX"
#define SX_VERSION 3 /* Version 3.00 */
#define SX_RELEASE 0
#define SX_APPDATE "27 Dec 2023"
#define SX_COPYRGT "(c) 2007-2023 Miguel Garcia / FloppySoftware"
#define SX_PROFILE "profile.sx" /* Profile for interactive mode */
#define SX_PROFCPM "profcpm.sx" /* Profile for CP/M mode */
#define SX_PIPEIN "pipein.sxp" /* Pipe input file name */
#define SX_PIPEOUT "pipeout.sxp" /* Pipe output file name */
#define SX_TTY_ROWS 25 /* Default console rows */
#define SX_TTY_COLS 80 /* Default console columns */
#define SX_MAX_HIST 10 /* Max. # of lines in commands line history */
#define SX_MAX_ENV 16 /* Max. # of environment variables */
#define SX_MAX_ALIAS 16 /* Max. # of aliases */
#define SX_LINESIZE 128 /* Input line size in characters + zero terminal */
#define SX_MAX_FCX 128 /* Max. # of FCXs for file search */
#define SX_MAX_ARGS 24 /* Max. # of arguments in the command line */
#define SX_MAX_CMD 48 /* Max. # of built-in commands */
#define SX_MAX_BATCH 10 /* Max. # of batch variables: $0 .. $9 */
#define SX_MAX_DIR 16 /* Max. # of directory names */
#define SX_MAX_RUN 8 /* Max. # of running commands */