/src/games/hunt/huntd/ |
terminal.c | 48 cgoto(PLAYER *pp, int y, int x) 50 if (x == pp->p_curx && y == pp->p_cury) 52 sendcom(pp, MOVE, y, x); 53 pp->p_cury = y; 54 pp->p_curx = x; 62 outch(PLAYER *pp, int ch) 64 if (++pp->p_curx >= TERM_WIDTH) { 65 pp->p_curx = 0; 66 pp->p_cury++ [all...] |
execute.c | 56 mon_execute(PLAYER *pp) 60 ch = pp->p_cbuf[pp->p_ncount++]; 63 sendcom(pp, REDRAW); 66 (void) strcpy(pp->p_death, "| Quit |"); 77 execute(PLAYER *pp) 81 ch = pp->p_cbuf[pp->p_ncount++]; 84 if (pp->p_flying >= 0) { 87 sendcom(pp, REDRAW) [all...] |
draw.c | 46 drawmaze(PLAYER *pp) 53 clrscr(pp); 54 outstr(pp, pp->p_maze[0], WIDTH); 56 endp = &pp->p_maze[y][WIDTH]; 57 for (x = 0, sp = pp->p_maze[y]; sp < endp; x++, sp++) 59 cgoto(pp, y, x); 60 if (pp->p_x == x && pp->p_y == y) 61 outch(pp, translate(*sp)) [all...] |
expl.c | 55 PLAYER *pp; local in function:showexpl 72 for (pp = Player; pp < End_player; pp++) { 73 if (pp->p_maze[y][x] == type) 75 pp->p_maze[y][x] = type; 76 cgoto(pp, y, x); 77 outch(pp, type); 80 for (pp = Monitor; pp < End_monitor; pp++) 114 PLAYER *pp; local in function:rollexpl 161 PLAYER *pp; local in function:remove_wall [all...] |
answer.c | 60 PLAYER *pp; local in function:answer 157 for (pp = Player; pp < End_player; pp++) { 158 cgoto(pp, HEIGHT, 0); 159 outstr(pp, buf, n); 162 for (pp = Player; pp < End_player; pp++) 163 outstr(pp, buf, n) 256 PLAYER *pp; local in function:stplayer [all...] |
shots.c | 70 PLAYER *pp; local in function:moveshots 92 for (pp = Player; pp < End_player; pp++) 93 check(pp, y, x); 95 for (pp = Monitor; pp < End_monitor; pp++) 96 check(pp, y, x); 139 for (pp = Monitor; pp < End_monitor; pp++ 189 PLAYER *pp; local in function:move_normal_shot 378 PLAYER *pp; local in function:move_drone 665 PLAYER *pp; local in function:chkshot 800 PLAYER *pp; local in function:move_slime 1029 PLAYER *pp; local in function:play_at 1115 PLAYER *pp; local in function:mark_player 1132 PLAYER *pp; local in function:mark_boot [all...] |
driver.c | 205 PLAYER *pp; local in function:main 287 for (pp = Player, i = 0; pp < End_player; pp++, i++) 288 if (havechar(pp, i + 3)) { 289 execute(pp); 290 pp->p_nexec++; 293 for (pp = Monitor, i = 0; pp < End_monitor; pp++, i++ 517 PLAYER *pp; local in function:makeboots 924 PLAYER *pp; local in function:cleanup [all...] |
/src/games/atc/ |
update.c | 73 PLANE *pp, *p1, *p2; local in function:update 87 for (pp = ground.head; pp != NULL; pp = pp->next) { 88 if (pp->new_altitude > 0) { 89 delete(&ground, pp); 90 append(&air, pp); 98 for (pp = air.head; pp != NULL; pp = pp->next) 320 PLANE *pp; local in function:next_plane 348 PLANE p, *pp, *p1; local in function:addplane 420 PLANE *pp; local in function:findplane [all...] |
graphics.c | 92 PLANE *pp; local in function:erase_all 94 for (pp = air.head; pp != NULL; pp = pp->next) { 95 (void)wmove(cleanradar, pp->ypos, pp->xpos * 2); 96 (void)wmove(radar, pp->ypos, pp->xpos * 2); 98 (void)wmove(cleanradar, pp->ypos, pp->xpos * 2 + 1) 107 PLANE *pp; local in function:draw_all 331 PLANE *pp; local in function:planewin [all...] |
/src/games/mille/ |
print.c | 56 PLAY *pp; local in function:prboard 60 pp = &Player[k]; 63 if (pp->safety[i] == S_PLAYED && !pp->sh_safety[i]) { 65 if (pp->coups[i]) 67 pp->sh_safety[i] = TRUE; 69 show_card(14, temp, pp->battle, &pp->sh_battle); 70 show_card(16, temp, pp->speed, &pp->sh_speed) 123 PLAY *pp; local in function:prscore [all...] |
move.c | 67 PLAY *pp; local in function:domove 71 pp = &Player[Play]; 73 if (pp->hand[i] != -1) 87 if (haspicked(pp)) { 88 if (pp->hand[Card_no] == C_INIT) 94 if (is_safety(pp->hand[Card_no])) { 99 Discard = pp->hand[Card_no]; 100 pp->hand[Card_no] = C_INIT; 110 goodplay = playcard(pp); 116 else if (haspicked(pp)) 179 PLAY *pp, *op; local in function:check_go [all...] |
end.c | 52 finalscore(PLAY *pp) 56 if (pp->was_finished == Finished) 59 pp->was_finished = Finished; 60 num = pp - Player; 64 if (pp->mileage == End) { 67 if (pp->nummiles[C_200] == 0) { 83 pp->total += tot; 84 pp->hand_tot += tot; 96 extrapolate(PLAY *pp) 101 num = pp - Player 144 reg PLAY *pp; local in function:undoex [all...] |
comp.c | 54 PLAY *pp, *op; local in function:calcmove 65 pp = &Player[COMP]; 76 card = pp->hand[i]; 80 if ((playit[i] = canplay(pp, op, card)) != 0) 84 if ((playit[i] = canplay(pp, op, card)) 91 if ((playit[i] = canplay(pp, op, card)) 92 && pp->mileage + Value[card] == End) 96 playit[i] = canplay(pp, op, card); 103 if (pp->battle == opposite(card) || 104 (pp->speed == C_LIMIT && card == C_RIGHT_WAY)) [all...] |
init.c | 50 PLAY *pp; local in function:init 58 pp = &Player[i]; 59 pp->hand[0] = C_INIT; 61 pp->safety[j] = S_UNKNOWN; 62 pp->coups[j] = FALSE; 65 pp->hand[j] = *--Topcard; 69 pp->safety[card - S_CONV] = S_IN_HAND; 72 pp->mileage = 0; 73 pp->hand_tot = 0; 74 pp->safescore = 0 114 PLAY *pp; local in function:newboard 173 PLAY *pp; local in function:newscore [all...] |
/src/sys/kern/ |
subr_pool.c | 107 # define pool_redzone_init(pp, sz) __nothing 108 # define pool_redzone_fill(pp, ptr) __nothing 109 # define pool_redzone_check(pp, ptr) __nothing 119 #define pool_get_kmsan(pp, ptr) __nothing 120 #define pool_put_kmsan(pp, ptr) __nothing 149 #define pp_has_pser(pp) (((pp)->pr_roflags & PR_PSERIALIZE) != 0) 330 #define POOL_NEEDS_CATCHUP(pp) \ 331 ((pp)->pr_nitems < (pp)->pr_minitems || 557 struct pool *pp; local in function:pc_phinpage_check 1751 struct pool *pp; local in function:pool_drain 1807 struct pool *pp; local in function:pool_totalpages_locked 1829 struct pool *pp; local in function:pool_printall 2128 struct pool *pp; local in function:pool_cache_bootstrap 2217 struct pool *pp = &pc->pc_pool; local in function:pool_cache_bootstrap_destroy 3334 struct pool *pp; local in function:pool_whatis 3421 struct pool *pp; local in function:pool_sysctl [all...] |
/src/sys/arch/amiga/stand/dumpfont/ |
dumpfont.c | 25 unsigned char str[256], *pp; local in function:main 39 bm.Planes[0] = pp = AllocRaster (256 * 8, 8); 41 if (!pp) 46 bzero (pp, 256 * 8); 67 write (bin, pp, 256*8); 92 pp[i+0*256], pp[i+1*256], pp[i+2*256], pp[i+3*256], 93 pp[i+4*256], pp[i+5*256], pp[i+6*256], pp[i+7*256]) [all...] |
/src/games/monop/ |
rent.c | 50 PROP *pp; local in function:rent 61 pp = sqp->desc; 62 if (pp->monop) 63 if (pp->houses == 0) 64 printf("rent is %d\n", rnt=pp->rent[0] * 2); 65 else if (pp->houses < 5) 67 pp->houses, pp->houses == 1 ? "" : "s", 68 rnt=pp->rent[pp->houses]) [all...] |
print.c | 88 PROP *pp; local in function:printsq 105 pp = sqp->desc; 107 printf(" - %-8.8s %3d", pp->mon_desc->name, sqp->cost); 112 printf(" %d %-8.8s %3d", sqp->owner+1, pp->mon_desc->name, 115 if (pp->monop) { 116 if (pp->houses < 5) 117 if (pp->houses > 0) 118 printf("%d %4d", pp->houses, 119 pp->rent[pp->houses]) 178 PLAY *pp; local in function:printhold [all...] |
/src/bin/csh/ |
proc.c | 93 struct process *fp, *pp; local in function:pchild 109 for (pp = proclist.p_next; pp != NULL; pp = pp->p_next) 110 if (pid == pp->p_pid) 116 pp->p_flags &= ~(PRUNNING | PSTOPPED | PREPORTED); 118 pp->p_flags |= PSTOPPED; 119 pp->p_reason = WSTOPSIG(w); 122 if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime) 207 struct process *pp; local in function:pnote 233 struct process *fp, *pp; local in function:pwait 357 struct process *pp; local in function:dowait 382 struct process *pp; local in function:pflushall 455 struct process *pp; local in function:palloc 629 struct process *pp, *tp; local in function:pendjob 817 struct process *pp; local in function:ptprint 838 struct process *pp; local in function:dojobs 875 struct process *pp; local in function:dofg 893 struct process *pp; local in function:dofg1 908 struct process *pp; local in function:dobg 925 struct process *pp; local in function:dobg1 1016 struct process *pp, *np; local in function:pkill 1140 struct process *pp; local in function:panystop 1151 struct process *pp, *np; local in function:pfind 1224 struct process *pp; local in function:donotify [all...] |
/src/sys/external/bsd/drm2/dist/drm/amd/display/dc/ |
dm_pp_smu.h | 52 const void *pp; member in struct:pp_smu 105 void (*set_display_count)(struct pp_smu *pp, int count); 114 void (*set_wm_ranges)(struct pp_smu *pp, 120 void (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int mhz); 126 void (*set_min_deep_sleep_dcfclk)(struct pp_smu *pp, int mhz); 131 void (*set_hard_min_fclk_by_freq)(struct pp_smu *pp, int mhz); 136 void (*set_hard_min_socclk_by_freq)(struct pp_smu *pp, int mhz); 139 void (*set_pme_wa_enable)(struct pp_smu *pp); 175 enum pp_smu_status (*set_display_count)(struct pp_smu *pp, int count); 180 enum pp_smu_status (*set_hard_min_dcfclk_by_freq)(struct pp_smu *pp, int Mhz) [all...] |
/src/sbin/disklabel/ |
printlabel.c | 110 struct partition *pp = lp->d_partitions + i; local in function:showpartition 111 if (pp->p_size == 0) 119 pp->p_size/lp->d_secpercyl, 120 (pp->p_size%lp->d_secpercyl) / lp->d_nsectors, 121 pp->p_size%lp->d_nsectors); 125 pp->p_offset/lp->d_secpercyl, 126 (pp->p_offset%lp->d_secpercyl) / lp->d_nsectors, 127 pp->p_offset%lp->d_nsectors); 133 'a' + i, pp->p_size, pp->p_offset) [all...] |
/src/games/hunt/include/ |
hunt_common.h | 228 #define _scan_char(pp) (((pp)->p_scan < 0) ? ' ' : '*') 229 #define _cloak_char(pp) (((pp)->p_cloak < 0) ? _scan_char(pp) : '+') 230 #define stat_char(pp) (((pp)->p_flying < 0) ? _cloak_char(pp) : FLYER) 232 #define _scan_char(pp) (((pp)->p_scan < 0) ? ' ' : '*' [all...] |
/src/bin/sh/ |
mail.c | 115 const char *pp; local in function:chkmail 117 if ((pp = pathopt) != NULL) { 120 while (*pp && *pp != ':') 121 len++, pp++; 132 pp = p; 134 pp = "you have mail"; 136 out2str(pp);
|
/src/sys/arch/sparc64/dev/ |
psychovar.h | 137 #define psycho_alloc_config_tag(pp) psycho_alloc_bus_tag((pp), PCI_CONFIG_BUS_SPACE) 138 #define psycho_alloc_mem_tag(pp) psycho_alloc_bus_tag((pp), PCI_MEMORY_BUS_SPACE) 139 #define psycho_alloc_io_tag(pp) psycho_alloc_bus_tag((pp), PCI_IO_BUS_SPACE)
|
/src/sys/fs/ptyfs/ |
ptyfs_subr.c | 149 struct ptyfsnode *pp; local in function:ptyfs_get_node 154 SLIST_FOREACH(pp, ppp, ptyfs_hash) { 155 if (pty == pp->ptyfs_pty && pp->ptyfs_type == type) { 157 return pp; 162 pp = malloc(sizeof(struct ptyfsnode), M_TEMP, M_WAITOK); 163 pp->ptyfs_pty = pty; 164 pp->ptyfs_type = type; 165 pp->ptyfs_fileno = PTYFS_FILENO(type, pty); 166 if (pp->ptyfs_type == PTYFSroot [all...] |