Home
last modified time | relevance | path

Searched refs:module_name (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/python/Lib/test/test_importlib/source/
Dtest_source_encoding.py35 module_name = '_temp' variable in EncodingTest
38 with util.create_modules(self.module_name) as mapping:
39 with open(mapping[self.module_name], 'wb') as file:
41 loader = self.machinery.SourceFileLoader(self.module_name,
42 mapping[self.module_name])
94 module = types.ModuleType(self.module_name)
95 module.__spec__ = importlib.util.spec_from_loader(self.module_name, loader)
110 return loader.load_module(self.module_name)
124 module_name = '_temp'
127 with util.create_modules(module_name) as mapping:
[all …]
/third_party/mbedtls/scripts/
Dgenerate_errors.pl127 my ($module_name) = $error_name =~ /^MBEDTLS_ERR_([^_]+)/;
130 $module_name = "BIGNUM" if ($module_name eq "MPI");
131 $module_name = "CTR_DRBG" if ($module_name eq "CTR");
132 $module_name = "HMAC_DRBG" if ($module_name eq "HMAC");
134 my $define_name = $module_name;
141 my $include_name = $module_name;
145 $include_name = "net_sockets" if ($module_name eq "NET");
147 $included_headers{"${include_name}.h"} = $module_name;
149 my $found_ll = grep $_ eq $module_name, @low_level_modules;
150 my $found_hl = grep $_ eq $module_name, @high_level_modules;
[all …]
/third_party/jerryscript/jerry-ext/include/jerryscript-ext/
Dmodule.h63 #define JERRYX_NATIVE_MODULE(module_name, on_resolve_cb) \ argument
64 JERRYX_NATIVE_MODULE_IMPLEM(module_name, on_resolve_cb)
66 #define JERRYX_NATIVE_MODULE_IMPLEM(module_name, on_resolve_cb) \ argument
67 static jerryx_native_module_t _ ## module_name ## _definition = \
69 .name_p = (jerry_char_t *) #module_name, \
75 module_name ## _register (void) JERRYX_MODULE_CONSTRUCTOR_ATTRIBUTE; \
77 module_name ## _register (void) \
79 jerryx_native_module_register(&_##module_name##_definition); \
83 module_name ## _unregister (void) \
86 module_name ## _unregister (void) \
[all …]
/third_party/cJSON/tests/unity/auto/
Dgenerate_module.rb125 def files_to_operate_on(module_name, pattern = nil) argument
127 subfolder = File.dirname(module_name)
128 module_name = File.basename(module_name)
148 submodule_name = create_filename(module_name, pattern_file)
156 … then (@options[:includes][:src] || []) | (pattern_traits[:inc].map { |f| format(f, module_name) })
158 …t] || []) | (pattern_traits[:inc].map { |f| format("#{@options[:mock_prefix]}#{f}", module_name) })
189 def generate(module_name, pattern = nil) argument
190 files = files_to_operate_on(module_name, pattern)
229 def destroy(module_name, pattern = nil) argument
230 files_to_operate_on(module_name, pattern).each do |filespec|
[all …]
/third_party/unity/auto/
Dgenerate_module.rb129 def files_to_operate_on(module_name, pattern = nil) argument
131 subfolder = File.dirname(module_name)
132 module_name = File.basename(module_name)
152 submodule_name = create_filename(module_name, pattern_file)
161 … then (@options[:includes][:src] || []) | (pattern_traits[:inc].map { |f| format(f, module_name) })
163 …t] || []) | (pattern_traits[:inc].map { |f| format("#{@options[:mock_prefix]}#{f}", module_name) })
194 def generate(module_name, pattern = nil) argument
195 files = files_to_operate_on(module_name, pattern)
236 def destroy(module_name, pattern = nil) argument
237 files_to_operate_on(module_name, pattern).each do |filespec|
[all …]
/third_party/python/Lib/test/
Dtest_pdb.py1384 self.module_name = 't_main'
1385 os_helper.rmtree(self.module_name)
1386 main_file = self.module_name + '/__main__.py'
1387 init_file = self.module_name + '/__init__.py'
1388 os.mkdir(self.module_name)
1393 self.addCleanup(os_helper.rmtree, self.module_name)
1394 return self._run_pdb(['-m', self.module_name], commands)
1687 module_name = 't_main'
1688 os_helper.rmtree(module_name)
1689 init_file = module_name + '/__init__.py'
[all …]
Dtest_source_encoding.py95 module_name = 'bad_coding'
96 self.verify_bad_module(module_name)
99 module_name = 'bad_coding2'
100 self.verify_bad_module(module_name)
102 def verify_bad_module(self, module_name): argument
103 self.assertRaises(SyntaxError, __import__, 'test.' + module_name)
106 filename = os.path.join(path, module_name + '.py')
/third_party/python/Lib/test/test_importlib/
Dtest_lazy.py40 module_name = 'lazy_loader_test' variable in TestingImporter
46 if name != self.module_name:
66 spec = util.spec_from_loader(TestingImporter.module_name,
70 module = types.ModuleType(TestingImporter.module_name)
82 with test_util.uncache(importer.module_name):
84 module = importlib.import_module(importer.module_name)
129 with test_util.uncache(TestingImporter.module_name):
130 fresh_module = types.ModuleType(TestingImporter.module_name)
131 sys.modules[TestingImporter.module_name] = fresh_module
137 with test_util.uncache(TestingImporter.module_name):
[all …]
Dtest_pkg_import.py18 self.module_name = self.package_name + '.foo'
22 for module_name in (self.package_name, self.module_name):
23 if module_name in sys.modules:
24 del sys.modules[module_name]
54 try: __import__(self.module_name)
57 self.assertNotIn(self.module_name, sys.modules)
68 try: __import__(self.module_name)
75 module = __import__(self.module_name).foo
/third_party/openssl/util/
Dmk-fipsmodule-cnf.pl15 my $module_name;
19 "module=s" => \$module_name,
26 my $module_size = [ stat($module_name) ]->[7];
28 open my $fh, "<:raw", $module_name or die "Trying to open $module_name: $!";
29 read $fh, my $data, $module_size or die "Trying to read $module_name: $!";
/third_party/node/deps/openssl/openssl/util/
Dmk-fipsmodule-cnf.pl15 my $module_name;
19 "module=s" => \$module_name,
26 my $module_size = [ stat($module_name) ]->[7];
28 open my $fh, "<:raw", $module_name or die "Trying to open $module_name: $!";
29 read $fh, my $data, $module_size or die "Trying to read $module_name: $!";
/third_party/pulseaudio/src/pulsecore/
Dmodinfo.c41 pa_modinfo *pa_modinfo_get_by_handle(lt_dlhandle dl, const char *module_name) { in pa_modinfo_get_by_handle() argument
50 if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_AUTHOR))) in pa_modinfo_get_by_handle()
53 if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_DESCRIPTION))) in pa_modinfo_get_by_handle()
56 if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_USAGE))) in pa_modinfo_get_by_handle()
59 if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_VERSION))) in pa_modinfo_get_by_handle()
62 if ((func = (const char* (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_DEPRECATED))) in pa_modinfo_get_by_handle()
65 if ((func2 = (bool (*)(void)) pa_load_sym(dl, module_name, PA_SYMBOL_LOAD_ONCE))) in pa_modinfo_get_by_handle()
/third_party/gn/examples/ios/build/toolchain/ios/
DBUILD.gn111 depfile = "{{target_out_dir}}/{{module_name}}.d"
117 "{{target_gen_dir}}/{{module_name}}.swiftmodule",
119 "{{target_gen_dir}}/{{module_name}}.h",
120 "{{target_gen_dir}}/{{module_name}}.swiftdoc",
121 "{{target_gen_dir}}/{{module_name}}.swiftsourceinfo",
127 outputs += [ "{{target_out_dir}}/{{module_name}}.o" ]
136module_name}} --object-dir $_object_dir --module-path {{target_gen_dir}}/{{module_name}}.swiftmodu…
/third_party/python/Lib/test/test_importlib/builtin/
Dtest_loader.py61 module_name = 'builtin_reload_test'
62 assert module_name not in sys.builtin_module_names
63 with util.uncache(module_name):
64 module = types.ModuleType(module_name)
65 sys.modules[module_name] = module
67 self.load_module(module_name)
68 self.assertEqual(cm.exception.name, module_name)
/third_party/skia/third_party/externals/freetype/src/base/
Dftpsprop.c118 const char* module_name = module->clazz->module_name; in ps_property_set() local
132 else if ( !ft_strcmp( module_name, "cff" ) && in ps_property_set()
138 else if ( ( !ft_strcmp( module_name, "type1" ) || in ps_property_set()
139 !ft_strcmp( module_name, "t1cid" ) ) && in ps_property_set()
156 !ft_strcmp( module_name, "cff" ) ) in ps_property_set()
160 ( !ft_strcmp( module_name, "type1" ) || in ps_property_set()
161 !ft_strcmp( module_name, "t1cid" ) ) ) in ps_property_set()
Dftinit.c99 (*cur)->module_name, error )); in FT_Add_Default_Modules()
118 char module_name[MAX_LENGTH + 1]; in FT_Set_Default_Properties() local
141 module_name[i] = *p++; in FT_Set_Default_Properties()
143 module_name[i] = '\0'; in FT_Set_Default_Properties()
176 module_name, in FT_Set_Default_Properties()
/third_party/openssl/test/testutil/
Dprovider.c18 OSSL_PROVIDER **provider, const char *module_name) in test_get_libctx() argument
41 if (provider != NULL && module_name != NULL in test_get_libctx()
42 && (*provider = OSSL_PROVIDER_load(new_libctx, module_name)) == NULL) { in test_get_libctx()
43 opt_printf_stderr("Failed to load provider %s\n", module_name); in test_get_libctx()
56 const char *module_name; in test_arg_libctx() local
58 if (!TEST_ptr(module_name = test_get_argument(argn))) { in test_arg_libctx()
62 if (strcmp(module_name, "none") == 0) in test_arg_libctx()
65 test_get_argument(argn + 1), provider, module_name); in test_arg_libctx()
/third_party/skia/third_party/externals/freetype/include/freetype/
Dftmodapi.h239 const FT_String* module_name; member
304 const char* module_name );
352 ( face )->driver ) )->module_name )
414 const FT_String* module_name,
477 const FT_String* module_name,
/third_party/node/deps/v8/src/wasm/
Dmodule-instantiate.cc284 Handle<String> module_name; member
311 Handle<String> module_name, Handle<String> import_name) { \
313 index, module_name->ToCString().get(), \
318 Handle<String> module_name) { \
320 module_name->ToCString().get(), error); \
330 MaybeHandle<Object> LookupImport(uint32_t index, Handle<String> module_name,
356 Handle<String> module_name,
368 Handle<String> module_name,
373 int import_index, Handle<String> module_name,
379 Handle<String> module_name,
[all …]
/third_party/jerryscript/jerry-ext/module/
Dmodule.c39 const jerry_value_t module_name) /**< the module name */ in jerryx_module_create_error() argument
46 jerry_release_value (jerry_set_property (error_object, property_name, module_name)); in jerryx_module_create_error()
118 … jerry_value_t module_name, /**< JerryScript string value holding the module name */ in jerryx_module_check_cache() argument
124 jerry_value_t js_has_property = jerry_has_property (cache, module_name); in jerryx_module_check_cache()
136 (*result) = jerry_get_property (cache, module_name); in jerryx_module_check_cache()
155 jerry_value_t module_name, /**< key at which to cache the module */ in jerryx_module_add_to_cache() argument
158 jerry_value_t ret = jerry_set_property (cache, module_name, module); in jerryx_module_add_to_cache()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-module-empty.c30 jerry_value_t module_name; in main() local
35 module_name = jerry_create_string ((jerry_char_t *) "some-unknown-module-name"); in main()
36 jerry_value_t module = jerryx_module_resolve (module_name, &resolver, 1); in main()
37 jerry_release_value (module_name); in main()
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc98 std::string module_name = ModuleName(filename); in ModuleAlias() local
102 GlobalReplaceSubstring("_", "__", &module_name); in ModuleAlias()
103 GlobalReplaceSubstring(".", "_dot_", &module_name); in ModuleAlias()
104 return module_name; in ModuleAlias()
119 bool ContainsPythonKeyword(const std::string& module_name) { in ContainsPythonKeyword() argument
120 std::vector<std::string> tokens = Split(module_name, "."); in ContainsPythonKeyword()
338 std::string module_name = ModuleName(file->name()); in Generate() local
339 std::string filename = module_name; in Generate()
399 std::string module_name = ModuleName(filename); in PrintImports() local
401 if (ContainsPythonKeyword(module_name)) { in PrintImports()
[all …]
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_init.c225 FREE(gallivm->module_name); in gallivm_free_ir()
239 gallivm->module_name = NULL; in gallivm_free_ir()
343 gallivm->module_name = NULL; in init_gallivm_state()
346 gallivm->module_name = MALLOC(size); in init_gallivm_state()
347 if (gallivm->module_name) { in init_gallivm_state()
348 memcpy(gallivm->module_name, name, size); in init_gallivm_state()
605 assert(gallivm->module_name); in gallivm_compile_module()
606 snprintf(filename, sizeof(filename), "ir_%s.bc", gallivm->module_name); in gallivm_compile_module()
669 assert(gallivm->module_name); in gallivm_compile_module()
671 gallivm->module_name, time_msec); in gallivm_compile_module()
/third_party/python/Lib/test/support/
Dimport_helper.py157 for module_name in module_names:
158 if module_name in sys.modules:
159 module = sys.modules[module_name]
164 if module.__name__ != module_name:
166 del sys.modules[module_name]
/third_party/protobuf/python/docs/
Dgenerate_docs.py138 module_name = module_path.stem
141 module_name = package_name + "." + module_path.stem
145 if any(include == module_name for include in INCLUDED_MODULES):
155 modules.append(module_name)

123456