Home
last modified time | relevance | path

Searched refs:c_decl (Results 1 – 5 of 5) sorted by relevance

/external/python/pycparser/examples/
Dcdecl.py46 def explain_c_declaration(c_decl, expand_struct=False, expand_typedef=False): argument
59 node = parser.parse(c_decl, filename='<stdin>')
194 c_decl = sys.argv[1] variable
196 c_decl = "char *(*(**foo[][8])())[];" variable
198 print("Explaining the declaration: " + c_decl + "\n")
199 print(explain_c_declaration(c_decl) + "\n")
/external/python/cffi/c/
Dffi_obj.c617 PyObject *c_decl, *res; in ffi_getctype() local
628 &c_decl, &replace_with)) in ffi_getctype()
631 ct = _ffi_type(self, c_decl, ACCEPT_STRING|ACCEPT_CTYPE); in ffi_getctype()
793 PyObject *c_decl, *python_callable = Py_None, *error = Py_None; in ffi_callback() local
799 &c_decl, &python_callable, &error, in ffi_callback()
803 c_decl = (PyObject *)_ffi_type(self, c_decl, ACCEPT_STRING | ACCEPT_CTYPE | in ffi_callback()
805 if (c_decl == NULL) in ffi_callback()
808 args = Py_BuildValue("(OOOO)", c_decl, python_callable, error, onerror); in ffi_callback()
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc797 string c_decl; in GetConstructorDecl() local
799 if (i > 0) strings::StrAppend(&c_decl, ", "); in GetConstructorDecl()
800 strings::StrAppend(&c_decl, arg_types[i], " ", arg_names[i]); in GetConstructorDecl()
803 strings::StrAppend(&c_decl, ", const ", op_name, "::Attrs& attrs"); in GetConstructorDecl()
805 strings::StrAppend(&c_decl, ")"); in GetConstructorDecl()
806 return WordWrap(prefix, c_decl, kRightMargin); in GetConstructorDecl()
/external/python/cffi/testing/cffi1/
Dtest_new_ffi_1.py113 c_decl = {None: '',
116 if c_decl == 'char' or c_decl == '':
118 self._test_int_type(ffi, c_decl, size, unsigned)
130 def _test_int_type(self, ffi, c_decl, size, unsigned): argument
139 p = ffi.cast(c_decl, min)
143 p = ffi.cast(c_decl, max)
145 p = ffi.cast(c_decl, long(max))
147 q = ffi.cast(c_decl, min - 1)
149 q = ffi.cast(c_decl, long(min - 1))
154 c_decl_ptr = '%s *' % c_decl
/external/python/cffi/testing/cffi0/
Dbackend_tests.py33 c_decl = {None: '',
36 if c_decl == 'char' or c_decl == '':
38 self._test_int_type(ffi, c_decl, size, unsigned)
51 def _test_int_type(self, ffi, c_decl, size, unsigned): argument
60 p = ffi.cast(c_decl, min)
65 p = ffi.cast(c_decl, max)
67 p = ffi.cast(c_decl, long(max))
69 q = ffi.cast(c_decl, min - 1)
71 q = ffi.cast(c_decl, long(min - 1))
76 c_decl_ptr = '%s *' % c_decl