Home
last modified time | relevance | path

Searched full:spec (Results 1 – 25 of 4631) sorted by relevance

12345678910>>...186

/third_party/python/Lib/test/test_importlib/
Dtest_spec.py38 def create_module(self, spec): argument
72 self.spec = self.machinery.ModuleSpec(self.name, self.loader)
78 spec = self.machinery.ModuleSpec(self.name, self.loader)
80 self.assertEqual(spec.name, self.name)
81 self.assertEqual(spec.loader, self.loader)
82 self.assertIs(spec.origin, None)
83 self.assertIs(spec.loader_state, None)
84 self.assertIs(spec.submodule_search_locations, None)
85 self.assertIs(spec.cached, None)
86 self.assertFalse(spec.has_location)
[all …]
/third_party/bounds_checking_function/src/
Dinput.inl101 #define SECUREC_FILED_WIDTH_ENOUGH(spec) ((spec)->widthSet == 0 || (spec)->width > 0) argument
102 #define SECUREC_FILED_WIDTH_DEC(spec) do { \ argument
103 if ((spec)->widthSet != 0) { \
104 --(spec)->width; \
120 #define SECUREC_ARRAY_WIDTH_IS_WRONG(spec) ((spec).arrayWidth == 0 || \ argument
121 ((spec).isWCharOrLong <= 0 && (spec).arrayWidth > SECUREC_STRING_MAX_LEN) || \
122 ((spec).isWCharOrLong > 0 && (spec).arrayWidth > SECUREC_WCHAR_STRING_MAX_LEN))
124 #define SECUREC_ARRAY_WIDTH_IS_WRONG(spec) ((spec).arrayWidth == 0 || (spec).arrayWidth > SECUREC_S… argument
337 SECUREC_INLINE int SecAssignFloatW(const SecFloatSpec *floatSpec, const SecScanSpec *spec) argument
357 SecAssignFloat(tempFloatStr, spec->numberWidth, spec->argPtr);
[all …]
/third_party/gettext/gettext-tools/src/
Dformat-ruby.c98 struct spec struct
159 struct spec spec; in format_parse() local
162 struct spec *result; in format_parse()
164 spec.directives = 0; in format_parse()
165 spec.named_arg_count = 0; in format_parse()
166 spec.numbered_arg_count = 0; in format_parse()
167 spec.named = NULL; in format_parse()
168 spec.numbered = NULL; in format_parse()
190 spec.directives++; in format_parse()
203 *invalid_reason = INVALID_FLAG_AFTER_WIDTH (spec.directives); in format_parse()
[all …]
Dformat-awk.c71 struct spec struct
99 struct spec spec; in format_parse() local
102 struct spec *result; in format_parse()
104 spec.directives = 0; in format_parse()
105 spec.numbered_arg_count = 0; in format_parse()
106 spec.numbered = NULL; in format_parse()
118 spec.directives++; in format_parse()
136 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
174 INVALID_WIDTH_ARGNO_0 (spec.directives); in format_parse()
195 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
[all …]
Dformat-elisp.c72 struct spec struct
100 struct spec spec; in format_parse() local
102 struct spec *result; in format_parse()
105 spec.directives = 0; in format_parse()
106 spec.numbered_arg_count = 0; in format_parse()
107 spec.numbered = NULL; in format_parse()
118 spec.directives++; in format_parse()
149 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
152spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, numbered_allocated * sizeof (stru… in format_parse()
154 spec.numbered[spec.numbered_arg_count].number = number; in format_parse()
[all …]
Dformat-python-brace.c54 struct spec struct
63 static bool parse_upto (struct spec *spec, const char **formatp, argument
66 static void free_named_args (struct spec *spec);
76 parse_named_field (struct spec *spec, in parse_named_field() argument
97 parse_numeric_field (struct spec *spec, in parse_numeric_field() argument
117 parse_directive (struct spec *spec, in parse_directive() argument
134 if (!parse_named_field (spec, &format, translated, fdi, invalid_reason) in parse_directive()
135 && !parse_numeric_field (spec, &format, translated, fdi, invalid_reason)) in parse_directive()
138 …xasprintf (_("In the directive number %u, '%c' cannot start a field name."), spec->directives, *fo… in parse_directive()
153 if (!parse_named_field (spec, &format, translated, fdi, in parse_directive()
[all …]
Dformat-python.c90 struct spec struct
121 struct spec spec; in format_parse() local
123 struct spec *result; in format_parse()
125 spec.directives = 0; in format_parse()
126 spec.named_arg_count = 0; in format_parse()
127 spec.unnamed_arg_count = 0; in format_parse()
128 spec.named = NULL; in format_parse()
129 spec.unnamed = NULL; in format_parse()
141 spec.directives++; in format_parse()
187 if (spec.named_arg_count > 0) in format_parse()
[all …]
Dformat-tcl.c75 struct spec struct
103 struct spec spec; in format_parse() local
105 struct spec *result; in format_parse()
110 spec.directives = 0; in format_parse()
111 spec.numbered_arg_count = 0; in format_parse()
112 spec.numbered = NULL; in format_parse()
123 spec.directives++; in format_parse()
148 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
189 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
192spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, numbered_allocated * sizeof (stru… in format_parse()
[all …]
Dformat-perl-brace.c45 struct spec struct
65 struct spec spec; in format_parse() local
67 struct spec *result; in format_parse()
69 spec.directives = 0; in format_parse()
70 spec.named_arg_count = 0; in format_parse()
71 spec.named = NULL; in format_parse()
101 spec.directives++; in format_parse()
103 if (named_allocated == spec.named_arg_count) in format_parse()
106spec.named = (struct named_arg *) xrealloc (spec.named, named_allocated * sizeof (struct named_arg… in format_parse()
108 spec.named[spec.named_arg_count].name = name; in format_parse()
[all …]
Dformat-kde.c53 struct spec struct
75 struct spec spec; in format_parse() argument
77 struct spec *result; in format_parse()
79 spec.directives = 0; in format_parse()
80 spec.numbered_arg_count = 0; in format_parse()
81 spec.numbered = NULL; in format_parse()
95 spec.directives++; in format_parse()
104 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
107spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, numbered_allocated * sizeof (stru… in format_parse()
109 spec.numbered[spec.numbered_arg_count].number = number; in format_parse()
[all …]
Dformat-boost.c91 struct spec struct
119 struct spec spec; in format_parse() local
122 struct spec *result; in format_parse()
124 spec.directives = 0; in format_parse()
125 spec.numbered_arg_count = 0; in format_parse()
126 spec.numbered = NULL; in format_parse()
135 spec.directives++; in format_parse()
168 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
220 INVALID_WIDTH_ARGNO_0 (spec.directives); in format_parse()
243 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
[all …]
Dformat-javascript.c73 struct spec struct
101 struct spec spec; in format_parse() local
104 struct spec *result; in format_parse()
106 spec.directives = 0; in format_parse()
107 spec.numbered_arg_count = 0; in format_parse()
108 spec.numbered = NULL; in format_parse()
120 spec.directives++; in format_parse()
138 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
193 INVALID_CONVERSION_SPECIFIER (spec.directives, *format); in format_parse()
213 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
[all …]
Dformat-librep.c69 struct spec struct
97 struct spec spec; in format_parse() local
99 struct spec *result; in format_parse()
102 spec.directives = 0; in format_parse()
103 spec.numbered_arg_count = 0; in format_parse()
104 spec.numbered = NULL; in format_parse()
115 spec.directives++; in format_parse()
184 INVALID_CONVERSION_SPECIFIER (spec.directives, *format); in format_parse()
192 if (numbered_allocated == spec.numbered_arg_count) in format_parse()
195spec.numbered = (struct numbered_arg *) xrealloc (spec.numbered, numbered_allocated * sizeof (stru… in format_parse()
[all …]
Dformat-sh.c62 struct spec struct
91 struct spec spec; in format_parse() local
93 struct spec *result; in format_parse()
95 spec.directives = 0; in format_parse()
96 spec.named_arg_count = 0; in format_parse()
97 spec.named = NULL; in format_parse()
107 spec.directives++; in format_parse()
201 if (named_allocated == spec.named_arg_count) in format_parse()
204spec.named = (struct named_arg *) xrealloc (spec.named, named_allocated * sizeof (struct named_arg… in format_parse()
206 spec.named[spec.named_arg_count].name = name; in format_parse()
[all …]
Dformat-gcc-internal.c135 struct spec struct
164 struct spec spec; in format_parse() local
167 struct spec *result; in format_parse()
169 spec.directives = 0; in format_parse()
170 spec.numbered_arg_count = 0; in format_parse()
171 spec.numbered = NULL; in format_parse()
172 spec.uses_err_no = false; in format_parse()
181 spec.directives++; in format_parse()
187 spec.uses_err_no = true; in format_parse()
215 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
[all …]
Dformat-smalltalk.c41 struct spec struct
54 struct spec spec; in format_parse() argument
55 struct spec *result; in format_parse()
57 spec.directives = 0; in format_parse()
58 spec.arg_count = 0; in format_parse()
65 spec.directives++; in format_parse()
73 while (spec.arg_count <= number) in format_parse()
74 spec.args_used[spec.arg_count++] = false; in format_parse()
75 spec.args_used[number] = true; in format_parse()
90 …irective number %u, the character '%c' is not a digit between 1 and 9."), spec.directives, *format) in format_parse()
[all …]
Dformat-java-printf.c115 struct spec struct
163 struct spec spec; in format_parse() local
165 struct spec *result; in format_parse()
169 spec.directives = 0; in format_parse()
170 spec.numbered_arg_count = 0; in format_parse()
171 spec.numbered = NULL; in format_parse()
186 spec.directives++; in format_parse()
192 *invalid_reason = INVALID_LAST_ARG (spec.directives); in format_parse()
215 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
289 *invalid_reason = INVALID_PRECISION_MISSING (spec.directives); in format_parse()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/video/mir/
DSDL_mirwindow.c84 MirSurfaceSpec* spec; in MIR_CreateWindow() local
120 spec = MIR_mir_connection_create_spec_for_normal_surface(mir_data->connection, in MIR_CreateWindow()
125 MIR_mir_surface_spec_set_buffer_usage(spec, buffer_usage); in MIR_CreateWindow()
126 MIR_mir_surface_spec_set_name(spec, "Mir surface"); in MIR_CreateWindow()
131 mir_window->surface = MIR_mir_surface_create_sync(spec); in MIR_CreateWindow()
134 MIR_mir_surface_spec_release(spec); in MIR_CreateWindow()
203 MirSurfaceSpec* spec; in MIR_SetWindowFullscreen() local
215 spec = MIR_mir_connection_create_spec_for_changes(mir_data->connection); in MIR_SetWindowFullscreen()
216 MIR_mir_surface_spec_set_state(spec, state); in MIR_SetWindowFullscreen()
218 MIR_mir_surface_apply_spec(mir_window->surface, spec); in MIR_SetWindowFullscreen()
[all …]
/third_party/node/deps/npm/node_modules/libnpmaccess/
Dindex.js15 const npar = spec => { argument
16 spec = npa(spec)
17 if (!spec.registry) {
18 throw new Error('`spec` must be a registry spec')
20 return spec
25 cmd.public = (spec, opts) => setAccess(spec, 'public', opts) argument
26 cmd.restricted = (spec, opts) => setAccess(spec, 'restricted', opts) argument
27 function setAccess (spec, access, opts) { argument
30 spec = npar(spec)
31 validate('OSO', [spec, access, opts])
[all …]
/third_party/node/deps/npm/node_modules/pacote/lib/fetchers/
Dgit.js24 packument (spec, opts) { argument
28 manifest (spec, opts) { argument
30 if (spec.hosted && spec.hosted.getDefaultRepresentation() === 'shortcut') {
31 return hostedManifest(spec, opts)
34 return plainManifest(spec.fetchSpec, spec, opts)
38 tarball (spec, opts) { argument
41 this.manifest(spec, opts).then(manifest => {
45 manifest, spec, opts
52 fromManifest (manifest, spec, opts) { argument
72 spec, manifest._repo, manifest._ref, manifest._rawRef, tmp, opts
[all …]
/third_party/pulseaudio/src/pulse/
Dsample.c58 size_t pa_sample_size(const pa_sample_spec *spec) { in pa_sample_size() argument
59 pa_assert(spec); in pa_sample_size()
60 pa_assert(pa_sample_spec_valid(spec)); in pa_sample_size()
62 return size_table[spec->format]; in pa_sample_size()
65 size_t pa_frame_size(const pa_sample_spec *spec) { in pa_frame_size() argument
66 pa_assert(spec); in pa_frame_size()
67 pa_assert(pa_sample_spec_valid(spec)); in pa_frame_size()
69 return size_table[spec->format] * spec->channels; in pa_frame_size()
72 size_t pa_bytes_per_second(const pa_sample_spec *spec) { in pa_bytes_per_second() argument
73 pa_assert(spec); in pa_bytes_per_second()
[all …]
/third_party/python/Lib/importlib/
D_bootstrap.py268 spec = spec_from_loader(fullname, self)
271 _exec(spec, module)
274 return _load(spec)
290 spec = module.__spec__
294 if spec is not None:
295 return _module_repr_from_spec(spec)
317 A module's spec is the source for information about the module. For
318 data associated with the module, including source, use the spec's
332 `has_location` indicates that a spec's "origin" reflects a location.
342 Packages are simply modules that (may) have submodules. If a spec
[all …]
/third_party/node/deps/npm/node_modules/pacote/
Dmanifest.js10 function manifest (spec, opts) { argument
12 spec = npa(spec, opts.where)
15 spec.name,
16 spec.saveSpec || spec.fetchSpec,
17 spec.type,
24 return fetchManifest(spec, opts).then(rawManifest => {
25 return finalizeManifest(rawManifest, spec, opts)
28 manifest._from = spec.saveSpec || spec.raw
29 manifest._requested = spec
30 manifest._spec = spec.raw
[all …]
/third_party/node/deps/npm/lib/
Ddist-tag.js75 function add (spec, tag, opts) { argument
76 spec = npa(spec || '')
77 const version = spec.rawSpec
80 log.verbose('dist-tag add', t, 'to', spec.name + '@' + version)
82 if (!spec || !version || !t) UsageError()
88 return fetchTags(spec, opts).then(tags => {
94 const url = `/-/package/${spec.escapedName}/dist-tags/${encodeURIComponent(t)}`
101 spec field
104 output(`+${t}: ${spec.name}@${version}`)
109 function remove (spec, tag, opts) { argument
[all …]
/third_party/node/deps/npm/node_modules/npm-package-arg/
Dnpa.js24 let spec
37 spec = arg
39 spec = arg
42 spec = arg.slice(nameEndsAt + 1)
49 spec = arg
52 return resolve(name, spec, where, arg)
57 function resolve (name, spec, where, arg) { argument
61 rawSpec: spec,
67 if (spec && (isFilespec.test(spec) || /^file:/i.test(spec))) {
69 } else if (spec && /^npm:/i.test(spec)) {
[all …]

12345678910>>...186