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

96 Commits

Author SHA1 Message Date
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
Nick Briggs
cea2223dae Convert to modern parameter declaration style. 2017-06-07 12:08:23 -07:00
Nick Briggs
24d210f8d3 Initialize various X structures to 0 as not all fields are explicitly set. Remove PPosition from size hints as we don't set position. 2017-06-07 12:07:23 -07:00
Nick Briggs
b647f69497 Add missing include stdio.h, only required if DEBUG or TRACE is defined, but doesn't hurt. 2017-06-07 12:03:28 -07:00
Nick Briggs
b033302d2a Remove duplicate #defines for items that are in display.h 2017-06-07 12:00:08 -07:00
Nick Briggs
9f01c92438 Fix erroneous assignment instead of comparison in if-expression. 2017-05-29 12:13:35 -07:00
Nick Briggs
9911a80bef Fix warning for /* within comment block 2017-05-29 11:57:59 -07:00
Nick Briggs
193d1ce6c2 Handle missing sysout name as intended. 2017-05-29 11:52:26 -07:00
Nick Briggs
fac5b4d4b0 References to 'isfinite()' require #include <math.h> 2017-05-28 21:42:38 -07:00
Nick Briggs
203d02caed Correct unsequenced modification and access to 'base' 2017-05-28 21:38:51 -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
e08d3ce887 Wrap assignments used as if-condition in parens to suppress warning. 2017-05-28 19:46:39 -07:00
Nick Briggs
eb4337fdc2 Restore signal handler setup. 2017-05-28 19:38:08 -07:00
Nick Briggs
a6f00921ca condition and increment reversed in for-loop. 2017-05-28 19:35:13 -07:00
Nick Briggs
349b2566da Fix UDP send case to handle errors correctly whether BYTESWAP is defined or not (like TCP send) 2017-05-28 19:29:59 -07:00
Nick Briggs
156c3292f8 Reformat all C source files with Clang-format in Google style w/ 100 col width. 2017-05-28 18:08:18 -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
65ddb5a968 Add force flag to cleanup rm command, not everything may be present when we clean up. 2017-05-28 15:06:28 -07:00
Nick Briggs
cb285809a1 Add -Wall to default compiler options on FreeBSD. 2017-05-28 15:05:51 -07:00
Nick Briggs
0272578b69 Ignore *.core files 2017-05-28 14:53:02 -07:00
Nick Briggs
ce2fa3a119 Cleanup warnings for missing/wrong include files 2017-05-25 15:48:08 -07:00
Nick Briggs
e859670886 correct signal handler type for MacOS and FreeBSD int_timer_service. 2017-05-25 13:10:43 -07:00
Nick Briggs
a8fe2094fe FreeBSD now uses dirent.h rather than sys/dir.h 2017-05-25 13:09:39 -07:00
Nick Briggs
02569edbe0 First cleanup to get to compiling (warnings, no errors) FreeBSD 2017-05-25 12:51:47 -07:00
Nick Briggs
be2101ac49 FreeBSD has just plain <termios.h> 2017-05-24 21:00:10 -07:00
Nick Briggs
4e6bbcbc1d Use C-style comments only. 2017-05-24 19:19:34 -07:00
Nick Briggs
60374cf5cb Ignore FreeBSD build directories 2017-05-24 19:16:06 -07:00
Nick Briggs
e311f51fdb FreeBSD behaves similarly to MacOS for tcgetattr/tcsetattr 2017-05-24 19:15:12 -07:00
Nick Briggs
15d00637fd Correct return type of lcfuncall to LispPTR. Remove call to DOSTACKOVERFLOW which can't be called in function that is not void return type. 2017-05-24 18:09:21 -07:00
Nick Briggs
8adfe96bd2 Add check for defined(WAITINT) to control whether wait status is int * for cases where SYSVONLY isn't appropriate 2017-05-24 18:02:35 -07:00
Nick Briggs
0557f1a4cd Reformat with clang-format to improve readability.
Add forward declaration for ccfuncall changing to void type.
Change bitbltsub return type to void to be consistent with usage.
Change bltchar return type to void to be consistent with usage.
Change newbltchar return type to void to be consistent with usage. XXX: alternative version not updated yet.
Change tedit_bltchar return type to void to be consistent with usage.
2017-05-24 17:48:23 -07:00
Nick Briggs
254193baab Add missing void declaration. 2017-05-24 17:32:41 -07:00