mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-25 08:20:03 +00:00
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
This commit is contained in:
@@ -37,9 +37,7 @@ static char *id = "$Id: byteswap.c,v 1.5 2002/01/02 08:15:16 sybalsky Exp $ Copy
|
||||
|
||||
/****************************************************************/
|
||||
/* */
|
||||
/* Byte-swap a single 2-byte word */
|
||||
/* (Name used for general-purpose byte swaps, rather */
|
||||
/* than for fixing up byte-swapped machines) */
|
||||
/* swap halves of a single 4-byte word */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
unsigned int swapx(unsigned int word) {
|
||||
@@ -51,7 +49,7 @@ unsigned int swapx(unsigned int word) {
|
||||
/* Byte-swap a single 2-byte word */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
unsigned short byte_swap_word(short unsigned int word) {
|
||||
unsigned short byte_swap_word(unsigned short word) {
|
||||
return (((word >> 8) & 0xff) + ((word & 0xff) << 8));
|
||||
}
|
||||
|
||||
@@ -78,7 +76,7 @@ unsigned int word_swap_longword(word)
|
||||
/* This does NOT swap words in a long-word! */
|
||||
/* */
|
||||
/****************************************************************/
|
||||
void byte_swap_page(short unsigned int *page, int wordcount) {
|
||||
void byte_swap_page(unsigned short *page, int wordcount) {
|
||||
int i;
|
||||
for (i = 0; i < wordcount; i++) { *(page + i) = byte_swap_word(*(page + i)); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user