Home
last modified time | relevance | path

Searched refs:spec (Results 1 – 25 of 1318) sorted by relevance

12345678910>>...53

/netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/
H A Dformat-awk.c72 struct spec struct
99 struct spec spec; in format_parse() local
101 struct spec *result; in format_parse()
103 spec.directives = 0; in format_parse()
104 spec.numbered_arg_count = 0; in format_parse()
105 spec.allocated = 0; in format_parse()
106 spec.numbered = NULL; in format_parse()
116 spec.directives++; in format_parse()
134 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
171 INVALID_WIDTH_ARGNO_0 (spec.directives); in format_parse()
[all …]
H A Dformat-boost.c92 struct spec struct
119 struct spec spec; in format_parse() local
121 struct spec *result; in format_parse()
123 spec.directives = 0; in format_parse()
124 spec.numbered_arg_count = 0; in format_parse()
125 spec.allocated = 0; in format_parse()
126 spec.numbered = NULL; in format_parse()
133 spec.directives++; in format_parse()
166 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
217 INVALID_WIDTH_ARGNO_0 (spec.directives); in format_parse()
[all …]
H A Dformat-python.c88 struct spec struct
118 struct spec spec; in format_parse() argument
119 struct spec *result; in format_parse()
121 spec.directives = 0; in format_parse()
122 spec.named_arg_count = 0; in format_parse()
123 spec.unnamed_arg_count = 0; in format_parse()
124 spec.allocated = 0; in format_parse()
125 spec.named = NULL; in format_parse()
126 spec.unnamed = NULL; in format_parse()
135 spec.directives++; in format_parse()
[all …]
H A Dformat-tcl.c76 struct spec struct
103 struct spec spec; in format_parse() local
104 struct spec *result; in format_parse()
109 spec.directives = 0; in format_parse()
110 spec.numbered_arg_count = 0; in format_parse()
111 spec.allocated = 0; in format_parse()
112 spec.numbered = NULL; in format_parse()
121 spec.directives++; in format_parse()
146 *invalid_reason = INVALID_ARGNO_0 (spec.directives); in format_parse()
184 if (spec.allocated == spec.numbered_arg_count) in format_parse()
[all …]
H A Dformat-elisp.c73 struct spec struct
100 struct spec spec; in format_parse() argument
101 struct spec *result; in format_parse()
104 spec.directives = 0; in format_parse()
105 spec.numbered_arg_count = 0; in format_parse()
106 spec.allocated = 0; in format_parse()
107 spec.numbered = NULL; in format_parse()
116 spec.directives++; in format_parse()
147 if (spec.allocated == spec.numbered_arg_count) in format_parse()
149 spec.allocated = 2 * spec.allocated + 1; in format_parse()
[all …]
H A Dformat-c.c149 struct spec struct
183 struct spec spec; in format_parse() local
186 struct spec *result; in format_parse()
188 spec.directives = 0; in format_parse()
190 spec.unnumbered_arg_count = 0; in format_parse()
191 spec.allocated = 0; in format_parse()
193 spec.unnumbered = NULL; in format_parse()
194 spec.unlikely_intentional = false; in format_parse()
195 spec.sysdep_directives_count = 0; in format_parse()
196 spec.sysdep_directives = NULL; in format_parse()
[all …]
H A Dformat-gcc-internal.c129 struct spec struct
157 struct spec spec; in format_parse() local
159 struct spec *result; in format_parse()
161 spec.directives = 0; in format_parse()
162 spec.numbered_arg_count = 0; in format_parse()
163 spec.allocated = 0; in format_parse()
164 spec.numbered = NULL; in format_parse()
165 spec.uses_err_no = false; in format_parse()
172 spec.directives++; in format_parse()
178 spec.uses_err_no = true; in format_parse()
[all …]
H A Dformat-perl-brace.c46 struct spec struct
65 struct spec spec; in format_parse() local
66 struct spec *result; in format_parse()
68 spec.directives = 0; in format_parse()
69 spec.named_arg_count = 0; in format_parse()
70 spec.allocated = 0; in format_parse()
71 spec.named = NULL; in format_parse()
98 spec.directives++; in format_parse()
100 if (spec.allocated == spec.named_arg_count) in format_parse()
102 spec.allocated = 2 * spec.allocated + 1; in format_parse()
[all …]
H A Dformat-sh.c63 struct spec struct
91 struct spec spec; in format_parse() argument
92 struct spec *result; in format_parse()
94 spec.directives = 0; in format_parse()
95 spec.named_arg_count = 0; in format_parse()
96 spec.allocated = 0; in format_parse()
97 spec.named = NULL; in format_parse()
105 spec.directives++; in format_parse()
191 if (spec.allocated == spec.named_arg_count) in format_parse()
193 spec.allocated = 2 * spec.allocated + 1; in format_parse()
[all …]
H A Dformat-librep.c70 struct spec struct
97 struct spec spec; in format_parse() argument
98 struct spec *result; in format_parse()
101 spec.directives = 0; in format_parse()
102 spec.numbered_arg_count = 0; in format_parse()
103 spec.allocated = 0; in format_parse()
104 spec.numbered = NULL; in format_parse()
113 spec.directives++; in format_parse()
177 : INVALID_CONVERSION_SPECIFIER (spec.directives, *format)); in format_parse()
183 if (spec.allocated == spec.numbered_arg_count) in format_parse()
[all …]
H A Dformat-java.c121 struct spec struct
133 static bool choice_format_parse (const char *format, struct spec *spec, argument
152 message_format_parse (const char *format, struct spec *spec, in message_format_parse() argument
171 spec->directives++; in message_format_parse()
203 …xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec->dire… in message_format_parse()
237 …ective number %u, the substring \"%s\" is not a valid date/time style."), spec->directives, elemen… in message_format_parse()
247 …xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, … in message_format_parse()
269 …directive number %u, the substring \"%s\" is not a valid number style."), spec->directives, elemen… in message_format_parse()
279 …xasprintf (_("In the directive number %u, \"%s\" is not followed by a comma."), spec->directives, … in message_format_parse()
293 if (choice_format_parse (element, spec, invalid_reason)) in message_format_parse()
[all …]
H A Dformat-qt.c45 struct spec struct
56 struct spec spec; in format_parse() argument
57 struct spec *result; in format_parse()
59 spec.directives = 0; in format_parse()
60 spec.arg_count = 0; in format_parse()
69 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 if (spec.args_used[number]) in format_parse()
81 spec.args_used[number] = true; in format_parse()
[all …]
H A Dformat-ycp.c42 struct spec struct
53 struct spec spec; in format_parse() argument
54 struct spec *result; in format_parse()
56 spec.directives = 0; in format_parse()
57 spec.arg_count = 0; in format_parse()
63 spec.directives++; in format_parse()
71 while (spec.arg_count <= number) in format_parse()
72 spec.args_used[spec.arg_count++] = false; in format_parse()
73 spec.args_used[number] = true; in format_parse()
83 …irective number %u, the character '%c' is not a digit between 1 and 9."), spec.directives, *format) in format_parse()
[all …]
H A Dformat-csharp.c53 struct spec struct
62 struct spec spec; in format_parse() local
63 struct spec *result; in format_parse()
65 spec.directives = 0; in format_parse()
66 spec.numbered_arg_count = 0; in format_parse()
81 spec.directives++; in format_parse()
86 …xasprintf (_("In the directive number %u, '{' is not followed by an argument number."), spec.direc… in format_parse()
106 xasprintf (_("In the directive number %u, ',' is not followed by a number."), spec.directives); in format_parse()
133 …irective number %u ends with an invalid character '%c' instead of '}'."), spec.directives, *format) in format_parse()
134 …tf (_("The directive number %u ends with an invalid character instead of '}'."), spec.directives)); in format_parse()
[all …]
H A Dformat-php.c72 struct spec struct
104 struct spec *result; in format_parse()
278 result = (struct spec *) xmalloc (sizeof (struct spec)); in format_parse()
294 struct spec *spec = (struct spec *) descr; in format_free() local
296 if (spec->numbered != NULL) in format_free()
297 free (spec->numbered); in format_free()
298 free (spec); in format_free()
304 struct spec *spec = (struct spec *) descr; in format_get_number_of_directives() local
306 return spec->directives; in format_get_number_of_directives()
314 struct spec *spec1 = (struct spec *) msgid_descr; in format_check()
[all …]
H A Dformat-pascal.c81 struct spec struct
113 struct spec *result; in format_parse()
331 result = (struct spec *) xmalloc (sizeof (struct spec)); in format_parse()
347 struct spec *spec = (struct spec *) descr; in format_free() local
349 if (spec->numbered != NULL) in format_free()
350 free (spec->numbered); in format_free()
351 free (spec); in format_free()
357 struct spec *spec = (struct spec *) descr; in format_get_number_of_directives() local
359 return spec->directives; in format_get_number_of_directives()
367 struct spec *spec1 = (struct spec *) msgid_descr; in format_check()
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dvasprintf.c209 char spec; /* Conversion specifier */ member
227 specinfo->spec = '\0'; in specinfo_init()
244 specinfo_is_valid (struct printf_spec spec) in specinfo_is_valid() argument
246 switch (spec.spec) in specinfo_is_valid()
255 return (spec.arg_type == NONE in specinfo_is_valid()
256 || FLOATING_POINT_ARG_TYPE (spec.arg_type)); in specinfo_is_valid()
261 return spec.arg_type == MPFR_ARG; in specinfo_is_valid()
266 return (spec.arg_type == NONE in specinfo_is_valid()
267 || INTEGER_LIKE_ARG_TYPE (spec.arg_type)); in specinfo_is_valid()
271 return (spec.arg_type == NONE || spec.arg_type == LONG_ARG); in specinfo_is_valid()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/internal/
H A Dread.d21 import std.format.spec : FormatSpec;
25 void skipData(Range, Char)(ref Range input, scope const ref FormatSpec!Char spec) in skipData()
31 switch (spec.spec) in skipData()
42 text("Format specifier not understood: %", spec.spec)); in skipData()
58 T unformatValueImpl(T, Range, Char)(ref Range input, scope const ref FormatSpec!Char spec)
65 if (spec.spec == 's') return parse!T(input);
67 enforceFmt(find(acceptedSpecs!long, spec.spec).length,
68 text("Wrong unformat specifier '%", spec.spec , "' for ", T.stringof));
70 return unformatValue!long(input, spec) != 0;
73 T unformatValueImpl(T, Range, Char)(ref Range input, scope const ref FormatSpec!Char spec)
[all …]
/netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/format/
H A Dread.d51 import std.format.spec : singleSpec;
54 auto spec = singleSpec("%s"); variable
55 assert(str.unformatValue!bool(spec) == false);
58 spec = singleSpec("%d");
59 assert(str.unformatValue!bool(spec) == true);
65 import std.format.spec : singleSpec;
68 auto spec = singleSpec("%s"); variable
69 assert(str.unformatValue!(typeof(null))(spec) == null);
75 import std.format.spec : singleSpec;
79 auto spec = singleSpec("%s"); variable
[all …]
H A Dwrite.d101 import std.format.spec : singleSpec;
120 import std.format.spec : singleSpec;
123 auto spec = singleSpec("%s"); variable
124 formatValue(w, null, spec);
137 import std.format.spec : singleSpec;
162 import std.format.spec : singleSpec;
199 import std.format.spec : singleSpec;
223 import std.format.spec : singleSpec;
242 import std.format.spec : singleSpec;
245 auto spec = singleSpec("%s"); variable
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprof/
H A Dsym_ids.c43 char *spec; /* Parsing modifies this. */ member
90 sym_id_add (const char *spec, Table_Id which_table) in sym_id_add() argument
93 int len = strlen (spec); in sym_id_add()
98 id->spec = (char *) id + sizeof (*id); in sym_id_add()
99 strcpy (id->spec, spec); in sym_id_add()
118 parse_spec (char *spec, Sym *sym) in parse_spec() argument
123 colon = strrchr (spec, ':'); in parse_spec()
129 if (colon > spec) in parse_spec()
131 sym->file = source_file_lookup_name (spec); in parse_spec()
137 spec = colon + 1; in parse_spec()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gprof/
H A Dsym_ids.c43 char *spec; /* Parsing modifies this. */ member
90 sym_id_add (const char *spec, Table_Id which_table) in sym_id_add() argument
93 int len = strlen (spec); in sym_id_add()
98 id->spec = (char *) id + sizeof (*id); in sym_id_add()
99 strcpy (id->spec, spec); in sym_id_add()
118 parse_spec (char *spec, Sym *sym) in parse_spec() argument
123 colon = strrchr (spec, ':'); in parse_spec()
129 if (colon > spec) in parse_spec()
131 sym->file = source_file_lookup_name (spec); in parse_spec()
137 spec = colon + 1; in parse_spec()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/
H A Dformat.d470 auto spec = FormatSpec!Char(fmt); in formattedWrite() local
474 while (spec.writeUpToNextSpec(w)) in formattedWrite()
476 if (currentArg == A.length && !spec.indexStart) in formattedWrite()
480 text("Orphan format specifier: %", spec.spec)); in formattedWrite()
484 if (spec.width == spec.DYNAMIC) in formattedWrite()
489 spec.flDash = true; in formattedWrite()
492 spec.width = width; in formattedWrite()
495 else if (spec.width < 0) in formattedWrite()
498 auto index = cast(uint) -spec.width; in formattedWrite()
504 spec.flDash = true; in formattedWrite()
[all …]
/netbsd-src/sys/arch/cobalt/stand/boot/
H A Dboot.c225 char *ptr, *spec; in get_bsdbootname() local
234 spec = bootstring; in get_bsdbootname()
237 while ((spec = strstr(spec, "root=")) != NULL) { in get_bsdbootname()
238 spec += 5; /* skip 'root=' */ in get_bsdbootname()
239 ptr = strchr(spec, ' '); in get_bsdbootname()
240 len = (ptr == NULL) ? strlen(spec) : ptr - spec; in get_bsdbootname()
242 if (len == 9 && memcmp("/dev/hd", spec, 7) == 0) { in get_bsdbootname()
243 bootunit = spec[7] - 'a'; in get_bsdbootname()
244 bootpart = spec[8] - '1'; in get_bsdbootname()
254 spec += len; in get_bsdbootname()
[all …]
/netbsd-src/sbin/swapctl/
H A Dswapctl.c451 char *spec; in add_swap() local
455 spec = buf; in add_swap()
457 if (stat(spec, &sb) < 0) in add_swap()
466 set_dumpdev1(spec); in add_swap()
476 if (swapctl(SWAP_ON, spec, priority) < 0) { in add_swap()
491 char *spec; in delete_swap() local
497 spec = buf; in delete_swap()
502 if (swapctl(SWAP_OFF, spec, pri) < 0) { in delete_swap()
510 set_dumpdev1(char *spec) in set_dumpdev1() argument
515 if (strcmp(spec, "none") == 0) in set_dumpdev1()
[all …]

12345678910>>...53