Home
last modified time | relevance | path

Searched refs:nfields (Results 1 – 22 of 22) sorted by relevance

/openbsd-src/regress/lib/libc/regex/
H A Dsplit.c7 int split(char *string, char *fields[], int nfields, char *sep);
14 split(char *string, char *fields[], int nfields, char *sep) in split() argument
43 fn = nfields; in split()
51 return(nfields - fn); in split()
55 fn = nfields; in split()
67 fn = nfields; in split()
75 return(nfields - fn); in split()
85 fn = nfields; in split()
101 if (fn == nfields+1) in split()
112 if (fn < nfields) in split()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Djv-lang.c340 int ninterfaces, nfields, nmethods; in java_link_class_type() local
376 nfields = value_as_long (value_struct_elt (&temp, NULL, "field_count", NULL, "structure")); in java_link_class_type()
377 nfields += TYPE_N_BASECLASSES (type); in java_link_class_type()
378 nfields++; /* Add one for dummy "class" field. */ in java_link_class_type()
379 TYPE_NFIELDS (type) = nfields; in java_link_class_type()
381 TYPE_ALLOC (type, sizeof (struct field) * nfields); in java_link_class_type()
383 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in java_link_class_type()
386 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type()
387 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in java_link_class_type()
390 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type()
[all …]
H A Dstabsread.c3142 int nfields = 0; in attach_fields_to_type() local
3153 nfields++; in attach_fields_to_type()
3164 TYPE_NFIELDS (type) = nfields; in attach_fields_to_type()
3166 TYPE_ALLOC (type, sizeof (struct field) * nfields); in attach_fields_to_type()
3167 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in attach_fields_to_type()
3174 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
3175 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in attach_fields_to_type()
3178 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
3179 B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields); in attach_fields_to_type()
3182 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type()
[all …]
H A Dremote-mips.c1715 int nfields; in mips_wait() local
1754 nfields = sscanf (buff, "0x%*x %*c 0x%*x 0x%*x 0x%x 0x%x 0x%x 0x%*x %s", in mips_wait()
1756 if (nfields >= 3) in mips_wait()
1772 if (nfields == 9) in mips_wait()
1811 if (nfields == 1 && rpc == 1) in mips_wait()
2404 int nfields; in common_breakpoint() local
2444 nfields = sscanf (buf, "0x%x b 0x0 0x%x", &rpid, &rerrflg); in common_breakpoint()
2445 if (nfields != 2) in common_breakpoint()
2495 nfields = sscanf (buf, "0x%x %c 0x%x 0x%x", in common_breakpoint()
2497 if (nfields != 4 || rcmd != cmd || rresponse > 255) in common_breakpoint()
[all …]
H A Ddwarfread.c942 int nfields = 0; in struct_type() local
1071 nfields++; in struct_type()
1084 if (nfields == 0) in struct_type()
1090 TYPE_NFIELDS (type) = nfields; in struct_type()
1092 TYPE_ALLOC (type, sizeof (struct field) * nfields); in struct_type()
1094 for (n = nfields; list; list = list->next) in struct_type()
1660 int nfields = 0; in enum_type() local
1719 nfields++; in enum_type()
1740 if (nfields > 0) in enum_type()
1744 TYPE_NFIELDS (type) = nfields; in enum_type()
[all …]
H A Dhpread.c3608 int n, nfields = 0, n_fn_fields = 0, n_fn_fields_total = 0; in hpread_read_struct_type() local
3730 nfields++; in hpread_read_struct_type()
4047 nfields++; in hpread_read_struct_type()
4082 nfields++; in hpread_read_struct_type()
4103 nfields++; in hpread_read_struct_type()
4124 nfields++; in hpread_read_struct_type()
4200 nfields++; in hpread_read_struct_type()
4273 TYPE_NFIELDS (type) = nfields; in hpread_read_struct_type()
4276 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field) * nfields); in hpread_read_struct_type()
4278 for (n = nfields, tmp_list = list; tmp_list; tmp_list = tmp_list->next) in hpread_read_struct_type()
[all …]
H A Dcoffread.c1937 int nfields = 0; in coff_read_struct_type() local
1976 nfields++; in coff_read_struct_type()
1995 nfields++; in coff_read_struct_type()
2005 TYPE_NFIELDS (type) = nfields; in coff_read_struct_type()
2007 TYPE_ALLOC (type, sizeof (struct field) * nfields); in coff_read_struct_type()
2011 for (n = nfields; list; list = list->next) in coff_read_struct_type()
H A Dada-lang.c6040 int nfields, bit_len; in ada_template_to_fixed_record_type_1() local
6050 nfields = TYPE_NFIELDS (type); in ada_template_to_fixed_record_type_1()
6053 nfields = 0; in ada_template_to_fixed_record_type_1()
6054 while (nfields < TYPE_NFIELDS (type) in ada_template_to_fixed_record_type_1()
6055 && !ada_is_variant_part (type, nfields) in ada_template_to_fixed_record_type_1()
6056 && !is_dynamic_field (type, nfields)) in ada_template_to_fixed_record_type_1()
6057 nfields++; in ada_template_to_fixed_record_type_1()
6063 TYPE_NFIELDS (rtype) = nfields; in ada_template_to_fixed_record_type_1()
6065 TYPE_ALLOC (rtype, nfields * sizeof (struct field)); in ada_template_to_fixed_record_type_1()
6066 memset (TYPE_FIELDS (rtype), 0, sizeof (struct field) * nfields); in ada_template_to_fixed_record_type_1()
[all …]
H A Ddwarf2read.c613 int nfields; member
3256 fip->nfields++; in dwarf2_add_field()
3416 int nfields = fip->nfields; in dwarf2_attach_fields_to_type() local
3420 TYPE_NFIELDS (type) = nfields; in dwarf2_attach_fields_to_type()
3422 TYPE_ALLOC (type, sizeof (struct field) * nfields); in dwarf2_attach_fields_to_type()
3423 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in dwarf2_attach_fields_to_type()
3430 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in dwarf2_attach_fields_to_type()
3431 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in dwarf2_attach_fields_to_type()
3434 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in dwarf2_attach_fields_to_type()
3435 B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields); in dwarf2_attach_fields_to_type()
[all …]
H A Dgdbtypes.h382 short nfields; member
810 #define TYPE_NFIELDS(thistype) TYPE_MAIN_TYPE(thistype)->nfields
H A Dmdebugread.c855 int nfields; in parse_symbol() local
886 nfields = 0; in parse_symbol()
923 if (nfields == 0 && type_code == TYPE_CODE_UNDEF) in parse_symbol()
946 nfields++; in parse_symbol()
1031 if (nfields > 1 && max_value == 0) in parse_symbol()
1058 TYPE_NFIELDS (t) = nfields; in parse_symbol()
1061 nfields * sizeof (struct field))); in parse_symbol()
H A DChangeLog-19961891 (read_cfront_static_fields): Remove unused variable "nfields".
H A DChangeLog-199169 * symmisc.c: Remove unused 'nfields' variable.
H A DChangeLog-19998439 msize->method_count, nfields->field_count, bfsize->size_in_bytes,
/openbsd-src/usr.bin/awk/
H A Dlib.c52 int nfields = MAXFLD; /* last allocated slot for $i */ variable
68 || (fldtab = (Cell **) calloc(nfields+2, sizeof(*fldtab))) == NULL in recinit()
75 makefields(1, nfields); in recinit()
408 if (i > nfields) in fldbld()
424 if (i > nfields) in fldbld()
458 if (i > nfields) in fldbld()
480 if (i > nfields) in fldbld()
494 if (i > nfields) in fldbld()
534 if (n > nfields) in newfld()
545 if (n > nfields) in setlastfld()
[all...]
H A Dmain.c40 extern int nfields;
/openbsd-src/usr.sbin/zic/
H A Dzic.c120 static void inleap(char **fields, int nfields);
121 static void inlink(char **fields, int nfields);
122 static void inrule(char **fields, int nfields);
123 static int inzcont(char **fields, int nfields);
124 static int inzone(char **fields, int nfields);
125 static int inzsub(char **fields, int nfields, int iscont);
760 int nfields, wantcont, num; in infile()
780 nfields = 0; in infile()
781 while (fields[nfields] != NULL) { in infile()
784 if (strcmp(fields[nfields], " in infile()
756 int nfields, wantcont, num; infile() local
875 inrule(char ** fields,int nfields) inrule() argument
901 inzone(char ** fields,int nfields) inzone() argument
947 inzcont(char ** fields,int nfields) inzcont() argument
957 inzsub(char ** fields,int nfields,int iscont) inzsub() argument
1032 inleap(char ** fields,int nfields) inleap() argument
1132 inlink(char ** fields,int nfields) inlink() argument
[all...]
/openbsd-src/usr.bin/uniq/
H A Duniq.c193 long long nchars, nfields; in skip() local
198 for (nfields = numfields; nfields && *str; nfields--) { in skip()
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/execute/
H A D20001203-2.c22 short nfields; member
57 (result_type)->nfields = 1; in create_array_type()
/openbsd-src/usr.sbin/nsd/
H A Dconfigure12918 nfields = split(line, field, "@")
12921 for (i = 2; i < nfields; i++) {
/openbsd-src/usr.sbin/unbound/
H A Dconfigure25933 nfields = split(line, field, "@")
25936 for (i = 2; i < nfields; i++) {
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A DChangeLog11133 * class.c (make_class_data): Renamed bfsize, nfields, nsfields,