Home
last modified time | relevance | path

Searched refs:c_file (Results 1 – 21 of 21) sorted by relevance

/external/openthread/third_party/mbedtls/repo/scripts/mbedtls_dev/
Dc_build_helper.py49 c_file = os.fdopen(c_fd, 'w', encoding='ascii')
50 return c_file, c_name, exe_name
52 def generate_c_printf_expressions(c_file, cast_to, printf_format, expressions): argument
61 c_file.write(' printf("{}\\n", ({}) {});\n'
64 def generate_c_file(c_file, argument
77 c_file.write('/* Generated by {} */'
79 c_file.write('''
82 c_file.write(header)
83 c_file.write('''
87 main_generator(c_file)
[all …]
/external/mbedtls/scripts/mbedtls_dev/
Dc_build_helper.py49 c_file = os.fdopen(c_fd, 'w', encoding='ascii')
50 return c_file, c_name, exe_name
52 def generate_c_printf_expressions(c_file, cast_to, printf_format, expressions): argument
61 c_file.write(' printf("{}\\n", ({}) {});\n'
64 def generate_c_file(c_file, argument
77 c_file.write('/* Generated by {} */'
79 c_file.write('''
82 c_file.write(header)
83 c_file.write('''
87 main_generator(c_file)
[all …]
/external/wayland/protocol/
Dgenerate-shm-formats.py81 with open(c_file_name, "w+") as c_file:
82 c_file.write('#include <inttypes.h>\n')
83 c_file.write('#include <stdint.h>\n')
84 c_file.write('#include <stdio.h>\n')
85 c_file.write('#include <drm_fourcc.h>\n')
86 c_file.write('\n')
87 c_file.write('int main(void) {\n')
89 c_file.write('printf("0x%" PRIX64 "\\n", (uint64_t)' + ident + ');\n')
90 c_file.write('}\n')
/external/ltp/testcases/open_posix_testsuite/scripts/
Dgenerate-makefiles.sh220 c_file="$test_name.c"
225 grep -q 'main' "$prereq_dir/$c_file" || echo >&2 "$prereq_dir/$c_file should be test."
228 grep -q 'main' "$prereq_dir/$c_file" && echo >&2 "$prereq_dir/$c_file should be run-test."
232 COMPILE_STR="\$(CC) $compiler_args \$(CFLAGS) \$(LDFLAGS) -o \$@ \$(srcdir)/$c_file"
238 $bin_file: \$(srcdir)/$c_file
/external/linux-kselftest/tools/testing/selftests/rcutorture/formal/srcu-cbmc/tests/
Dtest_script.sh60 c_file=`dirname "$2"`/test.c
80 echo "Running CBMC: ${CBMC} ${cbmc_opts} ${c_file}"
81 if ${CBMC} ${cbmc_opts} "${c_file}"; then
/external/python/cffi/cffi/
Dsetuptools_ext.py120 c_file = os.path.join(tmpdir, module_name + source_extension)
121 log.info("generating cffi module %r" % c_file)
129 updated = recompiler.make_c_source(ffi, module_name, source, c_file)
132 return c_file
Drecompiler.py1521 c_file=None, source_extension='.c', extradir=None, argument
1531 if c_file is None:
1532 c_file, parts = _modname_to_file(tmpdir, module_name,
1538 ext_c_file = c_file
1547 updated = make_c_source(ffi, module_name, preamble, c_file,
1573 if c_file is None:
1574 c_file, _ = _modname_to_file(tmpdir, module_name, '.py')
1575 updated = make_py_source(ffi, module_name, c_file,
1578 return c_file
Dapi.py696 c_file=filename, call_c_compiler=False, **kwds)
708 c_file=filename, call_c_compiler=False, **kwds)
/external/openthread/third_party/mbedtls/repo/tests/scripts/
Dgenerate_test_code.py927 c_file, snippets): argument
939 snippets['test_file'] = c_file
968 def write_test_source_file(template_file, c_file, snippets): argument
977 with open(template_file, 'r') as template_f, open(c_file, 'w') as c_f:
1046 c_file = input_info['c_file']
1061 c_file, snippets)
1065 write_test_source_file(template_file, c_file, snippets)
1137 c_file=out_c_file, out_data_file=out_data_file)
/external/mbedtls/tests/scripts/
Dgenerate_test_code.py933 c_file, snippets): argument
945 snippets['test_file'] = c_file
974 def write_test_source_file(template_file, c_file, snippets): argument
996 with open(template_file, 'r') as template_f, open(c_file, 'w') as c_f:
1068 c_file = input_info['c_file']
1083 c_file, snippets)
1087 write_test_source_file(template_file, c_file, snippets)
1159 c_file=out_c_file, out_data_file=out_data_file)
/external/llvm/cmake/modules/
DAddOCaml.cmake104 foreach( c_file ${ARG_C} )
105 list(APPEND sources "${c_file}.c")
107 list(APPEND c_inputs "${bin}/${c_file}.c")
108 list(APPEND c_outputs "${bin}/${c_file}${CMAKE_C_OUTPUT_EXTENSION}")
/external/mesa3d/src/intel/perf/
Dgen_perf.py31 c_file = None variable
38 c_file.write(text.rstrip() + "\n")
42 c_file.write(''.rjust(_c_indent) + code)
44 c_file.write(code)
586 global c_file
596 c_file = open(args.code, 'w')
/external/python/cffi/testing/cffi1/
Dtest_re_python.py30 c_file = tmpdir.join('_test_re_python.c')
31 c_file.write(SRC)
33 str(c_file),
Dtest_new_ffi_1.py1776 c_file = str(udir.join('test_emit_c_code'))
1777 ffi.emit_c_code(c_file)
1778 assert os.path.isfile(c_file)
/external/python/cpython2/Lib/distutils/tests/
Dtest_build_ext.py273 c_file = os.path.join(tmp_dir, 'foo.c')
274 self.write_file(c_file, 'void initfoo(void) {};\n')
275 ext = Extension('foo', [c_file])
/external/python/cpython3/Lib/distutils/tests/
Dtest_build_ext.py340 c_file = os.path.join(tmp_dir, 'foo.c')
341 self.write_file(c_file, 'void PyInit_foo(void) {}\n')
342 ext = Extension('foo', [c_file], optional=False)
/external/python/setuptools/setuptools/_distutils/tests/
Dtest_build_ext.py337 c_file = os.path.join(tmp_dir, 'foo.c')
338 self.write_file(c_file, 'void PyInit_foo(void) {}\n')
339 ext = Extension('foo', [c_file], optional=False)
/external/python/cpython3/Parser/
Dasdl_c.py1564 with c_filename.open("w") as c_file, \
1567 c_file.write(auto_gen_msg)
1572 write_source(mod, c_file, internal_h_file)
1587 main(args.input_file, args.c_file, args.h_file,
/external/python/cpython3/Lib/test/
Dtest_tabnanny.py250 with error_file as e_file, code_file as c_file:
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc101 const char* c_file = file.c_str(); in CreateTMPFile() local
103 char* c_path = strdup(c_file); in CreateTMPFile()
/external/ltp/testcases/kernel/fs/doio/
Ddoio.c124 char c_file[MAX_FNAME_LENGTH + 1]; member
4314 cp->c_oflags == oflags && strcmp(cp->c_file, file) == 0) { in alloc_fdcache()
4406 strcpy(free_slot->c_file, file); in alloc_fdcache()