Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5097 → Rev 5098

/programs/develop/libraries/menuetlibc/src/libc/Tupfile.lua
0,0 → 1,85
if tup.getconfig("NO_GCC") ~= "" then return end
FOLDERS = {
"ansi/assert",
"ansi/ctype",
"ansi/errno",
"ansi/locale",
"ansi/math",
"ansi/setjmp",
"ansi/stdio",
"ansi/stdlib",
"ansi/string",
"ansi/time",
"ansif",
"compat/bsd",
"compat/io",
"compat/math",
"compat/mman",
"compat/mntent",
"compat/search",
"compat/signal",
"compat/stdio",
"compat/stdlib",
"compat/string",
"compat/sys/resource",
"compat/sys/stat",
"compat/sys/vfs",
"compat/termios",
"compat/time",
"compat/unistd",
"compat/v1",
"crt0",
"dos/compat",
"dos/dir",
"dos/dos",
"dos/dos_emu",
"dos/errno",
"dos/io",
"dos/process",
"dos/sys/timeb",
"fsext",
"menuetos",
"net",
"pc_hw/cpu",
"pc_hw/endian",
"pc_hw/farptr",
"pc_hw/fpu",
"pc_hw/hwint",
"pc_hw/kb",
"pc_hw/mem",
"pc_hw/sound",
"pc_hw/timer",
"posix/dirent",
"posix/fcntl",
"posix/fnmatch",
"posix/glob",
"posix/grp",
-- "posix/regex", -- not compilable
"posix/pwd",
"posix/setjmp",
"posix/signal",
"posix/stdio",
"posix/sys/stat",
"posix/sys/times",
"posix/sys/wait",
"posix/unistd",
"posix/utime",
"posix/utsname",
"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"
OBJS={}
for i,v in ipairs(FOLDERS) do
tup.append_table(OBJS,
tup.foreach_rule({v .. "/*.c", extra_inputs = {"../../config.h"}},
'kos32-gcc -c -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" ' .. CFLAGS .. " -o %o %f",
v .. "/%B.o")
)
tup.append_table(OBJS,
tup.foreach_rule({v .. "/*.s", extra_inputs = {"../../config.h"}},
'kos32-cpp -I../../include -D__DEV_CONFIG_H=\\"../../config.h\\" %f | kos32-as -o %o',
v .. "/%B.o")
)
end
tup.rule(OBJS, "kos32-ar rcs %o %f", {"../../lib/libc.a", "../../<libc>"})
/programs/develop/libraries/menuetlibc/src/libc/ansi/stdio/fprintf.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/compat/bsd/bcopy.c
3,8 → 3,8
 
#undef bcopy
 
void *
void
bcopy(const void *a, void *b, size_t len)
{
return memmove(b, a, len);
memmove(b, a, len);
}
/programs/develop/libraries/menuetlibc/src/libc/compat/bsd/bzero.c
3,8 → 3,8
 
#undef bzero
 
void *
void
bzero(void *a, size_t b)
{
return memset(a,0,b);
memset(a,0,b);
}
/programs/develop/libraries/menuetlibc/src/libc/compat/math/sincos.s
6,18 → 6,18
 
MK_C_SYM(sincos)
 
/* void sincos(double *cosine, double *sine, double x); */
/* void sincos(double x, double *sine, double *cosine); */
 
movl 16(%esp), %ecx
movl 8(%esp), %ecx
 
movl 4(%esp), %eax /* Point to cosine. */
movl 8(%esp), %edx /* Point to sine. */
movl 16(%esp), %eax /* Point to cosine. */
movl 12(%esp), %edx /* Point to sine. */
 
andl $0x7FF00000, %ecx /* Examine exponent of x. */
cmpl $0x43E00000, %ecx /* |x| >= 2^63 */
jae bigarg
 
fldl 12(%esp)
fldl 4(%esp)
fsincos
fstpl (%eax) /* cos */
fstpl (%edx) /* sin */
/programs/develop/libraries/menuetlibc/src/libc/dos/dos_emu/fslayer.c
File deleted