/programs/develop/ktcc/trunk/libc/math/fmod.c |
---|
File deleted |
/programs/develop/ktcc/trunk/samples/asm_ex.c |
---|
File deleted |
\ No newline at end of file |
/programs/develop/ktcc/trunk/source/readme_kos32.txt |
---|
61,7 → 61,7 |
limits.h |
locale.h |
setjmp.h |
signal.h |
signall.h |
time.h - can use get_tick_count()/100 from kos32sys1.h |
wchar.h |
wctype.h |
70,6 → 70,14 |
functions absent list: |
math.h |
frexp |
ldexp |
modf |
fmod |
HUGE_VAL |
stdio.h: |
remove |
rename |
/programs/develop/ktcc/trunk/source/config.h |
---|
4,7 → 4,5 |
#define TCC_TARGET_I386 |
#define ONE_SOURCE |
//#define TCC_TARGET_COFF |
//#define COMMIT_4ad186c5ef61_IS_FIXED |
//#define CONFIG_TCC_BCHECK |
/programs/develop/ktcc/trunk/source/libtcc.c |
---|
2126,12 → 2126,6 |
int optind = 0; |
ParseArgsState *pas = s->parse_args_state; |
/* |
#ifdef TCC_TARGET_MEOS |
// siemargl testing |
s->output_format = TCC_OUTPUT_FORMAT_COFF; |
#endif |
*/ |
while (optind < argc) { |
r = argv[optind++]; |
/programs/develop/ktcc/trunk/source/tcc.h |
---|
348,11 → 348,6 |
/* -------------------------------------------- */ |
/* include the target specific definitions */ |
#ifdef TCC_TARGET_COFF |
# include "coff.h" |
#endif |
#define TARGET_DEFS_ONLY |
#ifdef TCC_TARGET_I386 |
# include "i386-gen.c" |
367,6 → 362,7 |
# include "arm64-gen.c" |
#endif |
#ifdef TCC_TARGET_C67 |
# include "coff.h" |
# include "c67-gen.c" |
#endif |
#undef TARGET_DEFS_ONLY |
/programs/develop/ktcc/trunk/source/tcccoff.c |
---|
876,24 → 876,24 |
} |
if (fread(&file_hdr, FILHSZ, 1, f) != 1) |
tcc_error("error 1 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
if (fread(&o_filehdr, sizeof(o_filehdr), 1, f) != 1) |
tcc_error("error 2 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
// first read the string table |
if (fseek(f, file_hdr.f_symptr + file_hdr.f_nsyms * SYMESZ, SEEK_SET)) |
tcc_error("error 3 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
if (fread(&str_size, sizeof(int), 1, f) != 1) |
tcc_error("error 4 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
Coff_str_table = (char *) tcc_malloc(str_size); |
if (fread(Coff_str_table, str_size - 4, 1, f) != 1) |
tcc_error("error 5 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
// read/process all the symbols |
900,11 → 900,11 |
// seek back to symbols |
if (fseek(f, file_hdr.f_symptr, SEEK_SET)) |
tcc_error("error 6 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
for (i = 0; i < file_hdr.f_nsyms; i++) { |
if (fread(&csym, SYMESZ, 1, f) != 1) |
tcc_error("error 7 reading .out file for input"); |
tcc_error("error reading .out file for input"); |
if (csym._n._n_n._n_zeroes == 0) { |
name = Coff_str_table + csym._n._n_n._n_offset - 4; |