/ast/src/lib/libast/astsa/ |
H A D | vmalloc.c | 36 Vmalloc_t* vp; local 38 if (vp = newof(0, Vmalloc_t, 1, 0)) 40 vp->current = &vp->base; 41 vp->data = vp->current->data; 42 vp->size = sizeof(vp->current->data); 44 return vp; 48 _vm_close(register Vmalloc_t* vp) argument 66 _vm_resize(register Vmalloc_t* vp, void* o, unsigned long size) argument [all...] |
/ast/src/lib/libexpr/ |
H A D | exstash.c | 35 exstash(Sfio_t* sp, Vmalloc_t* vp) argument 39 return ((s = sfstruse(sp)) && (!vp || (s = vmstrdup(vp, s)))) ? s : exnospace();
|
/ast/src/cmd/ksh93/edit/ |
H A D | vi.c | 135 #define editb (*vp->ed) 138 #define putchar(c) ed_putchar(vp->ed,c) 217 register Vi_t *vp = ed->e_vi; local 235 if(!vp) 237 ed->e_vi = vp = newof(0,Vi_t,1,0); 238 vp->lastline = (genchar*)malloc(MAXLINE*CHARSIZE); 239 vp->direction = -1; 240 vp->ed = ed; 246 ed_setup(vp->ed,fd, reedit); 258 ioctl(fd,FIORDCHK,&vp 638 append(Vi_t *vp,int c, int mode) argument 663 backword(Vi_t *vp,int nwords, register int cmd) argument 707 cntlmode(Vi_t *vp) argument 1082 cursor(Vi_t *vp,register int x) argument 1102 cdelete(Vi_t *vp,register int nchars, int mode) argument 1149 del_line(register Vi_t *vp, int mode) argument 1189 delmotion(Vi_t *vp,int motion, int mode) argument 1244 endword(Vi_t *vp, int nwords, register int cmd) argument 1281 forward(Vi_t *vp,register int nwords, int cmd) argument 1321 getcount(register Vi_t *vp,register int c) argument 1362 getline(register Vi_t* vp,register int mode) argument 1596 mvcursor(register Vi_t* vp,register int motion) argument 1818 pr_string(register Vi_t *vp, register const char *sp) argument 1835 putstring(register Vi_t *vp,register int col, register int nchars) argument 1871 refresh(register Vi_t* vp, int mode) argument 2069 replace(register Vi_t *vp, register int c, register int increment) argument 2125 restore_v(register Vi_t *vp) argument 2152 save_last(register Vi_t* vp) argument 2173 save_v(register Vi_t *vp) argument 2198 curline_search(Vi_t *vp, const char *string) argument 2216 search(register Vi_t* vp,register int mode) argument 2301 sync_cursor(register Vi_t *vp) argument 2388 textmod(register Vi_t *vp,register int c, int mode) argument 2747 getrchar(register Vi_t *vp) argument [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | env.c | 90 register Evar_t *vp; local 103 for(vp=(Evar_t*)dtfirst(ep->dt);vp; vp=(Evar_t*)dtnext(ep->dt,vp)) 105 vp->index = (n<<ENV_BITS) | (vp->index&((1<<ENV_BITS)-1)); 106 ep->env[n++] = vp->un.ptr; 122 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); local 123 if(vp 168 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str); local 193 Evar_t *vp; local 232 Evar_t *vp, *vpnext,*top; local [all...] |
H A D | streval.c | 92 #define getchr(vp) (*(vp)->nextchr++) 93 #define peekchr(vp) (*(vp)->nextchr) 94 #define ungetchr(vp) ((vp)->nextchr--) 113 #define ERROR(vp,msg) return(seterror((vp),msg)) 118 static int _seterror(struct vars *vp,const char *msg) argument 120 if(!vp 504 gettok(register struct vars *vp) argument 572 expr(register struct vars *vp,register int precedence) argument [all...] |
H A D | nvdisc.c | 227 static void chktfree(register Namval_t *np, register struct vardisc *vp) argument 230 for(n=0; n< sizeof(vp->disc)/sizeof(*vp->disc); n++) 232 if(vp->disc[n]) 235 if(n>=sizeof(vp->disc)/sizeof(*vp->disc)) 250 register struct vardisc *vp = (struct vardisc*)handle; local 251 register Namval_t *nq = vp->disc[type]; 289 nq = vp->disc[type=UNASSIGN]; 300 if(!vp 371 register struct vardisc *vp = (struct vardisc*)handle; local 450 register struct vardisc *vp = (struct vardisc*)np->nvfun; local 560 register Nambfun_t *vp = (Nambfun_t*)fp; local 610 register Nambfun_t *vp = (Nambfun_t*)fp; local 653 register Nambfun_t *vp; local [all...] |
/ast/src/lib/libast/stdio/ |
H A D | _stdfun.c | 52 _stdfun(Sfio_t* f, Funvec_t* vp) argument 63 if (!vp->vec[1]) 70 if (bp && (vp->vec[1] = (Fun_f)dlsym(bp, vp->name))) 74 if (!(vp->vec[1] = (Fun_f)dlsym(np, vp->name)))
|
/ast/src/cmd/mailx/ |
H A D | vars.c | 84 register const struct var* vp; local 96 for (vp = state.vartab; vp->name; vp++) { 97 if ((vp->flags & E) && (s = getenv(vp->name)) && *s) 98 varset(vp->name, s); 99 else if (vp->initialize) 100 varset(vp->name, vp 194 register const struct var* vp; local 222 register struct var* vp; local 302 register struct var* vp; local 329 set_notyet(struct var* vp, const char* value) argument 342 set_askbcc(struct var* vp, const char* value) argument 355 set_askcc(struct var* vp, const char* value) argument 368 setheaders(struct var* vp, const char* value) argument 402 set_askheaders(struct var* vp, const char* value) argument 412 set_asksub(struct var* vp, const char* value) argument 425 set_coprocess(struct var* vp, const char* value) argument 442 set_crt(struct var* vp, const char* value) argument 453 set_editheaders(struct var* vp, const char* value) argument 463 set_justfrom(struct var* vp, const char* value) argument 477 set_list(struct var* vp, const char* value) argument 491 set_mail(struct var* vp, const char* value) argument 501 set_mailcap(struct var* vp, const char* value) argument 511 set_news(struct var* vp, const char* value) argument 522 set_pwd(struct var* vp, const char* value) argument 537 set_sender(struct var* vp, const char* value) argument 609 set_screen(struct var* vp, const char* value) argument 620 set_sendmail(struct var* vp, const char* value) argument 633 set_shell(struct var* vp, const char* value) argument 644 set_spambody(struct var* vp, const char* value) argument 689 set_toplines(struct var* vp, const char* value) argument 700 set_trace(struct var* vp, const char* value) argument 716 set_user(struct var* vp, const char* value) argument [all...] |
/ast/src/lib/libdll/ |
H A D | dllnext.c | 65 register char* vp; local 79 if (getenv("DLL_DEBUG") && (vp = (char*)_rld_new_interface(_RLD_FIRST_PATHNAME))) 83 if (strcmp(vp, "MAIN") && (lp = dllopen(vp, flags))) 88 } while (vp = (char*)_rld_new_interface(_RLD_NEXT_PATHNAME)); 91 if (vp = (char*)_rld_new_interface(_RLD_FIRST_PATHNAME)) 95 if (lp = dllopen(strcmp(vp, "MAIN") ? vp : (char*)0, flags)) 100 s = vp; 139 (*wr)(2, buf, sfsprintf(buf, sizeof(buf), "dll: next %s\n", vp)); [all...] |
/ast/src/lib/libast/comp/ |
H A D | getsubopt.c | 42 getsubopt(register char** op, char* const* tp, char** vp) 75 *vp = v; 80 *vp = b;
|
/ast/src/lib/libcs/ |
H A D | msgsend.c | 41 register struct statvfs* vp; local 102 vp = (struct statvfs*)data; 103 msgputu(&b, e, vp->f_bsize); 104 msgputu(&b, e, vp->f_frsize); 105 msgputu(&b, e, vp->f_blocks); 106 msgputu(&b, e, vp->f_bfree); 107 msgputu(&b, e, vp->f_bavail); 108 msgputu(&b, e, vp->f_files); 109 msgputu(&b, e, vp->f_ffree); 110 msgputu(&b, e, vp [all...] |
H A D | msgblast.c | 46 char** vp = (char**)msg->value; local 80 (ap++)->array = np = (long*)vp; 89 vp = (char**)np; 92 (ap++)->file = ip = (Msg_file_t*)vp; 95 vp = (char**)(((char*)ip) + sizeof(*ip)); 111 (ap++)->pointer = (void*)(dp = (struct dirent*)vp); 131 (ap++)->number = (char*)dp - (char*)vp; 136 (ap++)->file = ip = (Msg_file_t*)vp; 143 vp = (char**)ip; 146 (ap++)->pointer = (void*)(sp = (struct stat*)vp); [all...] |
H A D | msguser.c | 53 char** vp; local 275 if (vp = va_arg(ap, char**)) 283 while ((p = *vp++) && (n += (m = strlen(p)) + 4) < MSG_SIZE_IO / 2) 405 struct statvfs* vp; local 503 vp = va_arg(ap, struct statvfs*); 504 vp->f_bsize = msggetu(&b, e); 505 vp->f_frsize = msggetu(&b, e); 506 vp->f_blocks = msggetu(&b, e); 507 vp->f_bfree = msggetu(&b, e); 508 vp [all...] |
/ast/src/cmd/tests/aso/ |
H A D | taso.c | 28 void *vp, *rp; local 104 vp = (void*)1; 105 if ((rp = asocasptr(&vp, (void*)1, (void*)2)) != (void*)1) 107 else if (vp != (void*)2) 108 terror("asocasptr value failed -- expected %p, got %p", (void*)2, vp); 109 else if ((rp = asocasptr(&vp, (void*)1, (void*)3)) != (void*)2) 111 else if (vp != (void*)2) 112 terror("asocasptr value failed -- expected %p, got %p", (void*)2, vp);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_checkout.c | 27 int checkout(rp, vp) 29 register version_t* vp; 43 if (vp->tp == NULL) 45 vp->tp = tp = (tag_t *)malloc(sizeof(tag_t)); 50 if (lookup_tag(NULL, rp->fd, ap, vp->version, vp->domain, &tp, 0)) 53 if (search_tag(rp->fd, ap, vp->version, vp->domain, &tp, G_LINK, &dir)) 55 if ((marker = getmarkerbyfrom(dir, vp->tp->version))) 70 tp = vp [all...] |
/ast/src/lib/libdss/ |
H A D | dssprintf.c | 87 getfmt(Sfio_t* sp, void* vp, Sffmt_t* dp) argument 91 Value_t* value = (Value_t*)vp; 597 Cxvariable_t* vp; local 602 for (vp = (Cxvariable_t*)dtfirst(dss->meth->cx->fields); vp; vp = (Cxvariable_t*)dtnext(dss->meth->cx->fields, vp), n++) 603 if (!(vp->header.flags & CX_DEPRECATED) && q < (l = strlen(vp->name))) 608 for (vp [all...] |
H A D | dssopt.c | 217 Cxvariable_t* vp; local 345 for (vp = (Cxvariable_t*)dtfirst(meth->cx->variables); vp; vp = (Cxvariable_t*)dtnext(meth->cx->variables, vp)) 346 if (vp->prototype) 354 if (optout(sp, vp->name, vp->prototype, NiL, vp->type->name, vp [all...] |
/ast/src/cmd/kshlib/dss/ |
H A D | dss.c | 258 Cxvariable_t *vp = vnode(np); local 262 in.data.variable = vp; 263 op->type = vp->type; 273 Cxvariable_t *vp = vnode(np); local 278 if(cxisnumber(vp->type)) 295 Cxvariable_t *vp = vnode(np); local 313 if(cxcast(dp->cx,&ret,vp,dp->state->type_buffer,rp,(char*)0)==0) 319 else if(cxcast(dp->cx,&ret,vp,dp->state->type_string,rp,(char*)0)==0) 333 Cxvariable_t *vp = vnode(np); local 340 if(cxisnumber(vp 356 Cxvariable_t *vp = vnode(np); local 371 Cxvariable_t *vp = vnode(np); local 416 Cxvariable_t *vp = vnode(np); local 454 node(Cxvariable_t *vp,struct parent *dp) argument 561 Cxvariable_t *vp; local 751 Cxvariable_t *vp=0; local 932 Cxvariable_t *vp=0; local 1144 Cxvariable_t *vp; local 1419 Cxvariable_t *vp = vnode(np); local [all...] |
/ast/src/lib/libast/hash/ |
H A D | hashalloc.c | 49 va_list* vp = va; local 149 if (vp < &va[elementsof(va)]) 151 va_copy(*vp, ap); 152 vp++; 157 if (vp > va) 159 vp--; 160 va_copy(ap, *vp);
|
/ast/src/cmd/pzip/ |
H A D | pcmp.c | 71 static Sfio_t* vp; local 73 if (!dp && !(dp = sfstropen()) || !vp && !(vp = sfstropen())) 85 sfputc(vp, p[i] = f[i]); 91 sfputc(vp, p[i] = f[i]); 100 fsize = sfstrtell(vp); 102 sfwrite(dp, sfstrseek(vp, 0, SEEK_SET), fsize);
|
/ast/src/lib/libjcl/ |
H A D | find.c | 88 * return expanded value returned in jcl->vp 102 Sfio_t* vp; local 133 if ((flags & JCL_SYM_SET) && jcl->vp != jcl->xp) 135 vp = jcl->vp; 136 jcl->vp = jcl->xp; 139 jcl->vp = vp; 157 sfputr(jcl->vp, s, -1); 158 if (!(s = sfstruse(jcl->vp))) [all...] |
/ast/src/cmd/coshell/ |
H A D | misc.c | 140 * compare the string value vp with the string (sb,se-1) 144 misccmp(char* vp, int op, char* sb, char* se) argument 155 r = (strmatch(vp, sb) || strchr(vp, '|') && strmatch(sb, vp)) == (op == EQ); 158 r = strcoll(vp, sb) < 0; 161 r = strcoll(vp, sb) <= 0; 164 r = strcoll(vp, sb) >= 0; 167 r = strcoll(vp, sb) > 0;
|
/ast/src/cmd/tests/sfio/ |
H A D | tscanf.c | 53 extf(Sfio_t* sp, Void_t* vp, Sffmt_t* dp) argument 55 extf(sp, vp, dp) 57 Void_t* vp; 64 *((Void_t**)vp) = fmt->args[fmt->arg++]; 76 Void_t* vp; local 203 sfsscanf(s, "%p", &vp); 204 if(vp != (Void_t*)sf)
|
/ast/src/cmd/dsslib/xml/ |
H A D | xml.c | 252 o = vp - f->value; \ 261 vp = vb + o; \ 275 register char* vp; local 286 vp = vb = f->value; 340 ((Value_t*)v->data)->offset = vp - vb; 342 if (vp >= ve) 344 *vp++ = '1'; 345 if (vp >= ve) 347 *vp++ = 0; 412 ((Value_t*)v->data)->offset = vp 653 register char* vp; local [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | itlie.h | 193 ITLINT* vp; local 259 if (!(vp = vmnewof(vm, 0, ITLINT, z, 0))) 265 memcpy(vp, sfstrseek(sp, 0, SEEK_SET), z * sizeof(n)); 267 vp[o] = z - o; 270 vp = 0; 271 value->buffer.data = vp;
|