Home
last modified time | relevance | path

Searched refs:nch (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/mandoc/
H A Dmandoc.c170 mandoc_normdate(struct roff_node *nch, struct roff_node *nbl) in mandoc_normdate() argument
177 if (nch == NULL) { in mandoc_normdate()
185 if (*nch->string == '\0') { in mandoc_normdate()
186 mandoc_msg(MANDOCERR_DATE_MISSING, nch->line, in mandoc_normdate()
187 nch->pos, "%s", roff_name[nbl->tok]); in mandoc_normdate()
190 if (strcmp(nch->string, "$" "Mdocdate$") == 0) in mandoc_normdate()
195 if (a2time(&t, "$" "Mdocdate: %b %d %Y $", nch->string) || in mandoc_normdate()
196 a2time(&t, "%b %d, %Y", nch->string)) { in mandoc_normdate()
199 mandoc_msg(MANDOCERR_DATE_FUTURE, nch->line, in mandoc_normdate()
200 nch->pos, "%s %s", roff_name[nbl->tok], cp); in mandoc_normdate()
[all …]
H A Dmdoc_validate.c520 const struct roff_node *nch; in post_delim() local
526 nch = mdoc->last->last; in post_delim()
527 if (nch == NULL || nch->type != ROFFT_TEXT) in post_delim()
529 lc = strchr(nch->string, '\0') - 1; in post_delim()
530 if (lc < nch->string) in post_delim()
539 mandoc_msg(MANDOCERR_DELIM, nch->line, in post_delim()
540 nch->pos + (int)(lc - nch->string), "%s%s %s", roff_name[tok], in post_delim()
541 nch == mdoc->last->child ? "" : " ...", nch->string); in post_delim()
547 const struct roff_node *nch; in post_delim_nb() local
559 nch = mdoc->last->last; in post_delim_nb()
[all …]
H A Dman_validate.c555 struct roff_node *nch; in post_MR() local
557 if ((nch = n->child) == NULL) { in post_MR()
561 if (nch->next == NULL) { in post_MR()
563 n->line, n->pos, "MR %s", nch->string); in post_MR()
566 if (mandoc_xr_add(nch->next->string, nch->string, nch->line, nch->pos)) in post_MR()
567 mandoc_msg(MANDOCERR_XR_SELF, nch->line, nch->pos, in post_MR()
568 "MR %s %s", nch->string, nch->next->string); in post_MR()
569 if ((nch = nch->next->next) == NULL || nch->next == NULL) in post_MR()
572 mandoc_msg(MANDOCERR_ARG_EXCESS, nch->next->line, nch->next->pos, in post_MR()
573 "MR ... %s", nch->next->string); in post_MR()
[all …]
H A Dmdoc_state.c214 struct roff_node *nch; in setsec() local
217 for (nch = n->child; nch != NULL; nch = nch->next) in setsec()
218 setsec(nch, sec); in setsec()
H A Dhtml.c367 const struct roff_node *nch; in html_make_id() local
382 for (nch = n->child; nch != NULL; nch = nch->next) in html_make_id()
383 if (nch->type != ROFFT_TEXT) in html_make_id()
811 struct roff_node *nch; in print_otag_id() local
826 if (href != NULL && (nch = n->child) != NULL) { in print_otag_id()
830 nch = NULL; in print_otag_id()
832 while (nch != NULL && nch->type == ROFFT_TEXT) in print_otag_id()
833 nch = nch->next; in print_otag_id()
834 if (nch == NULL) in print_otag_id()
H A Dmdoc_markdown.c1401 const struct roff_node *nch; in md_pre_Mt() local
1405 for (nch = n->child; nch != NULL; nch = nch->next) in md_pre_Mt()
1406 md_word(nch->string); in md_pre_Mt()
1409 for (nch = n->child; nch != NULL; nch = nch->next) { in md_pre_Mt()
1410 md_uri(nch->string); in md_pre_Mt()
1411 if (nch->next != NULL) { in md_pre_Mt()
H A Dman_term.c207 struct roff_node *nch; in print_bvspace() local
213 (nch = roff_node_child(n->body)) != NULL && in print_bvspace()
214 nch->type == ROFFT_TBL) in print_bvspace()
/freebsd/contrib/nvi/common/
H A Dcut.h66 #define CBNAME(sp, cbp, nch) do { \ argument
68 L__name = isupper(nch) ? tolower(nch) : (nch); \
H A Doptions.c991 char nch, *np; in opts_save() local
1020 for (np = O_STR(sp, cnt); (nch = *np) != '\0'; ++np) { in opts_save()
1021 if (cmdskip(nch) || nch == '\\') in opts_save()
1023 (void)putc(nch, fp); in opts_save()
H A Dexf.c746 u_long nlno, nch; local
903 rval = ex_writefp(sp, name, fp, fm, tm, &nlno, &nch, 0);
969 len = snprintf(buf, sizeof(buf), msgstr, p, nlno, nch);
975 len = snprintf(buf, sizeof(buf), msgstr, p, nlno, nch);
/freebsd/lib/libc/resolv/
H A Dres_comp.c157 int nch = *dn++; in res_hnok() local
164 } else if (periodchar(nch) || nch == '\0') { in res_hnok()
171 pch = ch, ch = nch; in res_hnok()
/freebsd/contrib/less/
H A Ddecode.c1097 int nch;
1122 nch = 0;
1124 if (nch > 0)
1126 usercmd[nch] = c;
1127 usercmd[nch+1] = '\0';
1128 nch++;
1130 } while (action == A_PREFIX && nch < MAX_CMDLEN);
1188 while (nch > 1)
1190 ungetcc(usercmd[--nch]);
915 int nch; editchar() local
/freebsd/contrib/nvi/ex/
H A Dex_write.c281 ex_writefp(SCR *sp, char *name, FILE *fp, MARK *fm, MARK *tm, u_long *nlno, u_long *nch, int silent) in ex_writefp() argument
296 *nch = 0; in ex_writefp()
367 *nch = ccnt; in ex_writefp()
/freebsd/contrib/file/src/
H A Dfsmagic.c113 ssize_t nch; in file_fsmagic() local
295 if ((nch = readlink(fn, buf, BUFSIZ-1)) <= 0) { in file_fsmagic()
311 buf[nch] = '\0'; /* readlink(2) does not do this */ in file_fsmagic()
/freebsd/contrib/libfido2/src/
H A Dwinhello.c163 int nch; in to_utf16()
170 if ((nch = MultiByteToWideChar(CP_UTF8, 0, utf8, -1, NULL, 0)) < 1 || in to_utf16()
171 (size_t)nch > MAXCHARS) { in to_utf16()
172 fido_log_debug("%s: MultiByteToWideChar %d", __func__, nch); in to_utf16()
175 if ((utf16 = calloc((size_t)nch, sizeof(*utf16))) == NULL) { in to_utf16()
179 if (MultiByteToWideChar(CP_UTF8, 0, utf8, -1, utf16, nch) != nch) { in to_utf16()
159 int nch; to_utf16() local
/freebsd/lib/libc/regex/
H A Dregcomp.c1642 wint_t nch, *newwides; local
1657 if ((nch = towlower(ch)) < NC)
1658 cs->bmp[nch >> 3] |= 1 << (nch & 7);
1659 if ((nch = towupper(ch)) < NC)
1660 cs->bmp[nch >> 3] |= 1 << (nch & 7);
/freebsd/sbin/dhclient/
H A Ddhclient.c2727 int nch = *dn++; in res_hnok() local
2734 } else if (periodchar(nch) || nch == '\0') { in res_hnok()
2741 pch = ch, ch = nch; in res_hnok()
2760 int nch = *srch++; in check_search() local
2767 } else if (periodchar(nch) || nch == '\0') { in check_search()
2777 while (whitechar(nch)) { in check_search()
2778 nch = *srch++; in check_search()
2780 if (nch != '\0') in check_search()
2784 ch = nch; in check_search()
/freebsd/contrib/libedit/
H A Dtty.c65 wint_t nch, och; /* Internal and termio rep of chars */ member
917 for (tp = tty_map; tp->nch != (wint_t)-1; tp++) { in tty_bind_char()
918 new[0] = (wchar_t)t_n[tp->nch]; in tty_bind_char()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A Dregcomp.c228 static int nch(struct parse *, cset *);
867 if (nch(p, cs) == 1) { /* optimize singleton sets */ in p_bracket()
1322 nch(struct parse *p, cset *cs) in nch() function
/freebsd/contrib/nvi/regex/
H A Dregcomp.c103 static int nch(struct parse *p, cset *cs);
753 if (nch(p, cs) == 1) { /* optimize singleton sets */ in p_bracket()
1215 nch(struct parse *p, cset *cs) in nch() function
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsX86.def2042 TARGET_HEADER_BUILTIN(__emul, "LLiii", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")
2043 TARGET_HEADER_BUILTIN(__emulu, "ULLiUiUi", "nch", INTRIN_H, ALL_MS_LANGUAGES, "")