1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 07:54:13 +00:00

129 Commits

Author SHA1 Message Date
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
5a520095c2 MacOS doesn't have stime() even though it has many SysV features 2017-06-26 21:32:30 -07:00
Nick Briggs
913a45daf7 Add include unistd.h to various files that need it. 2017-06-26 21:31:23 -07:00
Nick Briggs
7c1e783509 fix missing return type on fork_Unix. Declare time() -- where does it really come from? 2017-06-26 21:29:39 -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
67ce5bf714 Add makefile for init on (MacOS) x86 system.
Ignore the init.386 directory that "makeright init" will write to.

	modified:   ../.gitignore
	new file:   makefile-init.386
2017-06-25 18:28:39 -07:00
Nick Briggs
e84246e1a8 Clean up compiler options, use gcc89 standard.
Remove extraneous dependencies for assembler optimized code in dispatch

	modified:   bin/makefile-darwin.386-x
2017-06-25 18:22:59 -07:00
Nick Briggs
a0edc850bb Clean up variable setting -- we're running with /bin/sh (not csh) so don't use "set var = value".
modified:   bin/makeright
2017-06-25 18:20:14 -07:00
Nick Briggs
1867f69be9 Use | instead of + when or-ing shifted partial words to encourage
compiler to use roll instruction on x86

	modified:   src/byteswap.c
2017-06-25 18:13:09 -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
afb6ae3397 Remove junk file hasbcopy. 2017-06-22 19:13:18 -07:00
Nick Briggs
91dc1d7410 Fix some files with CRLF (DOS) line endings to have LF (Unix).
modified:   doskbd.c
	modified:   launch.asm
	modified:   lpkit.c
	modified:   lplexyy.c
	modified:   lpytab.c
	modified:   mouseif.c
2017-06-22 19:09:55 -07:00
Nick Briggs
5481a14812 Replace all K&R style function definitions with new-style function definitions.
Add some missing default function result types (int).
Add some missing void result types where appropriate.

	modified:   src/Cldeetr.c
	modified:   src/atom.c
	modified:   src/bbtsub.c
	modified:   src/bitblt.c
	modified:   src/byteswap.c
	modified:   src/chardev.c
	modified:   src/chatter.c
	modified:   src/colorbltfns.c
	modified:   src/common.c
	modified:   src/dir.c
	modified:   src/dlpi.c
	modified:   src/doskbd.c
	modified:   src/dosmouse.c
	modified:   src/draw.c
	modified:   src/dsk.c
	modified:   src/dspsubrs.c
	modified:   src/ejlisp.c
	modified:   src/ether.c
	modified:   src/imagefile.c
	modified:   src/imagefile2.c
	modified:   src/inet.c
	modified:   src/initdsp.c
	modified:   src/initkbd.c
	modified:   src/kbdsubrs.c
	modified:   src/ldeboot.c
	modified:   src/llcolor.c
	modified:   src/llstk.c
	modified:   src/loader.c
	modified:   src/loopsops.c
	modified:   src/lpdual.c
	modified:   src/lpmain.c
	modified:   src/lpread.c
	modified:   src/lptran.c
	modified:   src/lpwrite.c
	modified:   src/main.c
	modified:   src/misc7.c
	modified:   src/mkatom.c
	modified:   src/mnwevent.c
	modified:   src/mnxmeth.c
	modified:   src/mouseif.c
	modified:   src/ocr.c
	modified:   src/ocrproc.c
	modified:   src/oether.c
	modified:   src/oldeether.c
	modified:   src/osmsg.c
	modified:   src/picture.c
	modified:   src/rawcolor.c
	modified:   src/rawrs232c.c
	modified:   src/rpc.c
	modified:   src/rs232c.c
	modified:   src/socdvr.c
	modified:   src/socket.c
	modified:   src/testdsp.c
	modified:   src/testtool.c
	modified:   src/timeoday.c
	modified:   src/timeofday.c
	modified:   src/timer.c
	modified:   src/truecolor.c
	modified:   src/tty.c
	modified:   src/ufn.c
	modified:   src/ufs.c
	modified:   src/unixcomm.c
	modified:   src/unixfork.c
	modified:   src/unwind.c
	modified:   src/uraid.c
	modified:   src/vesainit.c
	modified:   src/vgainit.c
	modified:   src/vmemsave.c
	modified:   src/xcursor.c
	modified:   src/xinit.c
	modified:   src/xlspwin.c
	modified:   src/xmkicon.c
	modified:   src/xrdopt.c
	modified:   src/xwinman.c
2017-06-22 17:31:40 -07:00
Nick Briggs
b578b38c78 Include unistd.h for lseek() and friends.
Convert from K&R style function definition.

	modified:   src/ldsout.c
