1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-17 08:33:48 +00:00

47 Commits

Author SHA1 Message Date
Nick Briggs
9821329ec0 Move SYSVONLY define from version.h to the individual makefiles for Linux
Add makefile for Linux on x86_64 platforms
Remove include <stropts.h> for Linux as modern systems have dropped this
Adjust code to account for fcntl() vs ioctl() for generating signals on X I/O
Adjust includes for time related include files for modern Linux systems

	modified:   bin/makefile-linux.386-x
	new file:   bin/makefile-linux.x86_64-x
	modified:   inc/version.h
	modified:   src/mkvdate.c
	modified:   src/timer.c
2020-08-03 20:19:02 -07:00
Nick Briggs
832f76f56b Take NOETHER out of SunOS5 (Solaris) configuration so the network is accessible.
Fix ldeether.c main program so that if NOETHER is present without removing the dlpi.o dependency it still links.

	modified:   inc/version.h
	modified:   src/ldeether.c
2020-07-26 20:35:18 -04:00
Nick Briggs
a3a14577be Ensure that on Sun systems s_char type is signed char now that char is otherwise forced to be unsigned.
modified:   inc/version.h
2020-07-16 16:37:42 -07:00
Nick Briggs
a6e09351d6 Turn off compiling for ethernet interface in SunOS5 by default until the rest of the system works
modified:   inc/version.h
2020-07-15 14:56:40 -07:00
Nick Briggs
82090e5c3d Go with the more BSD flavor of Solaris and don't redefine index/rindex/bcopy/etc
modified:   inc/version.h
2020-07-12 18:03:54 -07:00
Nick Briggs
2f8789f423 Don't redefine MAXNAMLEN if it previously been defined by the system
modified:   inc/locfile.h
2020-07-12 18:02:06 -07:00
Nick Briggs
123520adf8 define symbols are OS5/OS4 not SUNOS5/SUNOS4
modified:   ../inc/os.h
2020-07-12 17:01:16 -07:00
Nick Briggs
6aa938d453 Relocate MAXNAMLEN definition to proper home in locfile.h
Remove selection of SYSVONLY for macOS and FreeBSD compilation (they are BSD flavor)

	modified:   inc/locfile.h
	modified:   inc/version.h
2020-07-12 16:04:11 -07:00
Nick Briggs
ac6bef0fab GETBYTE macro returns value with signedness of char in BYTESWAP configurations but signedness of argument in non-BYTESWAP ones.
Replace use of GETBYTE macro in Get_SBYTE_PCMAC[01] macros as we cannot rely on passing signed argument type to get signed result.

	modified:   inc/inlineC.h
	modified:   inc/lsptypes.h
2018-11-15 15:57:42 -08:00
Nick Briggs
4a01c6c74e Qualified void return declarations are prohibited (e.g., inline const void vs. inline void).
Fix various asm() syntax errors with missing line continuations.

	modified:   inc/inlnPS2.h
2018-11-15 15:22:44 -08:00
Nick Briggs
f85e43804a Tidy up the source to remove forward reference, remove dead code, fix formatting.
modified:   inc/XKeymap.h
	modified:   src/initkbd.c
2018-04-29 19:40:52 -07:00
Nick Briggs
32651f2f10 Provide correct definition for gcreccell() in gc.h to avoid implicit function definition warnings in gcmain3.c 2018-03-23 12:17:37 -07:00
Nick Briggs
c6ed74d94b Remove unused variable.
modified:   ../inc/bb.h
2017-07-18 19:02:25 -07:00
Nick Briggs
1da1a2cf10 Fix formatting in comment. inc/lspglob.h 2017-07-18 18:29:55 -07:00
Nick Briggs
c06ba98144 Create bbtsub.h to declare functions defined in bbtsub.c
Update files that depend on bbtsub functions to include bbtsub.h
Declare as static all functions in bbtsub.c that are not needed externally.
Add dependencies to makefile-tail.

	new file:   ../inc/bbtsub.h
	modified:   ../src/bbtsub.c
	modified:   ../src/colorbltfns.c
	modified:   ../src/draw.c
	modified:   ../src/misc7.c
	modified:   ../src/rawcolor.c
	modified:   ../src/subr.c
2017-07-03 16:29:06 -07:00
Nick Briggs
b6bd2ed29f Create storage.h to declare functions defined in storage.c
Update files that depend on storage functions to include storage.h
Declare as static all functions in storage.c that are not needed externally.
Add dependencies to makefile-tail.

	modified:   makefile-tail
	new file:   ../inc/storage.h
	modified:   ../src/allocmds.c
	modified:   ../src/gchtfind.c
	modified:   ../src/llstk.c
	modified:   ../src/main.c
	modified:   ../src/storage.c
	modified:   ../src/subr.c
