aboutsummaryrefslogtreecommitdiff
path: root/teco.h
AgeCommit message (Collapse)AuthorFilesLines
2025-05-05automatically use the current date when building with AutotoolsRobin Haberkorn1-24/+29
* It's actually the time of running ./configure that will be used. * On OpenWatcom, it does not seem to be possible to set variables based on external processes, so you will still have to update AUTO_DATE in teco.h when releasing for DOS.
2025-05-04moved the DOS-specific defines into teco.h, so we don't need the `@WCC_DEFS` ↵Robin Haberkorn1-0/+25
workaround Also, we increased the maximum size of objects to be put into the "far data" section, which significantly decreases the DOS binary size.
2025-05-03various data type improvementsRobin Haberkorn1-2/+2
* fixes at least <FS>, which has been broken since b5325e00c402ec18034da4b4a4aaaefa87bb1fef. * but probably many other commands as well in the DOS version when working with "very large" documents * now compiles cleanly with -Wsign-compare
2025-05-03DOS: expand glob patterns when opening filesRobin Haberkorn1-0/+1
* This is not done by the shell in DOS. * As a side effect, we support all of the Csh-like constructs like {a,b,c} in contrast to Watcom's fnmatch().
2025-04-27DOS: use backslash directory separators instead of slashRobin Haberkorn1-0/+8
2025-04-27the magic struct fields are omitted now unless DEBUG1 is definedRobin Haberkorn1-4/+12
* The magic field is now always called __magic. * Saves some memory, which is important especially on MS-DOS.
2025-04-27implemented EC for non-UNIX almost pure standard C compilersRobin Haberkorn1-4/+12
In particular, this will work on MS-DOS, albeit inefficiently. You also cannot generically redirect stderr on COMMAND.COM.
2025-04-26unsigned long is the base type for buffer positions nowRobin Haberkorn1-265/+271
* This allows handling files >64kb even on 16-bit DOS. * A few flags fields could be squashed into bitfields. * The buffer overview (0EB) has been adapted for DOS. We can only show the total amount of allocated memory (as by tecmem.c) for the time being. Unfortunately, we don't have a total amount of available memory since _memavl() is for small data models and the sbrk() apparently doesn't grow.
2025-04-25the maximum filename length is now determined by standard C's FILENAME_MAXRobin Haberkorn1-5/+5
This will save a lot of stack space and sometimes heap space on DOS.
2025-04-23DOS: implemented console size detectionRobin Haberkorn1-0/+4
This is done via 10h interrupts and special memory regions. The alternative would have been to use set the cursor to 9999,9999 and query the cursor position via ANSI escape sequences.
2025-04-23MS-DOS real-mode (8086) portRobin Haberkorn1-9/+43
It can be cross-compiled or compiled natively on 32-bit DOS with OpenWatcom C v1.9. Compiling on an 8086 might be possible later on - but we would have to add support for some ancient ANSI C compiler.
2025-04-21silence some warnings when compiling under FreeBSD (and probably Linux)Robin Haberkorn1-15/+17
Also avoid old-school function declarations without parameters (`void foo();`). This is unnecessarily loosing type safety.
2011-07-18remove NULL macro definition: may be platform dependantRobin Haberkorn1-1/+0
2011-07-17compute BITS_PER_INT automatically based on BITS_PER_CHARRobin Haberkorn1-5/+6
this is possible since BITS_PER_INT is not used in any preprocessor expression
2011-07-17disable .OLD backup file creation by defaultRobin Haberkorn1-1/+3
* should be configurable using ./configure (disabled by default)
2011-07-15converted file header and some variable/macro docs to Doxygen formatRobin Haberkorn1-6/+8
* adapted Doxygen config file
2007-12-10Original checkin with the GPL license.paulcantrell1-16/+18
2007-12-10Initial revisionpaulcantrell1-0/+657