2017-06-21 17:58:22 -07:00
Nick Briggs
f4c3e56a82 Reduce verbosity of opcode tracing so that trace files are more manageable size.
modified:   src/xc.c
2017-06-14 18:06:04 -07:00
Nick Briggs
97d4ba3a0e Announce uRaid entry on stderr in case stdout has been redirected
to collect trace output.  Also fflush() stdout & stderr
	 so that we see any buffered output when we enter.

	modified:   src/common.c
2017-06-14 18:03:35 -07:00
Nick Briggs
ac43bc3755 DBPRINT macro does not accept a FILE* as an argument. It expands to printf().
modified:   src/vmemsave.c
2017-06-14 17:59:59 -07:00
Nick Briggs
e360a64c42 Have "a" (GETTOPVAL) and "d" (GETDEFCELL) commands announce the atom index
of the atom they are working on.

	modified:   src/uraid.c
2017-06-14 17:58:20 -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
467d33d913 makefile cleanup target should also remove lde executable. 2017-06-09 14:08:39 -07:00
Nick Briggs
8d42e7791f Merge branch 'freebsd' 2017-06-08 11:23:40 -07:00
Nick Briggs
208bce9b40 Use unsigned instead of int where, on modern systems, socklen_t would be appropriate. 2017-06-08 11:21:23 -07:00
Nick Briggs
eae092e02b Initialize keystring as empty string.
Declare help string as const.
Print the helpstring through a %s format rather than using it directly.
Don't bother to check the address of allocated keystring for NULL.

	modified:   main.c
2017-06-08 08:46:54 -07:00
Nick Briggs
224e6478bd Fix warning for comment within comment.
modified:   vmemsave.c
2017-06-08 08:24:41 -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
9ea244b927 Use correct type (unsigned) for message length.
modified:   rpc.c
2017-06-07 21:21:15 -07:00
Nick Briggs
2c3fb229d1 Add braces to suppress dangling else warning.
modified:   vars3.c
2017-06-07 20:54:52 -07:00
Nick Briggs
3d47027d31 Clean up error message for case where sysout is not integral number of pages.
Correct format string (%lx) for size of argument (long).

	modified:   ldsout.c
2017-06-07 20:50:30 -07:00
Nick Briggs
ce13dce279 Convert 0x%x to %p where appropriate.
modified:   llstk.c
2017-06-07 20:40:43 -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
25b0a24e3f Convert from K&R style parameter declaration to modern.
modified:   keyevent.c
2017-06-07 20:18:47 -07:00
Nick Briggs
154d07edce Remove unused argument from printf().
modified:   initkbd.c
2017-06-07 20:11:57 -07:00
Nick Briggs
1b7a7fc6fc Correct format strings and arguments.
modified:   gcarray.c
2017-06-07 20:09:11 -07:00
Nick Briggs
f4f9118a7c Add casts to match calculations to format specifier.
modified:   gccode.c
2017-06-07 20:03:31 -07:00
Nick Briggs
4fe917e2d8 Fix unsequenced modification and access to 'addr'
Fix incorrect format string for type, replacing 0x%x with %p.

	modified:   gcfinal.c
2017-06-07 19:59:00 -07:00
Nick Briggs
9510746af4 Add comment regarding return from NewEntry macro.
modified:   gchtfind.c
2017-06-07 19:57:40 -07:00
Nick Briggs
409f1f5987 Add missing comment closing delimiter to suppress warning for nested comments.
modified:   gcr.c
2017-06-07 18:37:15 -07:00
Nick Briggs
e2264ff1f9 Add braces to suppress warning for dangling else clause.
modified:   gcoflow.c
2017-06-07 18:33:53 -07:00
Nick Briggs
0dc8820060 Add "l" qualifiers to printf format strings for long types.
modified:   dspif.c
2017-06-07 17:51:48 -07:00
Nick Briggs
de2ae84bfc Explicitly cast cursor bitmap to char * to match XCreatePixmapFromBitmapData
modified:   xcursor.c
2017-06-07 17:42:50 -07:00
Nick Briggs
118a3e7750 Correct signedness of window parameters used in XParseGeometry.
Signed x, y, Unsigned width, height.

	modified:   xinit.c
	modified:   xlspwin.c
	modified:   xrdopt.c
2017-06-07 17:19:02 -07:00
Nick Briggs
1dadac1888 Clean up types (long unsigned int => unsigned long).
Add "l" qualifiers to printf format strings for long types.
Rewrite input string handling in keymaker.c to get rid of unsafe gets().
2017-06-07 16:58:45 -07:00
Nick Briggs
ac563a69f3 Replace 0x%x with %p for pointer output in error messages. %p arrived in C89. 2017-06-07 14:33:31 -07:00
Nick Briggs
4eaf562a8a Add parentheses to correct interpretation of word-alignment check due to operator precedence confusion. 2017-06-07 14:21:10 -07:00