2017-07-02 21:21:50 -07:00
Nick Briggs
d0fac53d10 Fixups for functions defined by dspsubrs.c to dspsubrs.h. Update subr.c and gcr.c 2017-06-30 20:31:53 -07:00
Nick Briggs
3517321b20 Fixups for functions defined by chardev.c in chardev.h. Update subr.c 2017-06-30 20:23:46 -07:00
Nick Briggs
5d8c90cf18 Fix up for inc/ufs.h.
Add return.c external functions to inc/return.h (previously only macros) and update
    makefile-tail and relevant files.

	modified:   makefile-tail
	modified:   ../inc/return.h
	new file:   ../inc/ufs.h
	modified:   ../src/bbtsub.c
	modified:   ../src/dir.c
	modified:   ../src/dsk.c
	modified:   ../src/intcall.c
	modified:   ../src/subr.c
	modified:   ../src/ufs.c
	modified:   ../src/vmemsave.c
	modified:   ../src/xc.c
2017-06-30 20:10:38 -07:00
Nick Briggs
35b4ad4350 Fix ups for new llstk.h.
modified:   bin/makefile-darwin.386-x
	modified:   bin/makefile-tail
	new file:   inc/llstk.h
	modified:   src/gcfinal.c
	modified:   src/hardrtn.c
	modified:   src/llstk.c
	modified:   src/uraid.c
	modified:   src/xc.c
	modified:   src/xc.c.orig
2017-06-30 17:42:46 -07:00
Nick Briggs
b7b658e8d3 Create dir.h to declare functions defined in dir.c
Update files that depend on dir functions to include dir.h
Declare as static all functions in dir.c that are not needed externally.
Add dependencies to makefile-tail.

	modified:   bin/makefile-tail
	new file:   inc/dir.h
	modified:   src/dir.c
	modified:   src/dsk.c
	modified:   src/main.c
	modified:   src/subr.c
	modified:   src/vmemsave.c
2017-06-30 15:48:18 -07:00
Nick Briggs
730ff30b86 Create unixfork.h to declare functions defined in unixfork.c
Update files that depend on unixfork functions to include unixfork.h
Declare as static all functions in unixfork.c that are not needed externally.
Add dependencies to makefile-tail.

	modified:   makefile-tail
	new file:   ../inc/unixfork.h
	modified:   ../src/ldeboot.c
	modified:   ../src/main.c
	modified:   ../src/unixfork.c
2017-06-30 15:10:52 -07:00
Nick Briggs
2f0aa254aa Create dsk.h to declare functions defined in dsk.c
Update files that depend on dsk functions to include dsk.h
Declare as static all functions in dsk.c that are not needed externally.
Add dependencies to makefile.

	modified:   makefile-tail
	new file:   ../inc/dsk.h
	modified:   ../src/dir.c
	modified:   ../src/dsk.c
	modified:   ../src/subr.c
	modified:   ../src/ufs.c
	modified:   ../src/vmemsave.c
2017-06-30 11:53:55 -07:00
Nick Briggs
0371f19167 Create conspage.h to declare functions defined in conspage.c
Update files that depend on conspage functions to include conspage.h
Declare as static all functions in conspage.c that are not needed externally.
Add dependencies to makefile.

	modified:   bin/makefile-darwin.386-x
	modified:   bin/makefile-tail
	new file:   inc/conspage.h
	modified:   src/conspage.c
	modified:   src/mvs.c
	modified:   src/rplcons.c
	modified:   src/xc.c
	modified:   src/z2.c
2017-06-29 22:33:35 -07:00
Nick Briggs
d450521ffd Reformat cell.h 2017-06-29 22:31:11 -07:00
Nick Briggs
cfd0711a73 Create car-cdr.h to declare functions defined in car-cdr.c
Update files that depend on car-cdr functions to include car-cdr.h.
    Add dependencies to makefile.

	modified:   makefile-darwin.386-x
	modified:   makefile-init.386
	modified:   makefile-tail
	new file:   ../inc/car-cdr.h
	modified:   ../src/bbtsub.c
	modified:   ../src/car-cdr.c
	modified:   ../src/dsk.c
	modified:   ../src/gcarray.c
	modified:   ../src/gcrcell.c
	modified:   ../src/kprint.c
	modified:   ../src/loopsops.c
	modified:   ../src/lsthandl.c
	modified:   ../src/mvs.c
	modified:   ../src/storage.c
	modified:   ../src/sxhash.c
	modified:   ../src/vars3.c
	modified:   ../src/xc.c
	modified:   ../src/z2.c
