Searched refs:otmp (Results 1 - 25 of 144) sorted by relevance

123456

/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h68 #define greatest_erosion(otmp) (int)((otmp)->oeroded > (otmp)->oeroded2 ? (otmp)->oeroded : (otmp)->oeroded2)
113 #define ONAME(otmp) (((char *)(otmp)->oextra) + (otmp)->oxlth)
117 * #define is_sword(otmp) (otmp
[all...]
H A Dobjclass.h66 #define is_organic(otmp) (objects[otmp->otyp].oc_material <= WOOD)
67 #define is_metallic(otmp) (objects[otmp->otyp].oc_material >= IRON && \
68 objects[otmp->otyp].oc_material <= MITHRIL)
71 /* is_flammable(otmp), is_rottable(otmp) in mkobj.c */
72 #define is_rustprone(otmp) (objects[otmp->otyp].oc_material == IRON)
75 #define is_corrodeable(otmp) (object
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/include/
H A Dobj.h68 #define greatest_erosion(otmp) (int)((otmp)->oeroded > (otmp)->oeroded2 ? (otmp)->oeroded : (otmp)->oeroded2)
113 #define ONAME(otmp) (((char *)(otmp)->oextra) + (otmp)->oxlth)
117 * #define is_sword(otmp) (otmp
[all...]
H A Dobjclass.h66 #define is_organic(otmp) (objects[otmp->otyp].oc_material <= WOOD)
67 #define is_metallic(otmp) (objects[otmp->otyp].oc_material >= IRON && \
68 objects[otmp->otyp].oc_material <= MITHRIL)
71 /* is_flammable(otmp), is_rottable(otmp) in mkobj.c */
72 #define is_rustprone(otmp) (objects[otmp->otyp].oc_material == IRON)
75 #define is_corrodeable(otmp) (object
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dmkobj.c87 struct obj *otmp; local
89 otmp = mkobj(let, artif);
90 place_object(otmp, x, y);
91 return(otmp);
99 struct obj *otmp; local
101 otmp = mksobj(otyp, init, artif);
102 place_object(otmp, x, y);
103 return(otmp);
142 register struct obj *otmp; local
161 if (!(otmp
231 struct obj *otmp; local
369 struct obj *otmp; local
914 register struct obj *otmp; local
959 struct obj *otmp; local
982 struct obj *otmp; local
1039 register struct obj *otmp, *otmp2; local
1059 struct obj *otmp; local
1145 struct obj *otmp; local
1275 struct obj *otmp; local
1393 struct obj *otmp; local
1418 struct obj *otmp; local
[all...]
H A Dsteal.c14 equipname(otmp)
15 register struct obj *otmp;
19 (otmp == uarmu) ? "shirt" :
21 (otmp == uarmf) ? "boots" :
22 (otmp == uarms) ? "shield" :
23 (otmp == uarmg) ? "gloves" :
24 (otmp == uarmc) ? cloak_simple_name(otmp) :
25 (otmp == uarmh) ? "helmet" : "armor");
149 register struct obj *otmp; local
237 struct obj *otmp; local
478 struct obj *otmp = (struct obj *)0; local
561 struct obj *obj, *otmp; local
581 register struct obj *otmp; local
[all...]
H A Dbones.c61 struct obj *otmp; local
63 for (otmp = ochain; otmp; otmp = otmp->nobj) {
64 if (otmp->cobj)
65 resetobjs(otmp->cobj,restore);
67 if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
68 && otmp
126 struct obj *otmp; local
250 struct obj *otmp; local
[all...]
H A Ddo_wear.c64 off_msg(otmp)
65 register struct obj *otmp;
68 You("were wearing %s.", doname(otmp));
73 on_msg(otmp)
74 register struct obj *otmp;
80 if (otmp->otyp == TOWEL)
83 obj_is_pname(otmp) ? the(xname(otmp)) : an(xname(otmp)),
908 Blindf_on(otmp)
1049 register struct obj *otmp = (struct obj *)0; local
1112 register struct obj *otmp = 0; local
1403 struct obj *otmp; local
1465 register struct obj *otmp; local
1625 register struct obj *otmp; local
1689 register struct obj *otmph, *otmp; local
1874 register struct obj *otmp = (struct obj *)0; local
1935 register struct obj *otmp; local
2107 register struct obj *otmp; local
[all...]
H A Dinvent.c48 assigninvlet(otmp)
49 register struct obj *otmp;
57 if (otmp->oclass == COIN_CLASS) {
58 otmp->invlet = GOLD_SYM;
64 for(obj = invent; obj; obj = obj->nobj) if(obj != otmp) {
68 if(i == otmp->invlet) otmp->invlet = 0;
70 if((i = otmp->invlet) &&
77 otmp->invlet = (inuse[i] ? NOINVSYM :
92 struct obj *otmp, *pre local
161 register struct obj *otmp = *potmp, *obj = *pobj; local
304 struct obj *otmp, *prev; local
544 struct obj *otmp, *otmp2; local
591 register struct obj *otmp; local
606 register struct obj *otmp; local
625 register struct obj *otmp; local
654 register struct obj *otmp; local
684 register struct obj *otmp; local
757 register struct obj *otmp; local
1376 struct obj *otmp, *otmp2, *otmpo; local
1698 struct obj *otmp; local
1877 struct obj *otmp, *marker; local
2157 struct obj *otmp; local
2312 struct obj *otmp; local
2505 struct obj *otmp; local
2523 struct obj *otmp; local
2544 register struct obj *otmp; local
2648 struct obj *obj, *otmp; local
[all...]
H A Deat.c311 touchfood(otmp)
312 register struct obj *otmp;
314 if (otmp->quan > 1L) {
315 if(!carried(otmp))
316 (void) splitobj(otmp, otmp->quan - 1L);
318 otmp = splitobj(otmp, 1L);
324 if (!otmp->oeaten) {
325 if(((!carried(otmp)
1601 register struct obj *otmp = victual.piece; local
1870 register struct obj *otmp; local
2405 register struct obj *otmp; local
[all...]
H A Dsit.c20 struct obj *otmp, *nobj;
22 for (otmp = invent; otmp; otmp = nobj) {
23 nobj = otmp->nobj;
24 if (otmp->oclass == COIN_CLASS) {
26 delobj(otmp);
316 struct obj *otmp; local
329 for (otmp = invent; otmp; otm
[all...]
H A Dworn.c149 struct obj *otmp; local
179 for (otmp = mon->minvent; otmp; otmp = otmp->nobj)
180 if (otmp->owornmask && objects[otmp->otyp].oc_oprop == FAST)
182 if (otmp) /* speed boots */
218 struct obj *otmp; local
291 for (otmp
548 struct obj *otmp, *nobj; local
598 register struct obj *otmp; local
[all...]
H A Dartifact.c117 If no alignment is given, then 'otmp' is converted
123 mk_artifact(otmp, alignment)
124 struct obj *otmp; /* existing object; ignored if alignment specified */
130 short o_typ = (by_align || !otmp) ? 0 : otmp->otyp;
131 boolean unique = !by_align && otmp && objects[o_typ].oc_unique;
153 make_artif: if (by_align) otmp = mksobj((int)a->otyp, TRUE, FALSE);
154 otmp = oname(otmp, a->name);
155 otmp
1258 struct obj *otmp = getobj(recharge_type, "charge"); local
1334 struct obj *otmp = mksobj(ARROW, TRUE, FALSE); local
[all...]
H A Drestore.c72 register struct obj *otmp; local
83 while ((otmp = fobj) != 0) {
84 fobj = otmp->nobj;
85 otmp->nobj = fobjtmp;
86 otmp->where = OBJ_FREE;
87 fobjtmp = otmp;
92 while ((otmp = fobjtmp) != 0) {
93 fobjtmp = otmp->nobj;
94 place_object(otmp, otmp
105 register struct obj *otmp, *otmp2; local
198 register struct obj *otmp, *otmp2 = 0; local
363 struct obj *otmp; local
550 struct obj *otmp; local
976 struct obj *otmp; local
[all...]
H A Dweapon.c122 * of "otmp" against the monster.
125 hitval(otmp, mon)
126 struct obj *otmp;
131 boolean Is_weapon = (otmp->oclass == WEAPON_CLASS || is_weptool(otmp));
134 tmp += otmp->spe;
137 tmp += objects[otmp->otyp].oc_hitbon;
142 if (Is_weapon && otmp->blessed &&
145 if (is_spear(otmp) &&
149 if (otmp
328 struct obj *otmp; local
361 register struct obj *otmp; local
488 register struct obj *otmp; local
[all...]
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dmkobj.c87 struct obj *otmp; local
89 otmp = mkobj(let, artif);
90 place_object(otmp, x, y);
91 return(otmp);
99 struct obj *otmp; local
101 otmp = mksobj(otyp, init, artif);
102 place_object(otmp, x, y);
103 return(otmp);
142 register struct obj *otmp; local
161 if (!(otmp
231 struct obj *otmp; local
369 struct obj *otmp; local
914 register struct obj *otmp; local
959 struct obj *otmp; local
982 struct obj *otmp; local
1039 register struct obj *otmp, *otmp2; local
1059 struct obj *otmp; local
1145 struct obj *otmp; local
1275 struct obj *otmp; local
1393 struct obj *otmp; local
1418 struct obj *otmp; local
[all...]
H A Dsteal.c14 equipname(otmp)
15 register struct obj *otmp;
19 (otmp == uarmu) ? "shirt" :
21 (otmp == uarmf) ? "boots" :
22 (otmp == uarms) ? "shield" :
23 (otmp == uarmg) ? "gloves" :
24 (otmp == uarmc) ? cloak_simple_name(otmp) :
25 (otmp == uarmh) ? "helmet" : "armor");
149 register struct obj *otmp; local
237 struct obj *otmp; local
478 struct obj *otmp = (struct obj *)0; local
561 struct obj *obj, *otmp; local
581 register struct obj *otmp; local
[all...]
H A Dbones.c61 struct obj *otmp; local
63 for (otmp = ochain; otmp; otmp = otmp->nobj) {
64 if (otmp->cobj)
65 resetobjs(otmp->cobj,restore);
67 if (((otmp->otyp != CORPSE || otmp->corpsenm < SPECIAL_PM)
68 && otmp
126 struct obj *otmp; local
250 struct obj *otmp; local
[all...]
H A Ddo_wear.c64 off_msg(otmp)
65 register struct obj *otmp;
68 You("were wearing %s.", doname(otmp));
73 on_msg(otmp)
74 register struct obj *otmp;
80 if (otmp->otyp == TOWEL)
83 obj_is_pname(otmp) ? the(xname(otmp)) : an(xname(otmp)),
908 Blindf_on(otmp)
1049 register struct obj *otmp = (struct obj *)0; local
1112 register struct obj *otmp = 0; local
1403 struct obj *otmp; local
1465 register struct obj *otmp; local
1625 register struct obj *otmp; local
1689 register struct obj *otmph, *otmp; local
1874 register struct obj *otmp = (struct obj *)0; local
1935 register struct obj *otmp; local
2107 register struct obj *otmp; local
[all...]
H A Dinvent.c48 assigninvlet(otmp)
49 register struct obj *otmp;
57 if (otmp->oclass == COIN_CLASS) {
58 otmp->invlet = GOLD_SYM;
64 for(obj = invent; obj; obj = obj->nobj) if(obj != otmp) {
68 if(i == otmp->invlet) otmp->invlet = 0;
70 if((i = otmp->invlet) &&
77 otmp->invlet = (inuse[i] ? NOINVSYM :
92 struct obj *otmp, *pre local
161 register struct obj *otmp = *potmp, *obj = *pobj; local
304 struct obj *otmp, *prev; local
544 struct obj *otmp, *otmp2; local
591 register struct obj *otmp; local
606 register struct obj *otmp; local
625 register struct obj *otmp; local
654 register struct obj *otmp; local
684 register struct obj *otmp; local
757 register struct obj *otmp; local
1376 struct obj *otmp, *otmp2, *otmpo; local
1698 struct obj *otmp; local
1877 struct obj *otmp, *marker; local
2157 struct obj *otmp; local
2312 struct obj *otmp; local
2505 struct obj *otmp; local
2523 struct obj *otmp; local
2544 register struct obj *otmp; local
2648 struct obj *obj, *otmp; local
[all...]
H A Deat.c311 touchfood(otmp)
312 register struct obj *otmp;
314 if (otmp->quan > 1L) {
315 if(!carried(otmp))
316 (void) splitobj(otmp, otmp->quan - 1L);
318 otmp = splitobj(otmp, 1L);
324 if (!otmp->oeaten) {
325 if(((!carried(otmp)
1601 register struct obj *otmp = victual.piece; local
1870 register struct obj *otmp; local
2405 register struct obj *otmp; local
[all...]
H A Dsit.c20 struct obj *otmp, *nobj;
22 for (otmp = invent; otmp; otmp = nobj) {
23 nobj = otmp->nobj;
24 if (otmp->oclass == COIN_CLASS) {
26 delobj(otmp);
316 struct obj *otmp; local
329 for (otmp = invent; otmp; otm
[all...]
H A Dworn.c149 struct obj *otmp; local
179 for (otmp = mon->minvent; otmp; otmp = otmp->nobj)
180 if (otmp->owornmask && objects[otmp->otyp].oc_oprop == FAST)
182 if (otmp) /* speed boots */
218 struct obj *otmp; local
291 for (otmp
548 struct obj *otmp, *nobj; local
598 register struct obj *otmp; local
[all...]
H A Dartifact.c117 If no alignment is given, then 'otmp' is converted
123 mk_artifact(otmp, alignment)
124 struct obj *otmp; /* existing object; ignored if alignment specified */
130 short o_typ = (by_align || !otmp) ? 0 : otmp->otyp;
131 boolean unique = !by_align && otmp && objects[o_typ].oc_unique;
153 make_artif: if (by_align) otmp = mksobj((int)a->otyp, TRUE, FALSE);
154 otmp = oname(otmp, a->name);
155 otmp
1258 struct obj *otmp = getobj(recharge_type, "charge"); local
1334 struct obj *otmp = mksobj(ARROW, TRUE, FALSE); local
[all...]
H A Drestore.c72 register struct obj *otmp; local
83 while ((otmp = fobj) != 0) {
84 fobj = otmp->nobj;
85 otmp->nobj = fobjtmp;
86 otmp->where = OBJ_FREE;
87 fobjtmp = otmp;
92 while ((otmp = fobjtmp) != 0) {
93 fobjtmp = otmp->nobj;
94 place_object(otmp, otmp
105 register struct obj *otmp, *otmp2; local
198 register struct obj *otmp, *otmp2 = 0; local
363 struct obj *otmp; local
550 struct obj *otmp; local
976 struct obj *otmp; local
[all...]

Completed in 100 milliseconds

123456