Did I find the right examples for you? yes no

All Samples(45)  |  Call(30)  |  Derive(0)  |  Import(15)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/module/support.py   plexnet(Download)
    def to_rstr(s):
        from pypy.rpython.lltypesystem.rstr import STR, mallocstr
        if s is None:
            return lltype.nullptr(STR)
        p = mallocstr(len(s))

src/s/y/Sypy-HEAD/jit/backend/llgraph/llimpl.py   Sypy(Download)
def do_newstr(length):
    x = rstr.mallocstr(length)
    return cast_to_ptr(x)
 
def do_newunicode(length):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/annlowlevel.py   plexnet(Download)
    def llstr(s):
        from pypy.rpython.lltypesystem.rstr import mallocstr, mallocunicode
        if strtype is str:
            ll_s = mallocstr(len(s))
        else:

src/s/y/Sypy-HEAD/rpython/annlowlevel.py   Sypy(Download)
    def llstr(s):
        from pypy.rpython.lltypesystem.rstr import mallocstr, mallocunicode
        from pypy.rpython.lltypesystem.rstr import STR, UNICODE
        if strtype is str:
            if s is None:
                return lltype.nullptr(STR)
            ll_s = mallocstr(len(s))

src/s/y/Sypy-HEAD/rpython/module/support.py   Sypy(Download)
    def to_rstr(s):
        from pypy.rpython.lltypesystem.rstr import STR, mallocstr
        if s is None:
            return lltype.nullptr(STR)
        p = mallocstr(len(s))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
def do_newstr(_, length):
    x = rstr.mallocstr(length)
    return cast_to_ptr(x)
 
def do_newunicode(_, length):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/lltypesystem/ll_str.py   plexnet(Download)
def ll_int2dec(i):
    from pypy.rpython.lltypesystem.rstr import mallocstr
    temp = malloc(CHAR_ARRAY, 20)
    len = 0
    sign = 0
            len += 1
    len += sign
    result = mallocstr(len)
    result.hash = 0
    if sign:
def ll_int2hex(i, addPrefix):
    from pypy.rpython.lltypesystem.rstr import mallocstr
    temp = malloc(CHAR_ARRAY, 20)
    len = 0
    sign = 0
    if addPrefix:
        len += 2
    result = mallocstr(len)
    result.hash = 0
    j = 0
def ll_int2oct(i, addPrefix):
    from pypy.rpython.lltypesystem.rstr import mallocstr
    if i == 0:
        result = mallocstr(1)
        result.hash = 0

src/s/y/Sypy-HEAD/rpython/lltypesystem/ll_str.py   Sypy(Download)
def ll_int2dec(val):
    from pypy.rpython.lltypesystem.rstr import mallocstr
 
    sign = int(val < 0)
    if sign:
 
    total_len = sign + len + int(val == 0)
    result = mallocstr(total_len)
    if sign:
        result.chars[0] = '-'
def ll_int2hex(i, addPrefix):
    from pypy.rpython.lltypesystem.rstr import mallocstr
    temp = malloc(CHAR_ARRAY, 20)
    len = 0
    sign = 0
    if addPrefix:
        len += 2
    result = mallocstr(len)
    result.hash = 0
    j = 0
def ll_int2oct(i, addPrefix):
    from pypy.rpython.lltypesystem.rstr import mallocstr
    if i == 0:
        result = mallocstr(1)
        result.hash = 0

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/c/extfunc.py   plexnet(Download)
import types
from pypy.objspace.flow.model import FunctionGraph
from pypy.rpython.lltypesystem import lltype
from pypy.translator.c.support import cdecl
from pypy.rpython.lltypesystem.rstr import STR, mallocstr
    def RPyString_New(length=lltype.Signed):
        return mallocstr(length)
 
    # !!!
    # be extremely careful passing a gc tracked object

src/s/y/Sypy-HEAD/translator/c/extfunc.py   Sypy(Download)
import types
from pypy.objspace.flow.model import FunctionGraph
from pypy.rpython.lltypesystem import lltype
from pypy.translator.c.support import cdecl
from pypy.rpython.lltypesystem.rstr import STR, mallocstr
    def RPyString_New(length=lltype.Signed):
        return mallocstr(length)
 
    # !!!
    # be extremely careful passing a gc tracked object

  1 | 2 | 3  Next