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
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
06b9d1fc1f
Reformat at width=120, seems to work better for initialization tables.
2017-06-06 17:25:11 -07:00
Nick Briggs
b6c93b9039
Reformat XKeymap.h
2017-06-06 16:25:12 -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