Home
last modified time | relevance | path

Searched refs:putln (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/third_party/cython/src/Cython/Compiler/
DModuleNode.py142 h_code.putln("")
146 h_code.putln("")
148 h_code.putln("#ifndef %s" % api_guard)
149 h_code.putln("")
152 h_code.putln("")
158 h_code.putln("")
162 h_code.putln("")
165 h_code.putln("")
166 h_code.putln("#endif /* !%s */" % api_guard)
167 h_code.putln("")
[all …]
DBuffer.py300 code.putln(' '.join(ln))
307 code.putln("%s.pybuffer.buf = NULL;" % pybuffer_struct)
308 code.putln("%s.refcount = 0;" % pybuffer_struct)
312 code.putln("%s.data = NULL;" % pybuffernd_struct)
313 code.putln("%s.rcbuffer = &%s;" % (pybuffernd_struct, pybuffer_struct))
321 code.putln("{")
322 code.putln("__Pyx_BufFmt_StackElem __pyx_stack[%d];" % entry.type.dtype.struct_nesting_depth())
323 code.putln(code.error_goto_if("%s == -1" % getbuffer, pos))
324 code.putln("}")
331 …code.putln("__Pyx_SafeReleaseBuffer(&%s.rcbuffer->pybuffer);" % entry.buffer_aux.buflocal_nd_var.c…
[all …]
DCode.py428 writer.putln("/* %s.init */" % self.name)
433 writer.putln(writer.error_goto_if_PyErr(output.module_pos))
434 writer.putln()
645 self.owner.putln("/* %s allocated */" % result)
666 self.owner.putln("/* %s released */" % name)
946 w.putln("static int __Pyx_InitCachedBuiltins(void) {")
950 w.putln("")
951 w.putln("static int __Pyx_InitCachedConstants(void) {")
957 w.putln("")
958 w.putln("static int __Pyx_InitGlobals(void) {")
[all …]
DNodes.py91 code.putln(marker)
100 code.putln(marker)
855 code.putln("%s = %s;" % (target, result))
1414 code.putln("%s = PyInt_FromLong(%s); %s" % (
1419 code.putln('if (PyDict_SetItemString(%s, "%s", %s) < 0) %s' % (
1614 code.putln("")
1617 code.putln(preprocessor_guard)
1634 code.putln(";")
1638 code.putln(";")
1640 code.putln(";")
[all …]
DMemoryView.py73 code.putln("%s.data = NULL;" % mv_cname)
74 code.putln("%s.memview = NULL;" % mv_cname)
94 code.putln("%s = %s;" % (rhstmp, rhs.result_as(lhs_type)))
112 code.putln("%s = %s;" % (lhs_cname, rhs_cname))
307 code.putln("%s = -1;" % suboffset_dim)
309 code.putln("%(dst)s.data = %(src)s.data;" % locals())
310 code.putln("%(dst)s.memview = %(src)s.memview;" % locals())
347 code.putln("%s.%s[%d] = %d;" % (dst, attrib, new_ndim, value))
456 code.putln(code.error_goto_if_neg(
484 code.putln("%s __pyx_temp_scalar = %s;" % (type_decl, scalar.result()))
[all …]
DExprNodes.py630 code.putln("%s = 0;" % self.result())
632 code.putln("%s.memview = NULL;" % self.result())
633 code.putln("%s.data = NULL;" % self.result())
1351 code.putln(
1357 code.putln("#if CYTHON_PEP393_ENABLED")
1360 code.putln("#endif")
1483 code.putln(
1864 code.putln(
1869 code.putln('if (unlikely(!%s)) {' % self.result())
1870 code.putln('PyErr_Clear();')
[all …]
DTypeSlots.py213 code.putln("#if CYTHON_COMPILING_IN_PYPY")
214 code.putln("%s, /*%s*/" % (inherited_value, self.slot_name))
215 code.putln("#else")
219 code.putln(preprocessor_guard)
220 code.putln("%s, /*%s*/" % (value, self.slot_name))
222 code.putln("#else")
223 code.putln("0, /*reserved*/")
225 code.putln("#endif")
227 code.putln("#endif")
238 code.putln("%s.%s = %s;" % (
[all …]
DFusedNode.py264 pyx_code.putln("if 0: pass")
285 pyx_code.putln("pass")
290 pyx_code.putln("pass")
295 pyx_code.putln("pass")
300 pyx_code.putln("pass")
335 codewriter.putln(self.match)
336 codewriter.putln("break")
358 decl_code.putln(
418 pyx_code.putln(self.no_match)
419 pyx_code.putln("break")
[all …]
DUtilNodes.py58 code.putln('%s = %s;' % (self.result(), rhs.result_as(self.ctype())))
205 code.putln('%s = %s;' % (self.result(), rhs.result_as(self.ctype())))
236 code.putln("%s = %s;" % (self.temp, self.temp_expression.result()))
DPyrexTypes.py2816 code.putln("%s {" % self.header)
2817 code.putln("PyObject* res;")
2818 code.putln("PyObject* member;")
2819 code.putln("res = PyDict_New(); if (res == NULL) return NULL;")
2822 code.putln("member = %s(s.%s); if (member == NULL) goto bad;" % (
2824 code.putln("if (PyDict_SetItem(res, %s, member) < 0) goto bad;" % nameconst_cname)
2825 code.putln("Py_DECREF(member);")
2826 code.putln("return res;")
2827 code.putln("bad:")
2828 code.putln("Py_XDECREF(member);")
[all …]
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/python-yasm/pyxelator/
Dgenpyx.py42 def putln( self, ln="" ): member in OStream
387 ostream.putln( '# ' + self.cstr() )
395 …ostream.putln( '%s = %s( addr = <long>&%s )' % (self.name, self.pyx_adaptor_name(cobjects), cprefi…
496 ostream.putln( now.strftime('# Code generated by pyxelator on %x at %X') + '\n' )
497 ostream.putln("# PART 1: extern declarations")
499 ostream.putln( 'cdef extern from "%s":\n pass\n' % filename )
500 ostream.putln( 'cdef extern from *:' )
503 ostream.putln('')
504 ostream.putln(' # ' + node.cstr() )
517 ostream.putln( ' # "%s"' % file )
[all …]