2017-06-29 22:24:33 -07:00
Nick Briggs
7c9b9d22c6 Create uraid.h to declare functions defined in uraid.c.
Update files that depend on these uraid functions to include uraid.h.
Add dependencies to makefile.

	modified:   bin/makefile-tail
	new file:   inc/uraid.h
	modified:   src/common.c
	modified:   src/truecolor.c
	modified:   src/unwind.c
	modified:   src/uraid.c
	modified:   src/uutils.c
2017-06-29 18:31:47 -07:00
Nick Briggs
0445e61fde Add prototypes for flush_display_region...() to display.h
Correct declared argument types in flush_display_region...() to match usage.

	modified:   inc/display.h
	modified:   src/initdsp.c
2017-06-26 21:33:03 -07:00
Nick Briggs
f319f2edd4 MacOS and FreeBSD (at least on x86) support unaligned fetch.
Clean up (re)definition of getrusage/getpagesize/getwd for POSIX systems"

	modified:   inc/version.h
2017-06-26 21:27:37 -07:00
Nick Briggs
1d818f1ec9 Don't declare getenv explicitly in inc/lispemul.h 2017-06-26 21:24:37 -07:00
Nick Briggs
cef5b57a9d Correct spelling of ...visible (was ...vissible) in all source files.
modified:   ../inc/bitblt.h
	modified:   ../inc/devif.h
	modified:   ../src/bitblt.c
	modified:   ../src/dosmouse.c
	modified:   ../src/dspif.c
	modified:   ../src/initdsp.c
	modified:   ../src/keyevent.c
	modified:   ../src/vesafns.asm
	modified:   ../src/vesainit.c
	modified:   ../src/vgainit.c
	modified:   ../src/vmemsave.c
	modified:   ../src/xbbt.c
	modified:   ../src/xc.c
	modified:   ../src/xc.c.orig
	modified:   ../src/xinit.c
	modified:   ../src/xlspwin.c
	modified:   ../src/xscroll.c
	modified:   ../src/xwinman.c
2017-06-22 23:32:22 -07:00
Nick Briggs
ef3fbc29fc Add extern declaration for "flushing", a flag to enable/disable calls to fflush(stdout)
after each call to printf() in the debug/tracing code.  Too frequent calls slow things down.

	modified:   inc/dbprint.h
	modified:   src/main.c
2017-06-14 17:53:13 -07:00
Nick Briggs
8d42e7791f Merge branch 'freebsd' 2017-06-08 11:23:40 -07:00
Nick Briggs
04b0b3ee0b Add new include file xscroll.h defining the Scroll functions implemented in xscroll.c
and used in xwinman.c
Update function declarations from K&R style to new style.
Fix incorrect argument counts for some procedure calls.

	new file:   ../inc/xscroll.h
	modified:   xscroll.c
	modified:   xwinman.c
2017-06-07 23:53:03 -07:00
Nick Briggs
6595e9f7b1 Add braces to suppress dangling else warning.
modified:   inc/tosfns.h
2017-06-07 20:39:27 -07:00
Nick Briggs
b6c93b9039 Reformat XKeymap.h 2017-06-06 16:25:12 -07:00
Nick Briggs
fac5b4d4b0 References to 'isfinite()' require #include <math.h> 2017-05-28 21:42:38 -07:00
Nick Briggs
fe2014d064 Prefer non-deprecated isfinite() over finite() for FP result check. 2017-05-28 19:47:30 -07:00
Nick Briggs
691645d048 Fix missing return types on functions, convert some functions with always ignored results to void. 2017-05-28 15:08:42 -07:00
Nick Briggs
72c8cd14af MacOS and FreeBSD have similar configurations, define WAITINT because status uses int status now. 2017-05-24 17:20:23 -07:00
Nick Briggs
2bf281cefb Clean up \#ifdefs. Add entry for FPTEST/FPCLEAR for MacOS and FreeBSD 2017-05-24 15:22:05 -07:00
Nick Briggs
e0195ec664 Rearrange code to avoid forward references. Fix missing void types. PAGE_SIZE collides with system definitions on some systems, rename it. 2017-05-24 15:20:42 -07:00
Nick Briggs
944083e433 MacOS(darwin) has seteuid() and getrusage()/getpagesize()/getwd() so don't #define them 2017-05-22 15:55:10 -07:00
Nick Briggs
3841aadba3 Parenthesize constant expression defines to avoid later operator precedence warnings/errors. 2017-05-22 15:15:08 -07:00
Nick Briggs
6782d343cc Fix warning for comment inside comment 2017-05-20 15:23:28 -07:00
Nick Briggs
5a702e808a Patches that made it possible to compile on MacOS X as of Nov 13, 2011. 2015-04-20 21:14:32 -07:00
Nick Briggs
de170a64d9 Maiko sources matching state as of 020102 prior to initial patching for Mac OSX 2015-04-20 18:53:52 -07:00