Check-in [b8eb9903c6]
Overview
Comment:Updated to define more things
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:b8eb9903c63e5c1050867ffb2b9f75e50e36f5a2
User & Date: rkeene on 2014-06-23 20:02:58
Other Links: manifest | tags
Context
2014-06-23
20:12
tcc4tcl 0.21 check-in: 7c6bbf8a11 user: rkeene tags: trunk, 0.21
20:02
Updated to define more things check-in: b8eb9903c6 user: rkeene tags: trunk
19:46
Updated to include more detailed CURL test check-in: aa5e861dc0 user: rkeene tags: trunk
Changes

Added build/tcc-patches/0.9.26/tcc-0.9.26-extradefines.diff version [e92b8040bc].



























>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -uNr tcc-0.9.26.orig/libtcc.c tcc-0.9.26-1extradefines/libtcc.c
--- tcc-0.9.26.orig/libtcc.c	2013-02-15 08:24:00.000000000 -0600
+++ tcc-0.9.26-1extradefines/libtcc.c	2014-06-23 15:00:38.479507000 -0500
@@ -980,6 +980,9 @@
 #else
     tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
 #endif
+#ifdef __LP64__
+    tcc_define_symbol(s, "__LP64__", "1");
+#endif
 
 #ifndef TCC_TARGET_PE
     /* glibc defines */

Modified test.tcl from [49b187426d] to [e367198f71].

113
114
115
116
117
118
119


120

121
122
123
124
125
126
127
	load $tmpfile myPkg
	puts [ext_add 1 42]
	file delete $tmpfile
}

# More involved test
set handle [tcc4tcl::new]


$handle ccode {#include <curl/curl.h>}

$handle cwrap curl_version {} vstring
$handle cproc curl_fetch {char* url} ok {
	void *handle;

	handle = curl_easy_init();
	if (!handle) {
		return(TCL_ERROR);







>
>
|
>







113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
	load $tmpfile myPkg
	puts [ext_add 1 42]
	file delete $tmpfile
}

# More involved test
set handle [tcc4tcl::new]
$handle ccode {
#include <stdint.h>
#include <curl/curl.h>
}
$handle cwrap curl_version {} vstring
$handle cproc curl_fetch {char* url} ok {
	void *handle;

	handle = curl_easy_init();
	if (!handle) {
		return(TCL_ERROR);