| /NextBSD/lib/libc/regex/grot/ |
| HD | split.c | 17 split(char *string, char *fields[], int nfields, char *sep) in split() argument 46 fn = nfields; in split() 54 return(nfields - fn); in split() 58 fn = nfields; in split() 70 fn = nfields; in split() 78 return(nfields - fn); in split() 88 fn = nfields; in split() 104 if (fn == nfields+1) in split() 115 if (fn < nfields) in split() 128 if (fn < nfields) in split()
|
| /NextBSD/contrib/netbsd-tests/lib/libc/regex/ |
| HD | split.c | 45 split(char *string, char *fields[], int nfields, const char *sep) in split() argument 74 fn = nfields; in split() 82 return(nfields - fn); in split() 86 fn = nfields; in split() 98 fn = nfields; in split() 106 return(nfields - fn); in split() 116 fn = nfields; in split() 132 if (fn == nfields+1) in split() 143 if (fn < nfields) in split() 156 if (fn < nfields) in split()
|
| HD | test_regex.h | 41 int split(char *string, char *fields[], int nfields, const char *sep);
|
| /NextBSD/contrib/groff/src/preproc/refer/ |
| HD | ref.cpp | 55 : h(0), merged(0), no(-1), field(0), nfields(0), label_ptr(0), in reference() 141 nfields++; in reference() 142 field = new string[nfields]; in reference() 156 if (nfields > 0) in ~reference() 157 ad_delete(nfields) field; in ~reference() 173 int old_nfields = nfields; in merge() 174 nfields = 0; in merge() 177 nfields++; in merge() 178 if (nfields != old_nfields) { in merge() 181 field = new string[nfields]; in merge() [all …]
|
| HD | ref.h | 56 int nfields; variable
|
| /NextBSD/contrib/gdb/gdb/ |
| HD | jv-lang.c | 338 int ninterfaces, nfields, nmethods; in java_link_class_type() local 374 nfields = value_as_long (value_struct_elt (&temp, NULL, "field_count", NULL, "structure")); in java_link_class_type() 375 nfields += TYPE_N_BASECLASSES (type); in java_link_class_type() 376 nfields++; /* Add one for dummy "class" field. */ in java_link_class_type() 377 TYPE_NFIELDS (type) = nfields; in java_link_class_type() 379 TYPE_ALLOC (type, sizeof (struct field) * nfields); in java_link_class_type() 381 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in java_link_class_type() 384 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type() 385 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in java_link_class_type() 388 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in java_link_class_type() [all …]
|
| HD | stabsread.c | 3186 int nfields = 0; in attach_fields_to_type() local 3197 nfields++; in attach_fields_to_type() 3208 TYPE_NFIELDS (type) = nfields; in attach_fields_to_type() 3210 TYPE_ALLOC (type, sizeof (struct field) * nfields); in attach_fields_to_type() 3211 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in attach_fields_to_type() 3218 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type() 3219 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in attach_fields_to_type() 3222 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type() 3223 B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields); in attach_fields_to_type() 3226 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in attach_fields_to_type() [all …]
|
| HD | remote-mips.c | 1717 int nfields; in mips_wait() local 1756 nfields = sscanf (buff, "0x%*x %*c 0x%*x 0x%*x 0x%x 0x%x 0x%x 0x%*x %s", in mips_wait() 1758 if (nfields >= 3) in mips_wait() 1774 if (nfields == 9) in mips_wait() 1813 if (nfields == 1 && rpc == 1) in mips_wait() 2406 int nfields; in common_breakpoint() local 2446 nfields = sscanf (buf, "0x%x b 0x0 0x%x", &rpid, &rerrflg); in common_breakpoint() 2447 if (nfields != 2) in common_breakpoint() 2497 nfields = sscanf (buf, "0x%x %c 0x%x 0x%x", in common_breakpoint() 2499 if (nfields != 4 || rcmd != cmd || rresponse > 255) in common_breakpoint() [all …]
|
| HD | dwarfread.c | 931 int nfields = 0; in struct_type() local 1060 nfields++; in struct_type() 1073 if (nfields == 0) in struct_type() 1079 TYPE_NFIELDS (type) = nfields; in struct_type() 1081 TYPE_ALLOC (type, sizeof (struct field) * nfields); in struct_type() 1083 for (n = nfields; list; list = list->next) in struct_type() 1649 int nfields = 0; in enum_type() local 1708 nfields++; in enum_type() 1729 if (nfields > 0) in enum_type() 1733 TYPE_NFIELDS (type) = nfields; in enum_type() [all …]
|
| HD | hpread.c | 3613 int n, nfields = 0, n_fn_fields = 0, n_fn_fields_total = 0; in hpread_read_struct_type() local 3735 nfields++; in hpread_read_struct_type() 4052 nfields++; in hpread_read_struct_type() 4087 nfields++; in hpread_read_struct_type() 4108 nfields++; in hpread_read_struct_type() 4129 nfields++; in hpread_read_struct_type() 4205 nfields++; in hpread_read_struct_type() 4278 TYPE_NFIELDS (type) = nfields; in hpread_read_struct_type() 4281 obstack_alloc (&objfile->objfile_obstack, sizeof (struct field) * nfields); in hpread_read_struct_type() 4283 for (n = nfields, tmp_list = list; tmp_list; tmp_list = tmp_list->next) in hpread_read_struct_type() [all …]
|
| HD | ada-lang.c | 5952 int nfields, bit_len; in template_to_fixed_record_type() local 5956 nfields = TYPE_NFIELDS (type); in template_to_fixed_record_type() 5960 TYPE_NFIELDS (rtype) = nfields; in template_to_fixed_record_type() 5962 TYPE_ALLOC (rtype, nfields * sizeof (struct field)); in template_to_fixed_record_type() 5963 memset (TYPE_FIELDS (rtype), 0, sizeof (struct field) * nfields); in template_to_fixed_record_type() 5972 for (f = 0; f < nfields; f += 1) in template_to_fixed_record_type() 6062 int nfields; in template_to_static_fixed_type() local 6068 nfields = TYPE_NFIELDS (templ_type); in template_to_static_fixed_type() 6073 TYPE_NFIELDS (type) = nfields; in template_to_static_fixed_type() 6075 TYPE_ALLOC (type, nfields * sizeof (struct field)); in template_to_static_fixed_type() [all …]
|
| HD | dwarf2read.c | 550 int nfields; member 2579 fip->nfields++; in dwarf2_add_field() 2737 int nfields = fip->nfields; in dwarf2_attach_fields_to_type() local 2741 TYPE_NFIELDS (type) = nfields; in dwarf2_attach_fields_to_type() 2743 TYPE_ALLOC (type, sizeof (struct field) * nfields); in dwarf2_attach_fields_to_type() 2744 memset (TYPE_FIELDS (type), 0, sizeof (struct field) * nfields); in dwarf2_attach_fields_to_type() 2751 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in dwarf2_attach_fields_to_type() 2752 B_CLRALL (TYPE_FIELD_PRIVATE_BITS (type), nfields); in dwarf2_attach_fields_to_type() 2755 (B_TYPE *) TYPE_ALLOC (type, B_BYTES (nfields)); in dwarf2_attach_fields_to_type() 2756 B_CLRALL (TYPE_FIELD_PROTECTED_BITS (type), nfields); in dwarf2_attach_fields_to_type() [all …]
|
| HD | coffread.c | 1934 int nfields = 0; in coff_read_struct_type() local 1973 nfields++; in coff_read_struct_type() 1992 nfields++; in coff_read_struct_type() 2002 TYPE_NFIELDS (type) = nfields; in coff_read_struct_type() 2004 TYPE_ALLOC (type, sizeof (struct field) * nfields); in coff_read_struct_type() 2008 for (n = nfields; list; list = list->next) in coff_read_struct_type()
|
| /NextBSD/contrib/one-true-awk/ |
| HD | lib.c | 46 int nfields = MAXFLD; /* last allocated slot for $i */ variable 62 || (fldtab = (Cell **) malloc((nfields+1) * sizeof(Cell *))) == NULL in recinit() 68 makefields(1, nfields); in recinit() 296 if (i > nfields) in fldbld() 312 if (i > nfields) in fldbld() 332 if (i > nfields) in fldbld() 346 if (i > nfields) in fldbld() 383 if (n > nfields) in newfld() 394 if (n > nfields) /* fields after NF are empty */ in fieldadr() 401 int nf = 2 * nfields; in growfldtab() [all …]
|
| HD | main.c | 41 extern int nfields;
|
| /NextBSD/contrib/tzcode/zic/ |
| HD | zic.c | 125 static void inleap(char ** fields, int nfields); 126 static void inlink(char ** fields, int nfields); 127 static void inrule(char ** fields, int nfields); 128 static int inzcont(char ** fields, int nfields); 129 static int inzone(char ** fields, int nfields); 130 static int inzsub(char ** fields, int nfields, int iscont); 809 register int nfields; local 831 nfields = 0; 832 while (fields[nfields] != NULL) { 835 if (strcmp(fields[nfields], "-") == 0) [all …]
|
| /NextBSD/bin/sh/ |
| HD | mknodes.c | 80 int nfields; /* number of fields in the structure */ member 138 if (curstr && curstr->nfields > 0) in parsenode() 152 sp->nfields = 0; in parsenode() 175 fp = &curstr->field[curstr->nfields]; in parsefield() 204 curstr->nfields++; in parsefield() 237 for (i = sp->nfields, fp = sp->field ; --i >= 0 ; fp++) { in output() 320 for (i = sp->nfields ; --i >= 1 ; ) { in outfunc()
|
| /NextBSD/usr.bin/uniq/ |
| HD | uniq.c | 299 int nchars, nfields; in skip() local 301 for (nfields = 0; *str != L'\0' && nfields++ != numfields; ) { in skip()
|
| /NextBSD/lib/libradius/ |
| HD | radlib.c | 488 int nfields; in rad_config() local 523 nfields = split(buf, fields, MAX_FIELDS, msg, sizeof msg); in rad_config() 524 if (nfields == -1) { in rad_config() 529 if (nfields == 0) in rad_config() 539 if (nfields >= MAX_FIELDS) { in rad_config() 545 nfields++; in rad_config() 546 for (i = nfields; --i > 0; ) in rad_config() 550 if (nfields < 3) { in rad_config()
|
| /NextBSD/contrib/apr-util/dbd/ |
| HD | apr_dbd_mysql.c | 715 int nfields, i; in dbd_mysql_pselect_internal() local 736 nfields = mysql_num_fields((*res)->res); in dbd_mysql_pselect_internal() 738 (*res)->bind = apr_palloc(pool, nfields*sizeof(MYSQL_BIND)); in dbd_mysql_pselect_internal() 739 length = apr_pcalloc(pool, nfields*sizeof(unsigned long)); in dbd_mysql_pselect_internal() 741 error = apr_palloc(pool, nfields*sizeof(my_bool)); in dbd_mysql_pselect_internal() 743 is_nullr = apr_pcalloc(pool, nfields*sizeof(my_bool)); in dbd_mysql_pselect_internal() 744 for ( i = 0; i < nfields; ++i ) { in dbd_mysql_pselect_internal()
|
| /NextBSD/lib/libcapsicum/ |
| HD | libcapsicum_grp.h | 53 size_t nfields);
|
| HD | libcapsicum_pwd.h | 53 size_t nfields);
|
| HD | libcapsicum_pwd.c | 341 size_t nfields) in cap_pwd_limit_fields() argument 355 for (i = 0; i < nfields; i++) in cap_pwd_limit_fields()
|
| HD | libcapsicum_grp.c | 388 size_t nfields) in cap_grp_limit_fields() argument 402 for (i = 0; i < nfields; i++) in cap_grp_limit_fields()
|
| /NextBSD/lib/libtacplus/ |
| HD | taclib.c | 841 int nfields; in tac_config() local 869 nfields = split(buf, fields, 4, msg, sizeof msg); in tac_config() 870 if (nfields == -1) { in tac_config() 875 if (nfields == 0) in tac_config() 877 if (nfields < 2) { in tac_config()
|