Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 25 of 57) sorted by relevance

123

/external/mksh/src/
Dlex.c170 statep->ls_start = Xsavepos(ws, wp); \
178 wp = Xrestpos(ws, wp, statep->ls_start); \
202 char *wp; /* output word pointer */ in yylex() local
212 Xinit(ws, wp, 64, ATEMP); in yylex()
221 *wp++ = OQUOTE; in yylex()
265 Xcheck(ws, wp); in yylex()
274 *wp++ = ADELIM; in yylex()
275 *wp++ = c; in yylex()
286 *wp = EOS; in yylex()
287 if (is_wdvarname(Xstring(ws, wp), false)) { in yylex()
[all …]
Dfuncs.c68 c_true(const char **wp MKSH_A_UNUSED) in c_true()
74 c_false(const char **wp MKSH_A_UNUSED) in c_false()
221 c_pwd(const char **wp) in c_pwd() argument
227 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) in c_pwd()
238 wp += builtin_opt.optind; in c_pwd()
240 if (wp[0]) { in c_pwd()
264 c_print(const char **wp) in c_print() argument
277 if (wp[0][0] == 'e') { in c_print()
279 wp++; in c_print()
282 if (*wp && !strcmp(*wp, "-n")) { in c_print()
[all …]
Dtree.c270 wdvarput(struct shf *shf, const char *wp, int quotelevel, int opmode) in wdvarput() argument
285 switch (*wp++) { in wdvarput()
287 return (--wp); in wdvarput()
290 c = *wp++; in wdvarput()
300 c = *wp++; in wdvarput()
316 while ((c = *wp++) != 0) in wdvarput()
322 while ((c = *wp++) != 0) in wdvarput()
341 if (*wp++ == '{') in wdvarput()
343 while ((c = *wp++) != 0) in wdvarput()
345 wp = wdvarput(shf, wp, 0, opmode); in wdvarput()
[all …]
Deval.c201 XPtrV *wp, /* output words */ in expand() argument
854 alt_expand(wp, p, p, in expand()
858 glob(p, wp, f & DOMARKDIRS); in expand()
860 XPput(*wp, p); in expand()
862 XPput(*wp, debunk(p, p, strlen(p) + 1)); in expand()
880 XPput(*wp, p); in expand()
1347 glob(char *cp, XPtrV *wp, int markdirs) in glob() argument
1349 int oldsize = XPsize(*wp); in glob()
1351 if (glob_str(cp, wp, markdirs) == 0) in glob()
1352 XPput(*wp, debunk(cp, cp, strlen(cp) + 1)); in glob()
[all …]
Dshf.c142 shf->rp = shf->wp = shf->buf; in shf_fdopen()
169 shf->rp = shf->wp = shf->buf; in shf_reopen()
209 shf->buf = shf->rp = shf->wp = (unsigned char *)buf; in shf_sopen()
349 shf->wp = nbuf + (shf->wp - shf->buf); in shf_emptybuf()
356 ssize_t n, ntowrite = shf->wp - shf->buf; in shf_emptybuf()
375 shf->wp = shf->buf + ntowrite; in shf_emptybuf()
383 shf->wp = shf->buf; in shf_emptybuf()
389 shf->wp = shf->buf; in shf_emptybuf()
605 *shf->wp++ = c; in shf_putchar()
638 (shf->wp != shf->buf || nbytes < shf->wnleft)) { in shf_write()
[all …]
Dhistrap.c73 c_fc(const char **wp) in c_fc() argument
90 while ((optc = ksh_getopt(wp, &builtin_opt, in c_fc()
148 wp += builtin_opt.optind; in c_fc()
160 if (*wp && **wp && (p = cstrchr(*wp + 1, '='))) { in c_fc()
161 strdupx(pat, *wp, ATEMP); in c_fc()
162 rep = pat + (p - *wp); in c_fc()
164 wp++; in c_fc()
167 if (!first && (first = *wp)) in c_fc()
168 wp++; in c_fc()
169 if (last || *wp) { in c_fc()
[all …]
Dexec.c323 te.pos.wp = t->args; in execute()
926 shcomexec(const char **wp) in shcomexec() argument
930 tp = ktsearch(&builtins, *wp, hash(*wp)); in shcomexec()
932 internal_errorf("%s: %s", "shcomexec", *wp); in shcomexec()
933 return (call_builtin(tp, wp)); in shcomexec()
1248 call_builtin(struct tbl *tp, const char **wp) in call_builtin() argument
1252 builtin_argv0 = wp[0]; in call_builtin()
1257 rv = (*tp->val.f)(wp); in call_builtin()
1653 if (!*te->pos.wp) in dbteste_isa()
1657 for (p = *te->pos.wp; *p == CHAR; p += 2) in dbteste_isa()
[all …]
Dmain.c166 const char *ccp, **wp; in main() local
306 for (wp = (const char **)environ; *wp != NULL; wp++) in main()
307 typeset(*wp, IMPORT | EXPORT, 0, 0, 0); in main()
328 for (wp = initcoms; *wp != NULL; wp++) { in main()
329 shcomexec(wp); in main()
330 while (*wp != NULL) in main()
331 wp++; in main()
Dmisc.c1639 c_cd(const char **wp) in c_cd() argument
1651 while ((optc = ksh_getopt(wp, &builtin_opt, "eLP")) != -1) in c_cd()
1665 wp += builtin_opt.optind; in c_cd()
1675 if (!wp[0]) { in c_cd()
1681 } else if (!wp[1]) { in c_cd()
1683 strdupx(allocd, wp[0], ATEMP); in c_cd()
1694 } else if (!wp[2]) { in c_cd()
1709 if ((cp = strstr(current_wd, wp[0])) == NULL) { in c_cd()
1720 olen = strlen(wp[0]); in c_cd()
1721 nlen = strlen(wp[1]); in c_cd()
[all …]
/external/libppp/src/
Dpred.c179 u_char *cp, *wp, *hp; in Pred1Output() local
186 hp = wp = MBUF_CTOP(mwp); in Pred1Output()
188 *wp++ = *cp++ = orglen >> 8; in Pred1Output()
189 *wp++ = *cp++ = orglen & 0377; in Pred1Output()
196 len = compress(state, bufp + 2, wp, orglen); in Pred1Output()
201 wp += len; in Pred1Output()
204 memcpy(wp, bufp + 2, orglen); in Pred1Output()
205 wp += orglen; in Pred1Output()
209 *wp++ = fcs & 0377; in Pred1Output()
210 *wp++ = fcs >> 8; in Pred1Output()
[all …]
Dasync.c86 u_char *wp; in async_Encode() local
88 wp = *cp; in async_Encode()
91 *wp++ = HDLC_ESC; in async_Encode()
95 *wp++ = HDLC_ESC; in async_Encode()
98 *wp++ = c; in async_Encode()
99 *cp = wp; in async_Encode()
108 struct mbuf *wp; in async_LayerPush() local
121 wp = bp; in async_LayerPush()
123 while (wp) { in async_LayerPush()
124 sp = MBUF_CTOP(wp); in async_LayerPush()
[all …]
Ddeflate.c73 u_char *wp, *rp; in DeflateOutput() local
97 wp = MBUF_CTOP(mo); in DeflateOutput()
98 *wp++ = state->seqno >> 8; in DeflateOutput()
99 *wp++ = state->seqno & 0377; in DeflateOutput()
104 state->cx.next_out = wp; in DeflateOutput()
203 u_char *wp; in DeflateInput() local
238 wp = MBUF_CTOP(mo); in DeflateInput()
239 wp[0] = '\0'; in DeflateInput()
248 state->cx.next_out = wp + 1; in DeflateInput()
282 if (!(wp[1] & 1)) { in DeflateInput()
[all …]
Dfilter.c247 char *wp; in filter_Parse() local
250 ruleno = strtol(*argv, &wp, 0); in filter_Parse()
251 if (*argv == wp || ruleno >= MAXFILTERS) { in filter_Parse()
273 val = strtol(*argv, &wp, 0); in filter_Parse()
274 if (!*wp && val >= 0 && val < MAXFILTERS) { in filter_Parse()
/external/elfutils/libasm/
Dasm_newscn.c65 char *wp = flagstr; in text_newscn() local
71 wp = stpcpy (wp, ", \""); in text_newscn()
74 *wp++ = 'w'; in text_newscn()
76 *wp++ = 'a'; in text_newscn()
78 *wp++ = 'x'; in text_newscn()
80 *wp++ = 'M'; in text_newscn()
82 *wp++ = 'S'; in text_newscn()
84 *wp++ = 'L'; in text_newscn()
86 *wp++ = '"'; in text_newscn()
94 *wp = '\0'; in text_newscn()
/external/chromium/net/http/
Dmd4.cc79 Uint8 *bp; const Uint32 *wp, *wpend; in w2b() local
82 wp = in; in w2b()
83 wpend = wp + (len >> 2); in w2b()
85 for (; wp != wpend; ++wp, bp += 4) in w2b()
87 bp[0] = (Uint8) ((*wp ) & 0xFF); in w2b()
88 bp[1] = (Uint8) ((*wp >> 8) & 0xFF); in w2b()
89 bp[2] = (Uint8) ((*wp >> 16) & 0xFF); in w2b()
90 bp[3] = (Uint8) ((*wp >> 24) & 0xFF); in w2b()
97 Uint32 *wp; const Uint8 *bp, *bpend; in b2w() local
99 wp = out; in b2w()
[all …]
/external/llvm/test/Transforms/LoopStrengthReduce/
Dphi_node_update_multiple_preds.ll13 %wp.2.4 = getelementptr i8* null, i64 %gep.upgrd.1 ; <i8*> [#uses=1]
16 %wp.2.4.rec = bitcast i32 %indvar37 to i32 ; <i32> [#uses=1]
17 %inc.1.rec = add i32 %wp.2.4.rec, 1 ; <i32> [#uses=1]
25 …%wp.2.7 = phi i8* [ null, %entry ], [ null, %entry ], [ %wp.2.4, %shortcirc_next ], [ %inc.1, %no_…
/external/ppp/pppd/
Dauth.c492 struct wordlist *wp; local
494 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
495 if (wp == NULL)
497 wp->word = (char *) (wp + 1);
498 wp->next = noauth_addrs;
499 BCOPY(addr, wp->word, l);
500 noauth_addrs = wp;
514 struct wordlist *wp; local
516 wp = (struct wordlist *) malloc(sizeof(struct wordlist) + l);
517 if (wp == NULL)
[all …]
/external/e2fsprogs/intl/
Dl10nflist.c374 char *wp; in _nl_normalize_codeset() local
391 wp = stpcpy (retval, "iso"); in _nl_normalize_codeset()
393 wp = retval; in _nl_normalize_codeset()
397 *wp++ = tolower ((unsigned char) codeset[cnt]); in _nl_normalize_codeset()
399 *wp++ = codeset[cnt]; in _nl_normalize_codeset()
401 *wp = '\0'; in _nl_normalize_codeset()
/external/qemu/
Dexec.c1368 CPUWatchpoint *wp; in cpu_watchpoint_insert() local
1376 wp = qemu_malloc(sizeof(*wp)); in cpu_watchpoint_insert()
1378 wp->vaddr = addr; in cpu_watchpoint_insert()
1379 wp->len_mask = len_mask; in cpu_watchpoint_insert()
1380 wp->flags = flags; in cpu_watchpoint_insert()
1384 QTAILQ_INSERT_HEAD(&env->watchpoints, wp, entry); in cpu_watchpoint_insert()
1386 QTAILQ_INSERT_TAIL(&env->watchpoints, wp, entry); in cpu_watchpoint_insert()
1391 *watchpoint = wp; in cpu_watchpoint_insert()
1400 CPUWatchpoint *wp; in cpu_watchpoint_remove() local
1402 QTAILQ_FOREACH(wp, &env->watchpoints, entry) { in cpu_watchpoint_remove()
[all …]
/external/grub/stage2/
Dgunzip.c370 static unsigned wp; variable
731 w = wp; /* initialize window position */ in inflate_codes_in_window()
837 wp = w; /* restore global window pointer */ in inflate_codes_in_window()
1104 wp = 0; in inflate_window()
1110 while (wp < WSIZE && !errnum) in inflate_window()
1131 int w = wp; in inflate_window()
1143 wp = w; in inflate_window()
/external/icu4c/tools/tzcode/
Dzic.c2164 register char * wp; local
2166 wp = ecpyalloc(_("no POSIX environment variable for zone"));
2167 wp = ecatalloc(wp, " ");
2168 wp = ecatalloc(wp, zpfirst->z_name);
2169 warning(wp);
2170 ifree(wp);
2869 register char * wp; local
2876 wp = NULL;
2881 wp = _("time zone abbreviation lacks alphabetic at start");
2883 wp = _("time zone abbreviation has more than 3 alphabetics");
[all …]
Dzdump.c229 register char * wp; local
234 wp = NULL;
238 wp = _("lacks alphabetic at start");
240 wp = _("has fewer than 3 alphabetics");
242 wp = _("has more than 6 alphabetics");
243 if (wp == NULL && (*cp == '+' || *cp == '-')) {
250 wp = _("differs from POSIX standard");
252 if (wp == NULL)
257 progname, zone, abbrp, wp);
/external/webkit/Source/WebCore/platform/graphics/win/
DMediaPlayerPrivateFullscreenWindow.cpp156 LPWINDOWPOS wp = reinterpret_cast<LPWINDOWPOS>(lParam); in wndProc() local
157 if (wp->flags & SWP_NOSIZE) in wndProc()
/external/clang/test/Analysis/
Ddead-stores.m107 int *wp = xxxxx.pathString;
108 return wp;
/external/qemu/distrib/sdl-1.2.15/src/audio/mme/
DSDL_mmeaudio.c112 WAVEHDR *wp = (WAVEHDR *) dwParam1; in MME_CALLBACK() local
115 inUse[wp->dwUser] = FALSE; in MME_CALLBACK()

123