Example #1
0
 def fn():
     s = lltype.malloc(S)
     s.u = lltype.malloc(U)
     s.u.next = lltype.malloc(U)
     s.u.next.next = lltype.malloc(U)
     a = lltype.malloc(A, 1000)
     s2 = lltype.malloc(S)
     #
     p = rgc.get_typeids_z()
     s = ''.join([p[i] for i in range(len(p))])
     fd = os.open(filename, os.O_WRONLY | os.O_CREAT, 0666)
     os.write(fd, s)
     os.close(fd)
     return 0
Example #2
0
 def fn():
     s = lltype.malloc(S)
     s.u = lltype.malloc(U)
     s.u.next = lltype.malloc(U)
     s.u.next.next = lltype.malloc(U)
     a = lltype.malloc(A, 1000)
     s2 = lltype.malloc(S)
     #
     p = rgc.get_typeids_z()
     s = ''.join([p[i] for i in range(len(p))])
     fd = os.open(filename, open_flags, 0666)
     os.write(fd, s)
     os.close(fd)
     return 0
Example #3
0
def get_typeids_z(space):
    a = rgc.get_typeids_z()
    s = ''.join([a[i] for i in range(len(a))])
    return space.wrap(s)