[pypy-commit] pypy win64_gborg: simplified primitive.py by using the types 'Signed' and 'Unsigned' which are defined in g_prerequisites.h
ctismer
noreply at buildbot.pypy.org
Sun Nov 6 18:17:05 CET 2011
Author: Christian Tismer <tismer at stackless.com>
Branch: win64_gborg
Changeset: r48830:f977b0b7d913
Date: 2011-11-06 18:12 +0100
http://bitbucket.org/pypy/pypy/changeset/f977b0b7d913/
Log: simplified primitive.py by using the types 'Signed' and 'Unsigned'
which are defined in g_prerequisites.h
diff --git a/pypy/translator/c/primitive.py b/pypy/translator/c/primitive.py
--- a/pypy/translator/c/primitive.py
+++ b/pypy/translator/c/primitive.py
@@ -199,9 +199,9 @@
PrimitiveType = {
SignedLongLong: 'long long @',
- Signed: 'long @', # but see below
+ Signed: 'Signed @',
UnsignedLongLong: 'unsigned long long @',
- Unsigned: 'unsigned long @', # but see below
+ Unsigned: 'Unsigned @',
Float: 'double @',
SingleFloat: 'float @',
LongFloat: 'long double @',
@@ -213,13 +213,6 @@
GCREF: 'void* @',
}
-# support for win64, where sizeof(long) == 4
-if is_emulated_long:
- PrimitiveType.update( {
- Signed: '__int64 @',
- Unsigned: 'unsigned __int64 @',
- } )
-
def define_c_primitive(ll_type, c_name, suffix=''):
if ll_type in PrimitiveName:
return
More information about the pypy-commit
mailing list