Bruce Mitchener
7119613aee
Remove RISCOS platform support. ( #39 )
2020-12-14 01:38:57 +00:00
Bruce Mitchener
7313de4274
Remove FUJI compile flag. ( #38 )
...
This was only used for a keyboard warning that doesn't seem
relevant any longer.
2020-12-14 01:21:54 +00:00
Bruce Mitchener
46e9882f30
We only build as ANSI C, so we don't check for __STDC__. ( #37 )
2020-12-13 10:24:04 -08:00
Bruce Mitchener
33a42736d4
Remove OSF1 / DEC3100 platform support. ( #36 )
...
This also removes support for the DEC3100 keyboard, but leaves a
constant behind for it as I'm not sure about re-numbering.
[NBriggs: keyboard type numbers are stored within all sysouts. Do not renumber supported keyboards, do not reuse previously used keyboard numbers]
2020-12-13 10:22:43 -08:00
Bruce Mitchener
1c912ff57e
Remove HP platform support. ( #34 )
...
This removes code related to HP9000, HPTIMERBUG, and HPUX defines.
It leaves KB_HP9000 for now as I'm not sure about renumbering
those constants.
This should not impact any of the core emulation code.
2020-12-13 05:35:53 +00:00
Bruce Mitchener
750d84c78c
Remove SGI Irix platform support. ( #33 )
...
This platform had no emulation-related changes.
Remove code for IRIX40, INDIGO definitions.
In disk code, simplify a chain of #ifdef's around fsync handling.
2020-12-13 02:57:07 +00:00
Bruce Mitchener
1c28005420
Remove support for Ultrix. ( #28 )
...
Ultrix hasn't seen an update since 1995 and the DEC3100 hardware
that this was originally written for was released in 1989.
It isn't likely that anyone has Ultrix running on hardware where
they would also want to run this.
2020-12-12 18:15:22 -08:00
Bruce Mitchener
348a3a2b30
uutils: Clean up string.h inclusion. ( #31 )
...
This is similar to the change in #27 . We can just include <string.h>
rather than doing performative dances and complicating everything.
2020-12-12 18:12:06 -08:00
Bruce Mitchener
d91bdc0994
initkbd: Fix warning about missing decl for strcmp. ( #27 )
...
Instead of adding more stuff to the `#ifdef` around the inclusion
of `<string.h>`, we remove that `#ifdef` entirely.
There are many instances of `<string.h>` being included in the
code without any `#ifdef` protection, and `strcmp` is defined to
be declared in `<string.h>`, so all platforms from the last 20
years and into the future will need this.
2020-12-12 18:09:10 -08:00
Bruce Mitchener
292809694e
Remove platform support for Apollo/Domain. ( #30 )
2020-12-13 02:07:08 +00:00
Nick Briggs
a059b67e88
Make dremove() static in src/storage.c, there are no other references.
2020-12-11 22:06:23 -08:00
Nick Briggs
8ee75ede4e
Don't define old_cursorin() if it's not going to be used (REALCURSOR || SUNDISPLAY).
...
modified: src/bbtsub.c
2020-12-11 16:40:08 -08:00
Nick Briggs
0786d75e67
Correct C dremove() implementation (not used for implementation of the Lisp DREMOVE function)
...
The C translation didn't observe that the value of (COND (C X)) is NIL if not C.
modified: src/storage.c
2020-12-11 16:20:33 -08:00
Nick Briggs
a02ea64c52
Use correct format (%ld) for (long) times in seconds.
2020-12-10 16:53:40 -08:00
Bruce Mitchener
d6d2a3371a
Use getcwd() instead of getwd(). ( #20 )
...
getwd() has been deprecated for a long time and getcwd() should
be used instead.
2020-12-10 17:24:21 +00:00
Bruce Mitchener
e025617c13
Fix some typos. ( #18 )
...
Changes to commentary only.
2020-12-10 08:07:35 -08:00
Nick Briggs
9b12db45be
Really switch to UNSIGNED instead of uintptr_t -- modified src/findkey.c
2020-12-09 18:14:50 -08:00
Nick Briggs
af50a35911
version.h defines "UNSIGNED" as the type for pointer-sized integer. Using "unsigned" may produce the wrong answer on a 64-bit system.
...
modified: ../src/findkey.c
2020-12-09 18:09:19 -08:00
Nick Briggs
a6db884947
Add a tiny bit of documentation for newpage(). No functional change.
...
modified: src/storage.c
2020-12-09 13:50:15 -08:00
Nick Briggs
b234064d91
Rework handling of I/O via select() to use correct fd_set type instead of int for fd sets.
...
Some code that was maintaining an fd_set with only a single fd was replaced
with just the fd as int, which can be added to the global fd_set as needed.
More testing is required for less usual configurations such as host TCP/UDP/IP
and direct ethernet (packet filter or NIT) I/O.
modified: src/common.c
modified: src/ether.c
modified: src/inet.c
modified: src/initkbd.c
modified: src/kbdsubrs.c
modified: src/keyevent.c
modified: src/main.c
modified: src/osmsg.c
modified: src/rawrs232c.c
modified: src/rpc.c
modified: src/rs232c.c
modified: src/tty.c
modified: src/uraid.c
modified: src/xinit.c
2020-12-08 19:26:56 -08:00
Nick Briggs
ba0a42f663
Remove replicated (debug) storage for stack block checks causing shadowed variable warnings.
...
Initialize free stack block debug storage using sizeof() appropriately.
modified: src/llstk.c
2020-12-08 12:34:59 -08:00
Nick Briggs
be3ffd746c
Remove unnecessary declaration causing shadowing warnings.
...
modified: ../src/ldeboot.c
modified: ../src/unixfork.c
2020-12-08 10:03:40 -08:00
Nick Briggs
49aa01a70b
Remove unnecessary declaration causing shadowing warnings.
...
Improve debugging output for fp-to-vp page runs.
modified: src/vmemsave.c
2020-12-08 09:55:41 -08:00
Nick Briggs
f94570d01c
Fix warning for missing function prototype in keymaker.c
2020-12-07 15:22:47 -08:00
Nick Briggs
064027e841
Use MAXPATHLEN for length of arrays containing path.
...
Use strncpy() to replace unsafe use of strcpy().
Use getcwd() to replace unsafe use of getwd().
modified: main.c
2020-12-05 17:44:07 -08:00
Nick Briggs
be5e981941
Using memset() requires including <string.h>
...
modified: src/ldsout.c
2020-12-04 13:07:55 -08:00
Nick Briggs
90cca21044
Don't use "id" for a variable shadowing the global "id" identification string.
...
modified: src/chatter.c
modified: src/dir.c
modified: src/ejlisp.c
modified: src/osmsg.c
modified: src/picture.c
2020-11-28 18:21:59 -08:00
Nick Briggs
fea01d8b69
Don't use "id" for a variable shadowing the global "id" identification string.
...
Addresses passed as data to an ioctl() should be void* not int.
modified: src/chardev.c
2020-11-28 18:13:53 -08:00
Nick Briggs
d8c0ab9bdf
Fix detection of timezone offset for FreeBSD. (Refs Interlisp/medley/#65)
...
modified: src/timer.c
2020-11-23 20:49:43 -08:00
Nick Briggs
d9d917ab82
Add a verbose option to tstsout to provide more info from the interface page
...
Usage: tstsout [-v] sysout-filename
prints the minbversion, process_size, storagefullstate, and nactivepages
modified: src/tstsout.c
2020-11-21 14:16:51 -08:00
Nick Briggs
365d07f817
Some floating point related functions are defined in <math.h>, include it.
...
modified: src/fp.c
2020-11-21 11:50:33 -08:00
Nick Briggs
2dd366bcb9
Fix timezone detection (refs Interlisp/medley#65 )
...
Use tzset() and the timezone variable to more robustly detect the timezone.
This will also allow a user to set the TZ environment variable to override system timezone settings.
modified: src/timer.c
2020-11-17 18:01:01 -08:00
Nick Briggs
b9fa900512
Fix memory leak in make_X_keymap(). Ref #64
...
Add extra debugging printfs for X keyboard mapping under ifdef DEBUG.
modified: src/initkbd.c
2020-11-11 18:33:43 -08:00
Abe Jellinek
3db585e2b2
Docker compatibility: makefile and headers ( #17 )
...
* Docker compatibility: makefile and headers
- _GNU_SOURCE required for F_SETSIG
* Remove duplicate makeright.sh script
* Update some includes that don't exist on modern Linux (termio.h); Clang in Docker
has trouble resolving them automatically
2020-10-26 17:54:35 -07:00
Nick Briggs
a94e46bf8e
Update wording and formatting of URaid command documentation
...
modified: src/uraid.c
2020-10-25 18:39:38 -07:00
Nick Briggs
2bf4cea359
Remove unnecessary declaration for nametable that was shadowed by block local declaration, causing compilation warning.
...
modified: src/gcmain3.c
2020-10-25 18:35:16 -07:00
Nick Briggs
56615128e0
Merge branch 'master' of https://github.com/Interlisp/maiko
2020-10-18 14:33:41 -07:00
Nick Briggs
17fbbe96d7
Hook up the X11 Button4 and Button5 events (from mouse scrollwheel or trackpad vertical scroll) to
...
the Dolphin/Dorado key set PAD1 (LEFTKEY) and PAD2 (LEFTMIDDLEKEY) keys.
2020-10-18 14:27:58 -07:00
Larry Masinter
0342f93b68
suggested replacement was better.
2020-10-10 06:31:22 -07:00
Larry Masinter
192c351007
fix #43
...
use of support phone numberes
2020-10-10 06:16:11 -07:00
Nick Briggs
14d4d3a5a2
Fix spelling error in variable name. No functional change.
...
modified: src/unwind.c
2020-10-03 14:47:54 -07:00
Nick Briggs
d8fda3b846
Update error messages when fcntl/ioctl on X fd for SETSIG fails to make it a little clearer.
...
modified: src/timer.c
2020-09-27 14:27:29 -07:00
Nick Briggs
21baf85c22
Fix prototype syntax for functions with no parameters in include files
...
Add some overlooked function prototypes to xxxdefs.h include files
Add missing #include of relevant xxxdefs.h in a couple of source files
Add prototypes in standalone programs to silence (some) -Wmissing-prototype warnings
Remove duplicate prototype from hardrtn.c
modified: inc/commondefs.h
modified: inc/dirdefs.h
modified: inc/dspifdefs.h
modified: inc/dspsubrsdefs.h
modified: inc/etherdefs.h
modified: inc/gcmain3defs.h
modified: inc/initdspdefs.h
modified: inc/initkbddefs.h
modified: inc/keyeventdefs.h
modified: inc/maindefs.h
modified: inc/osmsgdefs.h
modified: inc/testtooldefs.h
modified: inc/timerdefs.h
modified: inc/unixfork.h
modified: inc/uraiddefs.h
modified: inc/vmemsavedefs.h
modified: inc/xcursordefs.h
modified: inc/xlspwindefs.h
modified: src/arith2.c
modified: src/ether.c
modified: src/hardrtn.c
modified: src/keytstno.c
modified: src/setsout.c
modified: src/tstsout.c
2020-09-27 11:58:17 -07:00
Nick Briggs
4bf195ee71
Some parts of the system still depend on the Lisp memory being initialized to zero. Ensure that that happens.
...
modified: src/ldsout.c
2020-09-19 22:05:06 -07:00
Nick Briggs
cb1b3c65e8
Helpers for BITBLT and BLTSHADE need to return ATOM_T rather than T. Ref issue #35
...
modified: src/bbtsub.c
2020-09-19 19:21:14 -07:00
Nick Briggs
a5e70206fc
Fix free list construction in new cons page to explicitly initialize ALL cons cells on the page (Ref issue #34 )
...
Update comments, correct spelling errors, simplify style, note some areas for future work.
modified: src/conspage.c
2020-09-18 15:07:10 -07:00
Nick Briggs
b1790bb7fe
Remove extraneous external/forward declarations that are duplicates of those in "xxxdefs.h" files.
...
modified: src/allocmds.c
modified: src/array5.c
modified: src/car-cdr.c
modified: src/dbgtool.c
modified: src/ether.c
modified: src/gc2.c
modified: src/gcfinal.c
modified: src/gcmain3.c
modified: src/gcrcell.c
modified: src/initkbd.c
modified: src/initsout.c
modified: src/keyevent.c
modified: src/keylib.c
modified: src/keymaker.c
modified: src/keytst.c
modified: src/loopsops.c
modified: src/lsthandl.c
modified: src/main.c
modified: src/mkatom.c
modified: src/mkcell.c
modified: src/mvs.c
modified: src/storage.c
modified: src/testtool.c
modified: src/unixcomm.c
modified: src/vars3.c
modified: src/xc.c
modified: src/z2.c
2020-09-17 23:07:56 -07:00
Nick Briggs
33ad64f45b
Reorganize cdr implementation to move error test to front, early check for (cdr nil), reduce number of else clauses, reduce indentation.
2020-09-17 18:58:25 -07:00
Nick Briggs
2b02c15982
Note places where undefined behavior is detected by the UB sanitizer
...
Comments only, no functional changes.
modified: src/arith2.c
modified: src/arith3.c
modified: src/arith4.c
modified: src/xc.c
2020-09-17 18:24:54 -07:00
Nick Briggs
b68ecc73b9
Fix possible reference to undefined variable.
...
modified: src/unixfork.c
2020-09-06 12:28:27 -07:00