[pypy-svn] r34389 - in pypy/dist/pypy/translator/c: . src
pedronis at codespeak.net
pedronis at codespeak.net
Wed Nov 8 19:20:58 CET 2006
Author: pedronis
Date: Wed Nov 8 19:20:56 2006
New Revision: 34389
Modified:
pypy/dist/pypy/translator/c/genc.py
pypy/dist/pypy/translator/c/src/thread.h
Log:
implement the behavior for --no__thread (implied by --vanilla)
Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py (original)
+++ pypy/dist/pypy/translator/c/genc.py Wed Nov 8 19:20:56 2006
@@ -141,7 +141,8 @@
symboltable = self.symboltable)
else:
if CBuilder.have___thread:
- defines['HAVE___THREAD'] = 1
+ if not self.config.translation.no__thread:
+ defines['USE___THREAD'] = 1
cfile, extra = gen_source_standalone(db, modulename, targetdir,
entrypointname = pfname,
defines = defines)
@@ -389,7 +390,7 @@
def gen_readable_parts_of_source(self, f):
if py.std.sys.platform != "win32":
- split_criteria_big = SPLIT_CRITERIA * 4
+ split_criteria_big = SPLIT_CRITERIA * 4
else:
split_criteria_big = SPLIT_CRITERIA
if self.one_source_file:
Modified: pypy/dist/pypy/translator/c/src/thread.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/thread.h (original)
+++ pypy/dist/pypy/translator/c/src/thread.h Wed Nov 8 19:20:56 2006
@@ -18,7 +18,7 @@
#include "thread_nt.h"
#endif
-#ifdef HAVE___THREAD
+#ifdef USE___THREAD
#define RPyThreadStaticTLS __thread void *
#define RPyThreadStaticTLS_Create(tls) NULL
More information about the Pypy-commit
mailing list