History

cleanup some partially broken patches

- tests/Makefile: fix commit de54586d5b45800e26952ec77b4f51ad4c1e0079 This hunk it unrelated to the other changes (which are about MacOSX). It is not useful and partially wrong. Optional tests are meant to stay optional, btest would work only for i386 - tcc.h: fix commit c52d79605a3c895a16e18f0b7193f1f4b480a60f by unknown The message says it's for MINTW but the patch has obviously no effect for MINGW (which defines __GNUC__). However the patch seems useful for MSC which however needs _strto(u)i64 with underscore. - Makefile: fix commit 5280293d6b16bbe24dfda76e37f32322fa2874ca Do not build tcc.o with -DONE_SOURCE because we finally build tcc from tcc.o and libtcc.a/so

grischka committed 14 years ago

Commit ab936ae1 parent 5aaa0673 files · +5 −5Browse files

Unified · Split

3 files
  1. Makefile +1 −1
  2. tcc.h +2 −2
  3. tests/Makefile +2 −2
Makefile+1−1
@@ -196,7 +196,7 @@ LIBTCC_INC = $(filter %.h,$(CORE_FILES)) $(filter-out $(CORE_FILES),$(NATIVE_FIL · 195 unmodified lines
196else196else
197LIBTCC_OBJ = libtcc.o197LIBTCC_OBJ = libtcc.o
198LIBTCC_INC = $(NATIVE_FILES)198LIBTCC_INC = $(NATIVE_FILES)
199$(LIBTCC_OBJ) tcc.o : NATIVE_DEFINES += -DONE_SOURCE199libtcc.o : NATIVE_DEFINES += -DONE_SOURCE
200endif200endif
201 201
202$(LIBTCC_OBJ) tcc.o : %.o : %.c $(LIBTCC_INC)202$(LIBTCC_OBJ) tcc.o : %.o : %.c $(LIBTCC_INC)
tcc.h+2−2
@@ -882,8 +882,8 @@ enum tcc_token { · 881 unmodified lines
882#ifndef __GNUC__882#ifndef __GNUC__
883 #define strtold (long double)strtod883 #define strtold (long double)strtod
884 #define strtof (float)strtod884 #define strtof (float)strtod
885 #define strtoll (long long)strtol885 #define strtoll _strtoi64
886 #define strtoull (unsigned long long)strtoui64886 #define strtoull _strtoui64
887#endif887#endif
888#else888#else
889/* XXX: need to define this to use them in non ISOC99 context */889/* XXX: need to define this to use them in non ISOC99 context */
tests/Makefile+2−2
@@ -3,10 +3,10 @@ · 2 unmodified lines
3#3#
4 4
5# what tests to run5# what tests to run
6TESTS = libtest test1 test36TESTS = libtest test3
7 7
8# these should work too8# these should work too
9TESTS += test2 speedtest btest weaktest9# TESTS += test1 test2 speedtest btest weaktest
10 10
11# these don't work as they should11# these don't work as they should
12# TESTS += test4 asmtest12# TESTS += test4 asmtest

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t