/openbsd-current/games/hack/ |
H A D | hack.mkobj.c | 71 struct obj *otmp = mkobj(let); local 72 otmp->ox = x; 73 otmp->oy = y; 74 otmp->nobj = fobj; 75 fobj = otmp; 76 return(otmp); 82 struct obj *otmp = mksobj(otyp); local 83 otmp->ox = x; 84 otmp->oy = y; 85 otmp 109 struct obj *otmp; local [all...] |
H A D | hack.steal.c | 112 struct obj *otmp; local 114 for(otmp = invent; otmp; otmp = otmp->nobj) 115 if(otmp->o_id == stealoid) { 119 freeinv(otmp); 120 pline("%s steals %s!", Monnam(mtmp), doname(otmp)); 121 mpickobj(mtmp,otmp); 138 struct obj *otmp; local 217 mpickobj(struct monst *mtmp, struct obj *otmp) argument 226 struct obj *otmp; local 245 struct obj *otmp, *otmp2; local [all...] |
H A D | hack.do_wear.c | 74 off_msg(struct obj *otmp) argument 76 pline("You were wearing %s.", doname(otmp)); 82 struct obj *otmp; local 87 otmp = (!uarmh && !uarms && !uarmg) ? uarm : 92 if(!otmp) return(0); 93 if(!(otmp->owornmask & (W_ARMOR - W_ARM2))) { 97 if( otmp == uarmg && uwep && uwep->cursed ) { /* myers@uwmacc */ 101 (void) armoroff(otmp); 138 dorr(struct obj *otmp) argument 140 if(cursed(otmp)) retur 147 cursed(struct obj *otmp) argument 157 armoroff(struct obj *otmp) argument 184 struct obj *otmp; local 245 struct obj *otmp; local 371 struct obj *otmp; local [all...] |
H A D | hack.bones.c | 78 struct obj *otmp; local 91 otmp = invent; 92 while(otmp){ 93 otmp->ox = u.ux; 94 otmp->oy = u.uy; 95 otmp->age = 0; /* very long ago */ 96 otmp->owornmask = 0; 97 if(rn2(5)) otmp->cursed = 1; 98 if(!otmp->nobj){ 99 otmp [all...] |
H A D | hack.invent.c | 90 assigninvlet(struct obj *otmp) argument 97 for(obj = invent; obj; obj = obj->nobj) if(obj != otmp) { 101 if(i == otmp->invlet) otmp->invlet = 0; 103 if((i = otmp->invlet) && 110 otmp->invlet = (inuse[i] ? NOINVSYM : 118 struct obj *otmp; local 123 otmp = 0; 125 for(otmp = invent; /* otmp */; otm 178 struct obj *otmp; local 202 struct obj *otmp; local 271 struct obj *otmp; local 281 struct obj *otmp; local 292 struct obj *otmp; local 302 struct obj *otmp; local 348 struct obj *otmp; local 368 struct obj *otmp; local 512 ckunpaid(struct obj *otmp) argument 535 struct obj *otmp = invent; local 600 struct obj *otmp, *otmp2; local 639 struct obj *otmp; local 679 struct obj *otmp; local 712 struct obj *otmp; local 781 struct obj *otmp, *otmp0; local 840 struct obj *otmp = fobj; local 850 merged(struct obj *otmp, struct obj *obj, int lose) argument [all...] |
H A D | hack.wizard.c | 83 struct obj *otmp; local 91 for(otmp = invent; otmp; otmp = otmp->nobj) 92 if(otmp->olet == AMULET_SYM && !otmp->spe) { 115 struct obj *otmp; local 117 for(otmp = fobj; otmp; otm [all...] |
H A D | hack.eat.c | 166 struct obj *otmp; local 172 for(otmp = fobj; otmp; otmp = otmp->nobj) { 173 if(otmp->ox == u.ux && otmp->oy == u.uy && 174 otmp->olet == FOOD_SYM) { 176 (otmp->quan == 1) ? "is" : "are", 177 doname(otmp), 441 poisonous(struct obj *otmp) argument 448 eatcorpse(struct obj *otmp) argument [all...] |
H A D | hack.save.c | 161 struct obj *otmp; local 167 for(otmp = invent; otmp; otmp = otmp->nobj) 168 if(otmp->owornmask) 169 setworn(otmp, otmp->owornmask); 206 for(otmp = fobj; otmp; otm 240 struct obj *otmp, *otmp2; local [all...] |
H A D | hack.engrave.c | 207 struct obj *otmp; local 217 otmp = getobj("#-)/", "write with"); 218 if(!otmp) return(0); 220 if(otmp == &zeroobj) 221 otmp = 0; 222 if(otmp && otmp->otyp == WAN_FIRE && otmp->spe) { 224 otmp->spe--; 226 /* first wield otmp */ [all...] |
H A D | def.obj.h | 108 #define ONAME(otmp) ((char *) otmp->oextra) 109 #define OGOLD(otmp) (otmp->oextra[0])
|
H A D | hack.read.c | 97 { struct obj *otmp = some_armor(); local 98 if(!otmp) { 104 objects[otmp->otyp].oc_name); 105 otmp->rustfree = 1; 108 if(otmp->spe > 3 && rn2(otmp->spe)) { 110 objects[otmp->otyp].oc_name); 111 useup(otmp); 115 objects[otmp->otyp].oc_name); 116 otmp 122 struct obj *otmp = some_armor(); local 501 identify(struct obj *otmp) argument [all...] |
H A D | hack.potion.c | 75 struct obj *otmp,*objs; local 79 otmp = getobj("!", "drink"); 80 if(!otmp) return(0); 81 if(!strcmp(objects[otmp->otyp].oc_descr, "smoky") && !rn2(13)) { 85 switch(otmp->otyp){ 140 strange_feeling(otmp, "You feel threatened."); 155 strange_feeling(otmp, "You feel a pull downward."); 236 impossible("What a funny potion! (%u)", otmp->otyp); 243 if(otmp->dknown && !objects[otmp [all...] |
H A D | hack.apply.c | 222 struct obj *otmp; local 227 for(otmp = fcobj; otmp->nobj != obj; otmp = otmp->nobj) 228 if(!otmp->nobj) panic("out_ice_box"); 229 otmp->nobj = obj->nobj; 241 struct obj *otmp; local 243 for(otmp = fcobj; otmp; otm [all...] |
H A D | hack.shk.c | 594 struct obj *otmp = billobjs; local 598 while(otmp && otmp->nobj != obj) otmp = otmp->nobj; 599 if(otmp) otmp->nobj = obj->nobj; 676 splitbill(struct obj *obj, struct obj *otmp) argument 678 /* otmp has been split off from obj */ 686 if(bp->bquan < otmp 712 struct obj *otmp; local 902 struct obj *otmp = invent; local [all...] |
H A D | hack.zap.c | 85 /* bhitm: monster mtmp was hit by the effect of wand otmp */ 87 bhitm(struct monst *mtmp, struct obj *otmp) argument 90 switch(otmp->otyp) { 114 objects[otmp->otyp].oc_name_known = 1; 131 impossible("What an interesting wand (%u)", otmp->otyp); 136 /* object obj was hit by the effect of wand otmp */ 138 bhito(struct obj *obj, struct obj *otmp) argument 145 switch(otmp->otyp) { 182 impossible("What an interesting wand (%u)", otmp->otyp); 209 struct obj *otmp local 232 struct obj *otmp; local 374 struct obj *otmp; local [all...] |
H A D | hack.lev.c | 139 saveobjchn(int fd, struct obj *otmp) argument 145 while(otmp) { 146 otmp2 = otmp->nobj; 147 xl = otmp->onamelth; 149 bwrite(fd, otmp, xl + sizeof(struct obj)); 150 free(otmp); 151 otmp = otmp2;
|
H A D | hack.do_name.c | 171 struct obj *otmp, *otmp2; local 196 else for(otmp = invent; ; otmp = otmp->nobj){ 197 if(!otmp) 199 if(otmp->nobj == obj){ 200 otmp->nobj = otmp2;
|
H A D | hack.end.c | 223 struct obj *otmp; local 247 for(otmp = invent; otmp; otmp = otmp->nobj) { 248 if(otmp->olet == GEM_SYM){ 249 objects[otmp->otyp].oc_name_known = 1; 250 i = otmp->quan*objects[otmp->otyp].g_val; 252 worthlessct += otmp [all...] |
H A D | hack.do.c | 514 struct obj *otmp; local 516 otmp = newobj(0); 517 *otmp = *obj; /* copies whole structure */ 518 otmp->o_id = flags.ident++; 519 otmp->onamelth = 0; 522 otmp->quan -= num; 523 otmp->owt = weight(otmp); /* -= obj->owt ? */ 524 obj->nobj = otmp; 525 if(obj->unpaid) splitbill(obj,otmp); [all...] |
H A D | hack.wield.c | 124 chwepon(struct obj *otmp, int amount) argument 130 strange_feeling(otmp,
|
H A D | hack.mon.c | 418 struct obj *otmp; local 419 for(otmp = fobj; otmp; otmp = otmp->nobj) 420 if(likeobjs || otmp->olet == GEM_SYM) 422 objects[otmp->otyp].g_val != 0) 423 if((dd = DIST(omx,omy,otmp->ox,otmp->oy)) < mind){ 425 gx = otmp 527 struct obj *otmp; local [all...] |
H A D | hack.objnam.c | 392 aobjnam(struct obj *otmp, char *verb) argument 394 char *bp = xname(otmp); 397 if(otmp->quan != 1) { 398 snprintf(prefix, sizeof prefix, "%u ", otmp->quan); 405 if(otmp->quan != 1) 611 { struct obj *otmp; local 613 otmp = mksobj(typ); 615 otmp->owt += 15; 618 otmp->quan = cnt; 620 if(spe > 3 && spe > otmp [all...] |
H A D | hack.c | 154 struct obj *otmp; local 227 while ((otmp = sobj_at(ENORMOUS_ROCK, u.ux+u.dx, u.uy+u.dy))) { 244 delobj(otmp); 249 delobj(otmp); 258 delobj(otmp); 261 otmp->ox = rx; 262 otmp->oy = ry; 263 /* pobj(otmp); */ 264 if(cansee(rx,ry)) atl(rx,ry,otmp->olet); 858 struct obj *otmp local 880 struct obj *otmp = invent; local [all...] |
H A D | hack.pri.c | 378 struct obj *otmp; local 398 else if((otmp = o_at(x,y)) && room->typ != POOL) 399 atl(x,y,otmp->olet); 418 struct obj *otmp; local 426 else if(!Blind && (otmp = o_at(x,y))) tmp = otmp->olet;
|
/openbsd-current/regress/lib/libcrypto/aeswrap/ |
H A D | aes_wrap.c | 68 unsigned char *otmp = NULL, *ptmp = NULL; local 72 otmp = malloc(keylen + 8); 74 if (otmp == NULL || ptmp == NULL) 78 r = AES_wrap_key(&wctx, iv, otmp, key, keylen); 82 if (eout && memcmp(eout, otmp, keylen)) 87 r = AES_unwrap_key(&wctx, iv, ptmp, otmp, r); 97 free(otmp);
|