/netbsd-src/games/battlestar/ |
H A D | command4.c | 62 if ((testbit(from, value) || wiz || tempwiz) && in take() 63 heavy && bulky && !testbit(inven, value)) { in take() 68 if (testbit(from, value)) in take() 75 } else if (testbit(inven, value)) in take() 79 else if (!testbit(from, value)) in take() 101 if (testbit(from, SWORD)) { in take() 105 if (testbit(from, TWO_HANDED)) { in take() 115 if (testbit(from, MAID)) { in take() 119 } else if (testbit(from, DEADWOOD)) { in take() 123 } else if (testbit(from, DEADNATIVE)) { in take() [all …]
|
H A D | command3.c | 46 if (testbit(inven, SHOVEL)) { in dig() 98 if (testbit(inven, n)) { in jump() 112 if (testbit(inven, SHOVEL)) { in bury() 118 (testbit(location[position].objects, value) || in bury() 123 if (testbit(inven, MAID) || in bury() 124 testbit(location[position].objects, MAID)) in bury() 126 if (testbit(inven, DEADWOOD) || in bury() 127 testbit(location[position].objects, in bury() 130 if (testbit(inven, DEADGOD) || in bury() 131 testbit(location[position].objects, in bury() [all …]
|
H A D | command7.c | 73 if (testbit(inven, TWO_HANDED)) in fight() 76 else if (testbit(inven, SWORD) || testbit(inven, BROAD)) in fight() 80 else if (testbit(inven, KNIFE) || testbit(inven, MALLET) || in fight() 81 testbit(inven, CHAIN) || testbit(inven, MACE) || in fight() 82 testbit(inven, HALBERD)) in fight() 196 if (testbit(inven, AMULET) || testbit(wear, AMULET)) { in fight() 198 if (testbit(inven, MEDALION) || in fight() 199 testbit(wear, MEDALION)) { in fight() 211 if (testbit(inven, AMULET)) { in fight() 245 if (testbit(inven, LASER)) { in fight() [all …]
|
H A D | command2.c | 85 if (testbit(inven, value)) { in wearit() 94 if (testbit(wear, value)) { in wearit() 140 if (wordvalue[wordnumber] == AMULET && testbit(inven, AMULET) && in use() 143 if (testbit(inven, MEDALION)) { in use() 167 else if (wordvalue[wordnumber] == COMPASS && testbit(inven, COMPASS)) in use() 186 n == HALBERD) && testbit(inven, n)) && n < NUMOFOBJECTS; in murder() 189 if (testbit(inven, LASER)) { in murder() 221 if (testbit(location[position].objects, BATHGOD)) { in murder() 229 if (testbit(location[position].objects, in murder() 247 if (testbit(location[position].objects, TIMER)) { in murder() [all …]
|
H A D | command1.c | 50 testbit(location[position].objects, LAND) || in moveplayer() 146 if ((testbit(inven, TALISMAN) || testbit(wear, TALISMAN)) && in news() 147 (testbit(inven, MEDALION) || testbit(wear, MEDALION)) && in news() 148 (testbit(inven, AMULET) || testbit(wear, AMULET))) { in news() 153 if (testbit(location[position].objects, ELF)) { in news() 157 if (testbit(location[position].objects, DARK)) { in news() 161 if (testbit(location[position].objects, WOODSMAN)) { in news() 181 if (testbit(location[position].objects, GIRL)) in news() 198 if (testbit(location[position].objects, CYLON)) { in news() 259 (testbit(location[position].objects, LAND) && fuel <= 0)) { in crash()
|
H A D | cypher.c | 124 if (testbit(location[position].objects, in cypher() 144 if (testbit(location[position].objects, in cypher() 195 if (testbit(inven, n)) { in cypher() 216 if (testbit(inven, n) || in cypher() 217 (testbit(location[position].objects, n) && objsht[n])) { in cypher() 237 if (testbit(wear, n)) { in cypher() 255 if (testbit(wear, n)) { in cypher() 273 if (testbit(location[position].objects, in cypher() 292 if (testbit(inven, n)) { in cypher() 310 if (testbit(inven, n)) { in cypher() [all …]
|
H A D | command5.c | 50 && testbit(location[position].objects, BATHGOD)) { in kiss() 56 if (testbit(location[position].objects, in kiss() 107 if ((testbit(location[position].objects, BATHGOD) || in love() 108 testbit(location[position].objects, NORMGOD)) && in love() 159 if (testbit(location[position].objects, in love() 216 while (!testbit(inven, n)) in zzz() 340 if (person && testbit(location[position].objects, person)) { in give() 351 if (result != -1 && (testbit(location[position].objects, obj) || in give()
|
H A D | command6.c | 49 if (testbit(location[position].objects, VIPER) && !notes[CANTLAUNCH]) { in launch() 71 if (notes[LAUNCHED] && testbit(location[position].objects, LAND) && in land() 185 if (testbit(location[position].objects, CAR)) { in drive() 203 if (testbit(location[position].objects, HORSE)) { in ride() 231 if (testbit(inven, MATCHES) && matchcount) { in light()
|
H A D | battlestar.c | 81 if (!notes[CANTSEE] || testbit(inven, LAMPON) || in main() 82 testbit(location[position].objects, LAMPON)) { in main()
|
H A D | misc.c | 62 if (testbit(array, n)) in ucard()
|
H A D | room.c | 75 if (testbit(p, n) && objdes[n]) in printobjs()
|
H A D | extern.h | 50 #define testbit(array, index) (array[index/BITS] & (1U << (index % BITS))) macro
|
/netbsd-src/external/mit/lua/dist/src/ |
H A D | lgc.h | 69 #define testbit(x,b) testbits(x, bitmask(b)) macro 90 #define isblack(x) testbit((x)->marked, BLACKBIT) 94 #define tofinalize(x) testbit((x)->marked, FINALIZEDBIT)
|
H A D | lgc.c | 1655 while (!testbit(statesmask, g->gcstate)) in luaC_runtilstate()
|