/programs/develop/libraries/menuetlibc/include/assert.h |
---|
4,7 → 4,11 |
#undef assert |
#undef unimpl |
#ifdef NDEBUG |
#define assert(test) /*nothing*/ |
#else |
#define assert(test) ((void)((test)||(__dj_assert(#test,__FILE__,__LINE__),0))) |
#endif |
#define unimpl() __dj_unimp("Called unimplemented function in file \"" __FILE__ "\"\n") |
#ifndef __dj_include_assert_h_ |
/programs/develop/libraries/menuetlibc/include/time.h |
---|
10,10 → 10,7 |
#ifndef __dj_ENFORCE_ANSI_FREESTANDING |
/* 65536(tics/hour) / 3600(sec/hour) * 5(scale) = 91.02 |
The 5 is to make it a whole number (18.2*5=91) so that |
floating point ops aren't required to use it. */ |
#define CLOCKS_PER_SEC 91 |
#define CLOCKS_PER_SEC 100 |
#include <sys/djtypes.h> |
/programs/develop/libraries/menuetlibc/src/libc/Tupfile.lua |
---|
68,7 → 68,7 |
"termios", |
} |
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2" |
CFLAGS="-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx" |
OBJS={} |
for i,v in ipairs(FOLDERS) do |
tup.append_table(OBJS, |
/programs/develop/libraries/menuetlibc/src/libc/ansi/stdio/printf.c |
---|
1,5 → 1,6 |
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
#include <stdio.h> |
#include <stdarg.h> |
#include <libc/file.h> |
int |
/programs/develop/libraries/menuetlibc/src/libc/ansi/stdio/sprintf.c |
---|
1,5 → 1,6 |
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */ |
#include <stdio.h> |
#include <stdarg.h> |
#include <limits.h> |
#include <libc/file.h> |
/programs/develop/libraries/menuetlibc/src/libc/crt0/crt1.c |
---|
36,7 → 36,6 |
void __crt1_startup(void) |
{ |
init_brk(); |
if(__menuet__app_param_area[0]!='\0') |
__crt0_setup_arguments(); |
dosemu_inithandles(); |
init_dir_stack(); |
/programs/develop/libraries/menuetlibc/src/libc/pc_hw/timer/clock.c |
---|
6,5 → 6,7 |
clock_t clock(void) |
{ |
return 0; |
unsigned result; |
__asm__ __volatile__("int $0x40" : "=a"(result) : "a"(26), "b"(9)); |
return result; |
} |
/programs/develop/libraries/menuetlibc/src/libcpp/Tupfile.lua |
---|
1,5 → 1,5 |
if tup.getconfig('NO_GCC') ~= "" then return end |
CFLAGS = "-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2" |
CFLAGS = "-Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx" |
OBJS = tup.foreach_rule({"*.cpp", extra_inputs = {"../../config.h"}}, |
'kos32-gcc -c -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" ' .. CFLAGS .. " -o %o %f", |
"%B.o") |
/programs/develop/libraries/menuetlibc/src/libm/Tupfile.lua |
---|
1,5 → 1,5 |
if tup.getconfig('NO_GCC') ~= "" then return end |
CFLAGS="-D_USE_LIBM_MATH_H -Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2" |
CFLAGS="-D_USE_LIBM_MATH_H -Os -fno-stack-check -fno-stack-protector -mno-stack-arg-probe -fno-ident -fomit-frame-pointer -fno-asynchronous-unwind-tables -mpreferred-stack-boundary=2 -march=pentium-mmx" |
OBJS = tup.foreach_rule({"*.c", extra_inputs = {"../../config.h"}}, |
'kos32-gcc -c -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" ' .. CFLAGS .. ' -o %o %f', |
"%B.o") |
/programs/develop/libraries/menuetlibc/src/libm/k_standa.c |
---|
28,7 → 28,7 |
#undef fflush |
#endif /* !defined(_USE_WRITE) */ |
inline int fputs(const char* str, FILE* f) { return -1; } |
#define fputs /*nothing*/ |
#ifdef __STDC__ |
static const double zero = 0.0; /* used as const */ |