Searched refs:ptr (Results 101 - 125 of 164) sorted by relevance

1234567

/seL4-refos-master/projects/refos/impl/apps/tetris/src/
H A Dtetris.c350 int c, i, *ptr; local
357 ptr = board;
359 *ptr++ = i < 25 || i % B_COLS < 2 ? A_BG_W : RESETATTR;
/seL4-refos-master/apps/tetris/src/
H A Dtetris.c350 int c, i, *ptr; local
357 ptr = board;
359 *ptr++ = i < 25 || i % B_COLS < 2 ? A_BG_W : RESETATTR;
/seL4-refos-master/libs/libmuslc/src/network/
H A Dns_parse.c80 int ns_skiprr(const unsigned char *ptr, const unsigned char *eom, ns_sect section, int count) argument
82 const unsigned char *p = ptr;
98 return p - ptr;
/seL4-refos-master/projects/util_libs/libfdt/
H A Dfdt_sw.c312 void *ptr; local
315 ret = fdt_property_placeholder(fdt, name, len, &ptr);
318 memcpy(ptr, val, len);
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/src/
H A Dpriest.c120 register char *ptr; local
122 for (ptr = array; *ptr; ptr++)
123 if (rooms[*ptr - ROOMOFFSET].rtype == TEMPLE)
124 return(*ptr);
534 mk_roamer(ptr, alignment, x, y, peaceful)
535 register struct permonst *ptr;
543 if (ptr != &mons[PM_ALIGNED_PRIEST] && ptr !
[all...]
H A Dread.c1594 register struct permonst *ptr; local
1599 ptr = &mons[mndx];
1600 Strcpy(buf, ptr->mname);
1615 ptr = rndmonst();
1616 if (!ptr) return; /* no message, like normal case */
1617 mndx = monsndx(ptr);
1628 ptr = &mons[mndx];
1636 if (is_human(ptr)) adjalign(-sgn(u.ualign.type));
1637 if (is_demon(ptr)) adjalign(sgn(u.ualign.type));
1639 if(!(ptr
[all...]
H A Ddisplay.c1393 struct rm *ptr = &(levl[x][y]); local
1395 switch (ptr->typ) {
1402 idx = (ptr->waslit || flags.lit_corridor) ? S_litcorr : S_corr;
1416 idx = ptr->seenv ? wall_angle(ptr) : S_stone;
1419 if (ptr->doormask) {
1420 if (ptr->doormask & D_BROKEN)
1422 else if (ptr->doormask & D_ISOPEN)
1423 idx = (ptr->horizontal) ? S_hodoor : S_vodoor;
1425 idx = (ptr
[all...]
H A Dquestpgr.c54 Fread(ptr, size, nitems, stream)
55 genericptr_t ptr;
61 if ((cnt = dlb_fread(ptr, size, nitems, stream)) != nitems) {
H A Dmkobj.c204 register struct permonst *ptr; local
208 ptr = rndmonst();
209 if (ptr) return(monsndx(ptr));
214 ptr = &mons[i];
215 } while((ptr->geno & G_NOGEN) || (!Inhell && (ptr->geno & G_HELL)));
899 * even if ptr passed as well, but ptr is always used for
907 mkcorpstat(objtype, mtmp, ptr,
[all...]
H A Dmon.c116 struct permonst *ptr = &mons[mndx]; local
117 if (is_human(ptr)) mndx = PM_HUMAN;
118 else if (is_elf(ptr)) mndx = PM_ELF;
119 else if (is_dwarf(ptr)) mndx = PM_DWARF;
120 else if (is_gnome(ptr)) mndx = PM_GNOME;
121 else if (is_orc(ptr)) mndx = PM_ORC;
665 struct permonst *ptr; local
716 ptr = mtmp->data;
720 ptr = mtmp->data;
722 ptr
754 struct permonst *ptr; local
[all...]
H A Dartifact.c566 struct permonst *ptr; local
573 ptr = mtmp->data;
576 return (ptr == &mons[(int)weap->mtype]);
578 return (weap->mtype == (unsigned long)ptr->mlet);
580 return ((ptr->mflags1 & weap->mtype) != 0L);
582 return ((ptr->mflags2 & weap->mtype) || (yours &&
587 (ptr->maligntyp == A_NONE ||
588 sgn(ptr->maligntyp) != weap->alignment);
604 return !(yours ? Antimagic : (rn2(100) < ptr->mr));
H A Dshknam.c253 struct permonst *ptr; local
256 !MON_AT(sx, sy) && (ptr = mkclass(S_MIMIC,0)) &&
257 (mtmp = makemon(ptr,sx,sy,NO_MM_FLAGS)) != 0) {
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/src/
H A Dpriest.c120 register char *ptr; local
122 for (ptr = array; *ptr; ptr++)
123 if (rooms[*ptr - ROOMOFFSET].rtype == TEMPLE)
124 return(*ptr);
534 mk_roamer(ptr, alignment, x, y, peaceful)
535 register struct permonst *ptr;
543 if (ptr != &mons[PM_ALIGNED_PRIEST] && ptr !
[all...]
H A Dread.c1594 register struct permonst *ptr; local
1599 ptr = &mons[mndx];
1600 Strcpy(buf, ptr->mname);
1615 ptr = rndmonst();
1616 if (!ptr) return; /* no message, like normal case */
1617 mndx = monsndx(ptr);
1628 ptr = &mons[mndx];
1636 if (is_human(ptr)) adjalign(-sgn(u.ualign.type));
1637 if (is_demon(ptr)) adjalign(sgn(u.ualign.type));
1639 if(!(ptr
[all...]
H A Ddisplay.c1393 struct rm *ptr = &(levl[x][y]); local
1395 switch (ptr->typ) {
1402 idx = (ptr->waslit || flags.lit_corridor) ? S_litcorr : S_corr;
1416 idx = ptr->seenv ? wall_angle(ptr) : S_stone;
1419 if (ptr->doormask) {
1420 if (ptr->doormask & D_BROKEN)
1422 else if (ptr->doormask & D_ISOPEN)
1423 idx = (ptr->horizontal) ? S_hodoor : S_vodoor;
1425 idx = (ptr
[all...]
H A Dquestpgr.c54 Fread(ptr, size, nitems, stream)
55 genericptr_t ptr;
61 if ((cnt = dlb_fread(ptr, size, nitems, stream)) != nitems) {
H A Dmkobj.c204 register struct permonst *ptr; local
208 ptr = rndmonst();
209 if (ptr) return(monsndx(ptr));
214 ptr = &mons[i];
215 } while((ptr->geno & G_NOGEN) || (!Inhell && (ptr->geno & G_HELL)));
899 * even if ptr passed as well, but ptr is always used for
907 mkcorpstat(objtype, mtmp, ptr,
[all...]
H A Dmon.c116 struct permonst *ptr = &mons[mndx]; local
117 if (is_human(ptr)) mndx = PM_HUMAN;
118 else if (is_elf(ptr)) mndx = PM_ELF;
119 else if (is_dwarf(ptr)) mndx = PM_DWARF;
120 else if (is_gnome(ptr)) mndx = PM_GNOME;
121 else if (is_orc(ptr)) mndx = PM_ORC;
665 struct permonst *ptr; local
716 ptr = mtmp->data;
720 ptr = mtmp->data;
722 ptr
754 struct permonst *ptr; local
[all...]
H A Dartifact.c566 struct permonst *ptr; local
573 ptr = mtmp->data;
576 return (ptr == &mons[(int)weap->mtype]);
578 return (weap->mtype == (unsigned long)ptr->mlet);
580 return ((ptr->mflags1 & weap->mtype) != 0L);
582 return ((ptr->mflags2 & weap->mtype) || (yours &&
587 (ptr->maligntyp == A_NONE ||
588 sgn(ptr->maligntyp) != weap->alignment);
604 return !(yours ? Antimagic : (rn2(100) < ptr->mr));
H A Dshknam.c253 struct permonst *ptr; local
256 !MON_AT(sx, sy) && (ptr = mkclass(S_MIMIC,0)) &&
257 (mtmp = makemon(ptr,sx,sy,NO_MM_FLAGS)) != 0) {
/seL4-refos-master/kernel/src/object/
H A Dcnode.c666 cte_t *ptr; local
671 ptr = (cte_t *)cap_zombie_cap_get_capZombiePtr(slot->cap);
679 cte_t *endSlot = &ptr[n - 1];
694 if (ptr == ptr2 &&
704 assert(ptr2 == slot && ptr != slot);
714 assert(ptr != slot);
716 if (cap_get_capType(ptr->cap) == cap_zombie_cap) {
718 assert(ptr != CTE_PTR(cap_zombie_cap_get_capZombiePtr(ptr->cap)));
721 capSwapForDelete(ptr, slo
[all...]
/seL4-refos-master/projects/refos/impl/apps/nethack/src/nethack-3.4.3/sys/share/
H A Dlev_lex.c2039 static genericptr_t yy_flex_realloc2( ptr, size, old_size )
2040 genericptr_t ptr;
2046 if (ptr) {
2047 char *p = (char *) outptr, *q = (char *) ptr;
2050 yy_flex_free(ptr);
2055 static void yy_flex_free( ptr )
2056 genericptr_t ptr;
2058 free( ptr );
/seL4-refos-master/apps/nethack/src/nethack-3.4.3/sys/share/
H A Dlev_lex.c2039 static genericptr_t yy_flex_realloc2( ptr, size, old_size )
2040 genericptr_t ptr;
2046 if (ptr) {
2047 char *p = (char *) outptr, *q = (char *) ptr;
2050 yy_flex_free(ptr);
2055 static void yy_flex_free( ptr )
2056 genericptr_t ptr;
2058 free( ptr );
/seL4-refos-master/kernel/include/smp/
H A Dlock.h60 static inline void *sel4_atomic_exchange(void *ptr, bool_t argument
/seL4-refos-master/projects/refos/impl/apps/test_os/src/
H A Dtest_os.c444 unsigned int *ptr = (unsigned int*)sharedBuf; local
445 ptr[0] = start;
446 ptr[1] = end;

Completed in 320 milliseconds

1234567