示例#1
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_sizes_and_alignments = space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
示例#2
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_sizes_and_alignments = space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
示例#3
0
 def setup_class(cls):
     space = cls.space
     from rpython.rlib.clibffi import get_libc_name
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     cls.w_float_typemap = space.wrap(TYPEMAP_FLOAT_LETTERS)
示例#4
0
 def setup_class(cls):
     from pypy.rlib.clibffi import get_libc_name
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
示例#5
0
 def setup_class(cls):
     space = cls.space
     from rpython.rlib.clibffi import get_libc_name
     cls.w_lib_name = space.wrap(cls.prepare_c_example())
     cls.w_libc_name = space.wrap(get_libc_name())
     if sys.platform == 'win32':
         cls.w_iswin32 = space.wrap(True)
         cls.w_libm_name = space.wrap('msvcrt')
     else:
         cls.w_iswin32 = space.wrap(False)
         cls.w_libm_name = space.wrap('libm.so')
         if sys.platform == "darwin":
             cls.w_libm_name = space.wrap('libm.dylib')
     cls.w_platform = space.wrap(platform.name)
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     cls.w_float_typemap = space.wrap(TYPEMAP_FLOAT_LETTERS)
示例#6
0
    def setup_class(cls):
        from pypy.rlib.libffi import libc_name
        space = gettestobjspace(usemodules=('_rawffi', 'struct'))
        cls.space = space
        cls.w_lib_name = space.wrap(cls.prepare_c_example())
        cls.w_libc_name = space.wrap(libc_name)
        if sys.platform == 'win32':
            cls.w_iswin32 = space.wrap(True)
            cls.w_libm_name = space.wrap('msvcrt')
        else:
            cls.w_iswin32 = space.wrap(False)
            cls.w_libm_name = space.wrap('libm.so')
            if sys.platform == "darwin":
                cls.w_libm_name = space.wrap('libm.dylib')

        cls.w_sizes_and_alignments = space.wrap(
            dict([(k, (v.c_size, v.c_alignment))
                  for k, v in TYPEMAP.iteritems()]))
示例#7
0
 def setup_class(cls):
     cls.w_sizes_and_alignments = cls.space.wrap(
         dict([(k, (v.c_size, v.c_alignment))
               for k, v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
示例#8
0
 def setup_class(cls):
     cls.w_sizes_and_alignments = cls.space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True
示例#9
0
 def setup_class(cls):
     space = gettestobjspace(usemodules=('_rawffi', 'struct'))
     cls.space = space
     cls.w_sizes_and_alignments = space.wrap(dict(
         [(k, (v.c_size, v.c_alignment)) for k,v in TYPEMAP.iteritems()]))
     Tracker.DO_TRACING = True