Thread View: comp.sources.atari.st
1 messages
1 total messages
Started by Steven Grimm
Sun, 24 Apr 1988 17:45
v01i017: Dummy routines for shrinking Megamax executables
Author: Steven Grimm
Date: Sun, 24 Apr 1988 17:45
Date: Sun, 24 Apr 1988 17:45
34 lines
1271 bytes
1271 bytes
Submitted-by: braner@tcgould.tn.cornell.edu (Moshe Braner)
Posting-number: Volume 1, Issue 17
Archive-name: mmdummy
/*
* MMDUMMY
*
* This file defines as stubs the functions Megamax (1.1) insists on
* linking to all programs. If your program does not use UNIX-like
* I/O, but rather calls GEMDOS, BIOS, XBIOS routines, then linking
* to this file (compiled) will cut the size of the executable file.
* For example, the program "main(){Cconws("Hello, world!\r\n");}"
* compiles into 410 bytes instead of 1810. First type "mmcc mmdummy.c".
* Save mmdummy.o. Later type: "mmlink myprog.o mmdummy.o".
*
* - by Moshe Braner, 871212
*/
#include <osbind.h>
open(){}
lseek(){}
fgetc(){}
ungetc(){}
getw(){}
fputc(){}
putw(){}
write(){}
fflush(){}
fclose(){}
close(){}
_exit(n) int n; { Pterm(n); }
exit(n) int n; { _exit(n); }
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads