/dragonfly/games/hack/ |
H A D | def.rm.h | 84 #define IS_WALL(typ) ((typ) <= VWALL) argument 85 #define IS_ROCK(typ) ((typ) < POOL) /* absolutely nonaccessible */ argument 86 #define ACCESSIBLE(typ) ((typ) >= DOOR) /* good position */ argument 87 #define IS_ROOM(typ) ((typ) >= ROOM) /* ROOM or STAIRS */ argument 88 #define ZAP_POS(typ) ((typ) > DOOR) argument 109 unsigned typ:5; member
|
H A D | hack.vault.c | 133 if (!crm->typ) in restfakecorr() 191 if (levl[x][y].typ == CORR) in invault() 256 levl[x][y].typ = DOOR; in invault() 286 if (!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) { in gd_move() 300 if (ACCESSIBLE(typ)) in gd_move() 302 crm->typ = (typ == SCORR) ? CORR : DOOR; in gd_move() 318 while ((typ = (crm = &levl[nx][ny])->typ) != 0) { in gd_move() 326 crm->typ = DOOR; in gd_move() 341 crm->typ = DOOR; in gd_move() 344 crm->typ = CORR; in gd_move() [all …]
|
H A D | hack.mklev.c | 391 if (levl[x][y].typ == DOOR || levl[x][y].typ == SDOOR) in finddpos() 406 if (levl[x - 1][y].typ == DOOR || levl[x + 1][y].typ == DOOR || in okdoor() 407 levl[x][y + 1].typ == DOOR || levl[x][y - 1].typ == DOOR || in okdoor() 408 levl[x - 1][y].typ == SDOOR || levl[x + 1][y].typ == SDOOR || in okdoor() 410 (levl[x][y].typ != HWALL && levl[x][y].typ != VWALL) || in okdoor() 642 } else if (crm->typ != CORR && crm->typ != SCORR) { in join() 655 if (!crm->typ || crm->typ == CORR || crm->typ == SCORR) { in join() 664 if (!crm->typ || crm->typ == CORR || crm->typ == SCORR) { in join() 672 if (!crm->typ || crm->typ == CORR || crm->typ == SCORR) in join() 680 if (!crm->typ || crm->typ == CORR || crm->typ == SCORR) in join() [all …]
|
H A D | hack.zap.c | 310 room->typ = ROOM; in dozap() 313 } else if (room->typ == HWALL || room->typ == VWALL || in dozap() 314 room->typ == SDOOR || room->typ == LDOOR) { in dozap() 315 room->typ = DOOR; in dozap() 317 } else if (room->typ == SCORR || !room->typ) { in dozap() 318 room->typ = CORR; in dozap() 393 int typ; in bhit() local 403 typ = levl[bhitpos.x][bhitpos.y].typ; in bhit() 416 if (!ZAP_POS(typ)) { in bhit() 548 lev->typ = ROOM; in buzz() [all …]
|
H A D | hack.search.c | 78 for (lx = u.ux; (num = levl[lx - 1][u.uy].typ) && num != CORR; lx--); in findit() 79 for (hx = u.ux; (num = levl[hx + 1][u.uy].typ) && num != CORR; hx++); in findit() 80 for (ly = u.uy; (num = levl[u.ux][ly - 1].typ) && num != CORR; ly--); in findit() 85 if (levl[zx][zy].typ == SDOOR) { in findit() 86 levl[zx][zy].typ = DOOR; in findit() 89 } else if (levl[zx][zy].typ == SCORR) { in findit() 90 levl[zx][zy].typ = CORR; in findit() 126 if (levl[x][y].typ == SDOOR) { in dosearch() 129 levl[x][y].typ = DOOR; in dosearch() 133 } else if (levl[x][y].typ == SCORR) { in dosearch() [all …]
|
H A D | hack.apply.c | 278 if (!ZAP_POS(levl[bchx][bchy].typ)) { in bchit() 370 } else if (!lev->typ || lev->typ == SCORR) { in dig() 371 lev->typ = CORR; in dig() 373 } else if (lev->typ == HWALL || lev->typ == VWALL in dig() 374 || lev->typ == SDOOR) { in dig() 375 lev->typ = xdnstair ? DOOR : ROOM; in dig() 384 if (IS_WALL(levl[dpx][dpy].typ)) { in dig() 456 (IS_ROCK(levl[rx][ry].typ) in use_pick_axe() 481 if (lev->typ == DOOR) in use_pick_axe() 484 else if (!IS_ROCK(lev->typ) in use_pick_axe()
|
H A D | hack.read.c | 424 if ((num = lev->typ) == 0) in doread() 427 lev->typ = CORR; in doread() 430 lev->typ = DOOR; in doread() 548 if (u.uswallow || !xdnstair || levl[u.ux][u.uy].typ == CORR || in litroom() 567 if (levl[u.ux][u.uy].typ == CORR) { in litroom() 584 if (levl[u.ux][u.uy].typ == DOOR) { in litroom() 585 if (IS_ROOM(levl[u.ux][u.uy + 1].typ)) in litroom() 587 else if (IS_ROOM(levl[u.ux][u.uy - 1].typ)) in litroom() 591 if (IS_ROOM(levl[u.ux + 1][u.uy].typ)) in litroom() 593 else if (IS_ROOM(levl[u.ux - 1][u.uy].typ)) in litroom() [all …]
|
H A D | hack.mkmaze.c | 85 levl[x][y].typ = (x % 2 && y % 2) ? 0 : HWALL; in makemaz() 93 levl[x][y].typ = in makemaz() 119 switch (levl[x][y].typ) { in makemaz() 150 levl[xupstair][yupstair].typ = STAIRS; in makemaz() 159 levl[x][y].typ = ROOM; in walkfrom() 169 levl[x][y].typ = ROOM; in walkfrom() 199 if (x < 3 || y < 3 || x > COLNO - 3 || y > ROWNO - 3 || levl[x][y].typ != 0) in okay()
|
H A D | hack.c | 219 if (IS_ROCK(tmpr->typ) || in domove() 220 (u.dx && u.dy && (tmpr->typ == DOOR || ust->typ == DOOR))) { in domove() 250 if (levl[rx][ry].typ == POOL) { in domove() 251 levl[rx][ry].typ = ROOM; in domove() 290 IS_ROCK(levl[u.ux + u.dx][u.uy].typ) && in domove() 324 if (tmpr->typ == DOOR || in domove() 329 if (tmpr->typ == POOL && !Levitation) in domove() 344 if (tmpr->typ == DOOR) in domove() 346 else if (ust->typ == DOOR) in domove() 357 if (tmpr->typ == DOOR) { in domove() [all …]
|
H A D | hack.objnam.c | 448 int cnt, spe, spesgn, typ, heavy; in readobjnam() local 452 cnt = spe = spesgn = typ = heavy = 0; in readobjnam() 570 typ = AMULET_OF_YENDOR; in readobjnam() 607 typ = HEAVY_IRON_BALL; in readobjnam() 628 typ = i; in readobjnam() 636 typ = probtype(let); in readobjnam() 640 let = objects[typ].oc_olet; in readobjnam() 641 otmp = mksobj(typ); in readobjnam() 645 (cnt < 4 || (let == WEAPON_SYM && typ <= ROCK && cnt < 20))) in readobjnam() 660 else if (typ == WAN_WISHING && rn2(10)) in readobjnam()
|
H A D | hack.trap.c | 88 maketrap(int x, int y, int typ) in maketrap() argument 93 ttmp->ttyp = typ; in maketrap() 403 if (levl[nux][nuy].typ == POOL && !Levitation) in teleds() 414 return (isok(x, y) && !IS_ROCK(levl[x][y].typ) && !m_at(x, y) && in teleok() 539 if (levl[u.ux][u.uy].typ != POOL) in drown()
|
H A D | hack.pri.c | 398 if ((!room->typ) || in prl() 399 (IS_ROCK(room->typ) && levl[u.ux][u.uy].typ == CORR)) in prl() 409 } else if ((otmp = o_at(x, y)) && room->typ != POOL) in prl() 415 } else if (g_at(x, y) && room->typ != POOL) in prl() 436 else if (room->typ == POOL) in news0() 449 switch (room->typ) { in news0() 640 levl[mtmp->mx][mtmp->my].typ == POOL); in seemons()
|
H A D | hack.mkshop.c | 312 levl[sx][sy].typ = POOL; in mkswamp() 329 if ((lev = &levl[sx + dx][sy + dy])->typ == DOOR || in nexttodoor() 330 lev->typ == SDOOR || lev->typ == LDOOR) in nexttodoor()
|
/dragonfly/sbin/init/ |
H A D | init.c | 645 struct ttyent *typ; in f_single_user() local 678 if (typ && (typ->ty_status & TTY_SECURE) == 0 && in f_single_user() 1037 if (typ->ty_name == NULL || typ->ty_getty == NULL) in new_session() 1090 sp->se_getty = malloc(strlen(typ->ty_getty) + strlen(typ->ty_name) + 2); in setupargv() 1091 sprintf(sp->se_getty, "%s %s", typ->ty_getty, typ->ty_name); in setupargv() 1108 if (typ->ty_window) { in setupargv() 1123 sp->se_type = typ->ty_type ? strdup(typ->ty_type) : 0; in setupargv() 1135 struct ttyent *typ; in f_read_ttys() local 1173 adjttyent(typ); in f_read_ttys() 1412 struct ttyent *typ; in f_clean_ttys() local [all …]
|
/dragonfly/sys/netinet/ |
H A D | ip6.h | 321 #define IP6_EXTHDR_GET(val, typ, m, off, len) \ argument 326 (val) = (typ)(mtod((m), caddr_t) + (off)); \ 332 (val) = (typ)(mtod(t, caddr_t) + tmp); \ 340 #define IP6_EXTHDR_GET0(val, typ, m, off, len) \ argument 344 (val) = (typ)mtod(m, caddr_t); \ 350 (val) = (typ)mtod(t, caddr_t); \
|
/dragonfly/crypto/libressl/crypto/asn1/ |
H A D | tasn_new.c | 268 ASN1_TYPE *typ; in ASN1_primitive_new() local 298 typ = malloc(sizeof(ASN1_TYPE)); in ASN1_primitive_new() 299 if (typ != NULL) { in ASN1_primitive_new() 300 typ->value.ptr = NULL; in ASN1_primitive_new() 301 typ->type = V_ASN1_UNDEF; in ASN1_primitive_new() 303 *pval = (ASN1_VALUE *)typ; in ASN1_primitive_new()
|
H A D | tasn_fre.c | 201 ASN1_TYPE *typ = (ASN1_TYPE *)*pval; in ASN1_primitive_free() local 202 utype = typ->type; in ASN1_primitive_free() 203 pval = &typ->value.asn1_value; in ASN1_primitive_free()
|
H A D | tasn_enc.c | 593 ASN1_TYPE *typ; in asn1_ex_i2c() local 594 typ = (ASN1_TYPE *)*pval; in asn1_ex_i2c() 595 utype = typ->type; in asn1_ex_i2c() 597 pval = &typ->value.asn1_value; in asn1_ex_i2c()
|
/dragonfly/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_warc.c | 57 mode_t typ; member 143 w->typ = 0; in archive_write_set_format_warc() 227 w->typ = archive_entry_filetype(entry); in _warc_header() 229 if (w->typ == AE_IFREG) { in _warc_header() 273 if (w->typ == AE_IFREG) { in _warc_data() 296 if (w->typ == AE_IFREG) { in _warc_finish_entry() 304 w->typ = 0; in _warc_finish_entry()
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | jv-exp.y | 1218 if (typ == NULL || TYPE_CODE (typ) != TYPE_CODE_STRUCT) in java_type_from_name() 1220 return typ; in java_type_from_name() 1302 struct type *typ; in push_qualified_expression_name() local 1320 typ = java_lookup_class (tmp); in push_qualified_expression_name() 1321 if (typ != NULL) in push_qualified_expression_name() 1326 write_exp_elt_type(typ); in push_qualified_expression_name() 1339 write_exp_elt_type (typ); in push_qualified_expression_name() 1367 struct type *typ; in push_expression_name() local 1385 typ = java_lookup_class (tmp); in push_expression_name() 1386 if (typ != NULL) in push_expression_name() [all …]
|
/dragonfly/games/larn/ |
H A D | object.c | 854 oscroll(int typ) in oscroll() argument 873 if (typ == 2 || typ == 15) { in oscroll() 878 read_scroll(typ); in oscroll() 883 if (take(OSCROLL, typ) == 0) in oscroll() 920 read_scroll(int typ) in read_scroll() argument 923 if (typ < 0 || typ >= MAXSCROLL) /* be sure we are within bounds */ in read_scroll() 925 scrollname[typ] = scrollhide[typ]; in read_scroll() 926 switch (typ) { in read_scroll()
|
/dragonfly/crypto/libressl/apps/openssl/ |
H A D | asn1pars.c | 348 int typ; in asn1parse_main() local 370 typ = ASN1_TYPE_get(at); in asn1parse_main() 371 if ((typ == V_ASN1_OBJECT) || in asn1parse_main() 372 (typ == V_ASN1_NULL)) { in asn1parse_main() 374 typ == V_ASN1_NULL ? "NULL" : "OBJECT"); in asn1parse_main()
|
/dragonfly/crypto/libressl/crypto/x509/ |
H A D | x509_conf.c | 331 ASN1_TYPE *typ; in generic_asn1() local 334 typ = ASN1_generate_v3(value, ctx); in generic_asn1() 335 if (typ == NULL) in generic_asn1() 337 *ext_len = i2d_ASN1_TYPE(typ, &ext_der); in generic_asn1() 338 ASN1_TYPE_free(typ); in generic_asn1()
|
/dragonfly/sys/platform/pc64/include/ |
H A D | md_var.h | 94 int typ, int dpl, int ist); 96 int typ, int dpl, int ist, int cpu);
|
/dragonfly/sys/bus/ppbus/ |
H A D | ppb_msq.h | 53 #define MS_PARAM(ins,arg,typ) \ argument 56 ((typ<<MS_TYP_OFFSET) & MS_TYP_MASK))
|