mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-13 19:34:33 +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:
19
src/loader.c
19
src/loader.c
@@ -46,7 +46,7 @@ char *malloc();
|
||||
C[length] = '\0'; \
|
||||
}
|
||||
|
||||
int dynamic_load_code(args) LispPTR *args;
|
||||
int dynamic_load_code(LispPTR *args)
|
||||
/* args[0]: LispPTR to file name.
|
||||
args[1]: native addr of where to load the code
|
||||
|
||||
@@ -65,8 +65,7 @@ return_error:
|
||||
return (NIL_PTR);
|
||||
}
|
||||
|
||||
load_native_object(load_address, dynamic_file) unsigned load_address;
|
||||
char *dynamic_file;
|
||||
load_native_object(unsigned load_address, char *dynamic_file)
|
||||
{
|
||||
int load_length, entry_point;
|
||||
typedef char *charstrptr;
|
||||
@@ -99,7 +98,7 @@ char *dynamic_file;
|
||||
|
||||
/* **** system call subr, living in sb_OLD_COMPILE_LOAD_NATIVE slot *** */
|
||||
|
||||
int do_system_call(arg) LispPTR arg;
|
||||
int do_system_call(LispPTR arg)
|
||||
{
|
||||
char cmd_str[512];
|
||||
register int result;
|
||||
@@ -118,11 +117,8 @@ int do_system_call(arg) LispPTR arg;
|
||||
|
||||
/* ****** stuff below is old & should be removed when the subr is *** */
|
||||
|
||||
int dynamic_load(host_file, dynamic_file, load_address, needs_compile, needs_link,
|
||||
do_load) char *host_file,
|
||||
*dynamic_file;
|
||||
unsigned load_address, needs_compile, needs_link, do_load;
|
||||
|
||||
int dynamic_load(char *host_file, char *dynamic_file, unsigned load_address, unsigned needs_compile, unsigned needs_link,
|
||||
unsigned do_load)
|
||||
{
|
||||
int result = 0;
|
||||
char fnamec[80], fnameo[80], fnameil[80], cc_str[255], ld_str[255];
|
||||
@@ -161,7 +157,7 @@ unsigned load_address, needs_compile, needs_link, do_load;
|
||||
|
||||
} /*dynamic_load */
|
||||
|
||||
exec_command(cmd_str) char *cmd_str;
|
||||
int exec_command(char *cmd_str)
|
||||
{
|
||||
typedef char *charstrptr;
|
||||
typedef charstrptr charstrlist[21];
|
||||
@@ -176,8 +172,7 @@ exec_command(cmd_str) char *cmd_str;
|
||||
|
||||
} /*exec_command */
|
||||
|
||||
load_object(load_address, dynamic_file) unsigned load_address;
|
||||
char *dynamic_file;
|
||||
int load_object(unsigned load_address, char *dynamic_file)
|
||||
{
|
||||
int load_length, entry_point;
|
||||
typedef char *charstrptr;
|
||||
|
||||
Reference in New Issue
Block a user