11. Port to other Platforms
11.1. General Notes
A central role in the configuration of mbedit have the header files
"config.h" and "config2.hh". The specifications of all system specific
#define constants are located here. In particular:
The operating system: makefile
ACT_OP_SYSTEM = MS_DOS ms-dos/makefile
WIN_32 win32bit/makefile.vcw
OS_9 os-9/makefile
UNIX_SVR4 unix/makefile
DEC_ULTRIX "
SGI_IRIX "
SUN_OS "
SCO_UNIX "
LINUX "
OSF_1 "
QNX "
HP_UX hp-ux/makefile
For generation of the editor, proceed the following way:
- Copy the complete source files to a new directory tree.
- Select the desired #define constant ACT_OP_SYSTEM in "config2.hh".
- Start "make" with the appropriate makefile listed above.
- Copy files to PATH-Directory, e.g. linux:
cp mbedit /usr/local/bin
cp mbedit.mac /usr/local/bin
11.2. Notes for Programming
Who is interested in this theme (perhaps somebody wants to improve
the program), should read the remarks in the header file "config.h".
You must always keep in mind, that mbedit is a software for very
different development environments. A function, which is available for
MS-DOS, can be absent in ultrix. Even some habits of programming are
not always comprehensible to every compiler.
The essential differences between the several operating systems are the
keyboard input and the monitor output (see the files "kb_input.c" and
"mon_outp.c").
Further details concern the memory management and the file handling
(see "memo_hnd.c" and "file_hnd.c").