Home
last modified time | relevance | path

Searched refs:i_ptr (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/dports/games/moria/umoria/source/
H A Ddesc.c361 if (i_ptr->p1 == 1 || i_ptr->p1 == 2)
363 else if (i_ptr->p1 == 3 || i_ptr->p1 == 5)
365 else if (i_ptr->p1 == 4 || i_ptr->p1 == 6)
548 if (i_ptr->name2 != SN_NULL && known2_p(i_ptr))
573 if (i_ptr->ac != 0 || (i_ptr->tval == TV_HELM))
586 else if ((i_ptr->toac != 0) && known2_p(i_ptr))
590 (i_ptr->toac < 0) ? '-' : '+', abs(i_ptr->toac));
609 (i_ptr->p1 < 0) ? '-' : '+', abs(i_ptr->p1));
616 (i_ptr->p1 < 0) ? '-' : '+', abs(i_ptr->p1));
621 (i_ptr->p1 < 0) ? '-' : '+',abs(i_ptr->p1));
[all …]
H A Dstore1.c41 else if (((i_ptr->tval >= TV_BOW) && (i_ptr->tval <= TV_SWORD)) ||
42 ((i_ptr->tval >= TV_BOOTS) && (i_ptr->tval <= TV_SOFT_ARMOR)))
46 else if ((i_ptr->tval >= TV_BOW) && (i_ptr->tval <= TV_SWORD))
55 value = i_ptr->cost+(i_ptr->tohit+i_ptr->todam+i_ptr->toac)*100;
62 value = i_ptr->cost+i_ptr->toac*100;
80 value = i_ptr->cost+(i_ptr->tohit+i_ptr->todam+i_ptr->toac)*5;
84 (i_ptr->tval == TV_POTION1) || (i_ptr->tval == TV_POTION2))
95 else if ((i_ptr->tval == TV_AMULET) || (i_ptr->tval == TV_RING))
106 else if ((i_ptr->tval == TV_STAFF) || (i_ptr->tval == TV_WAND))
116 value = i_ptr->cost + (i_ptr->cost / 20) * i_ptr->p1;
[all …]
H A Dscrolls.c32 register inven_type *i_ptr; in read_scroll() local
54 i = i_ptr->flags; in read_scroll()
94 if ((i_ptr->tval >= TV_HAFTED)&&(i_ptr->tval <= TV_DIGGING)) in read_scroll()
95 j = i_ptr->damage[0] * i_ptr->damage[1]; in read_scroll()
188 while (i_ptr->tval != TV_SCROLL1 || i_ptr->flags != 0x00000008) in read_scroll()
314 if ((i_ptr->tval >= TV_HAFTED)&&(i_ptr->tval <= TV_DIGGING)) in read_scroll()
315 j = i_ptr->damage[0] * i_ptr->damage[1]; in read_scroll()
346 i_ptr->toac = 0; in read_scroll()
468 i_ptr->tohit = 0; in read_scroll()
469 i_ptr->todam = 0; in read_scroll()
[all …]
H A Deat.c27 register inven_type *i_ptr; in eat() local
39 i_ptr = &inventory[item_val]; in eat()
41 i = i_ptr->flags; in eat()
51 f_ptr->poisoned += randint(10) + i_ptr->level; in eat()
63 f_ptr->afraid += randint(10) + i_ptr->level; in eat()
69 f_ptr->confused += randint(10) + i_ptr->level; in eat()
207 if (!known1_p(i_ptr)) in eat()
216 i_ptr = &inventory[item_val]; in eat()
219 else if (!known1_p(i_ptr)) in eat()
220 sample (i_ptr); in eat()
[all …]
H A Dstaffs.c28 register inven_type *i_ptr; in use() local
37 i_ptr = &inventory[item_val]; in use()
49 else if (i_ptr->p1 > 0) in use()
51 i = i_ptr->flags; in use()
53 (i_ptr->p1)--; in use()
161 if (!known1_p(i_ptr)) in use()
170 i_ptr = &inventory[item_val]; in use()
173 else if (!known1_p(i_ptr)) in use()
174 sample (i_ptr); in use()
180 if (!known2_p(i_ptr)) in use()
[all …]
H A Dwizard.c305 i_ptr = &forge; in wizard_create()
307 i_ptr->name2 = 0; in wizard_create()
315 i_ptr->tval = tmp_val; in wizard_create()
326 i_ptr->subval = tmp_val; in wizard_create()
356 i_ptr->tohit = tmp_val; in wizard_create()
362 i_ptr->todam = tmp_val; in wizard_create()
368 i_ptr->ac = tmp_val; in wizard_create()
374 i_ptr->toac = tmp_val; in wizard_create()
380 i_ptr->p1 = tmp_val; in wizard_create()
395 i_ptr->cost = tmp_lval; in wizard_create()
[all …]
H A Dwands.c28 register inven_type *i_ptr; in aim() local
38 i_ptr = &inventory[item_val]; in aim()
62 else if (i_ptr->p1 > 0) in aim()
64 i = i_ptr->flags; in aim()
65 (i_ptr->p1)--; in aim()
169 if (!known1_p(i_ptr)) in aim()
178 i_ptr = &inventory[item_val]; in aim()
181 else if (!known1_p(i_ptr)) in aim()
182 sample (i_ptr); in aim()
188 if (!known2_p(i_ptr)) in aim()
[all …]
H A Dmoria4.c50 register inven_type *i_ptr; local
117 tabil += (i_ptr->damage[0]*i_ptr->damage[1]) + i_ptr->tohit
118 + i_ptr->todam;
242 i = i_ptr->tval; in disarm_trap()
243 level = i_ptr->level; in disarm_trap()
288 known2(i_ptr); in disarm_trap()
297 known2(i_ptr); in disarm_trap()
698 *t_ptr = *i_ptr;
699 if (i_ptr->number > 1)
702 i_ptr->number--;
[all …]
/dports/audio/ocp/ocp-0.2.90/playay/
H A Ddumpay.c217 if ((buffer[i_ptr] == 0) && (buffer[i_ptr + 1] == 0)) in tryprint_addresses()
228 mem_ptr = (buffer[i_ptr+0] << 8) | buffer[i_ptr+1]; in tryprint_addresses()
230 rel_ptr = (buffer[i_ptr+4] << 8) | buffer[i_ptr+5]; ptr = rel_ptr + i_ptr + 4; in tryprint_addresses()
298 i_ptr += 6; in tryprint_addresses()
334 i = (buffer[i_ptr+4]<<8) | buffer[i_ptr+5]; in tryprint_songdata()
337 i = (buffer[i_ptr+6]<<8) | buffer[i_ptr+7]; in tryprint_songdata()
343 rel_ptr = (buffer[i_ptr+10]<<8) | buffer[i_ptr+11]; ptr = rel_ptr + i_ptr + 10; in tryprint_songdata()
347 rel_ptr = (buffer[i_ptr+12]<<8) | buffer[i_ptr+13]; ptr = rel_ptr + i_ptr + 12; in tryprint_songdata()
617 rel_ptr = (buffer[i_ptr] << 8) | buffer[i_ptr+1]; ptr = rel_ptr + i_ptr; in tryprint_songs()
621 rel_ptr = (buffer[i_ptr+2] << 8) | buffer[i_ptr+3]; ptr = rel_ptr + i_ptr + 2; in tryprint_songs()
[all …]
/dports/archivers/libmspack/libmspack-0.10.1alpha/mspack/
H A Dlzssd.c18 if (i_ptr >= i_end) { \
26 i_ptr = &inbuf[0]; i_end = &inbuf[read]; \
43 unsigned char *window, *inbuf, *i_ptr, *i_end; in lzss_decompress() local
63 i_ptr = i_end = &inbuf[0]; in lzss_decompress()
67 ENSURE_BYTES; c = *i_ptr++ ^ invert; in lzss_decompress()
71 ENSURE_BYTES; window[pos] = *i_ptr++; in lzss_decompress()
77 ENSURE_BYTES; mpos = *i_ptr++; in lzss_decompress()
78 ENSURE_BYTES; mpos |= (*i_ptr & 0xF0) << 4; in lzss_decompress()
79 len = (*i_ptr++ & 0x0F) + 3; in lzss_decompress()
H A Dreadbits.h104 BITS_VAR->i_ptr = &BITS_VAR->inbuf[0]; \
112 BITS_VAR->i_ptr = i_ptr; \
119 i_ptr = BITS_VAR->i_ptr; \
175 if (i_ptr >= i_end) { \
178 i_ptr = BITS_VAR->i_ptr; \
202 p->i_ptr = &p->inbuf[0]; in read_input()
/dports/security/clamav/clamav-0.104.2/libclammspack/mspack/
H A Dlzssd.c18 if (i_ptr >= i_end) { \
26 i_ptr = &inbuf[0]; i_end = &inbuf[read]; \
43 unsigned char *window, *inbuf, *i_ptr, *i_end; in lzss_decompress() local
63 i_ptr = i_end = &inbuf[0]; in lzss_decompress()
67 ENSURE_BYTES; c = *i_ptr++ ^ invert; in lzss_decompress()
71 ENSURE_BYTES; window[pos] = *i_ptr++; in lzss_decompress()
77 ENSURE_BYTES; mpos = *i_ptr++; in lzss_decompress()
78 ENSURE_BYTES; mpos |= (*i_ptr & 0xF0) << 4; in lzss_decompress()
79 len = (*i_ptr++ & 0x0F) + 3; in lzss_decompress()
H A Dreadbits.h104 BITS_VAR->i_ptr = &BITS_VAR->inbuf[0]; \
112 BITS_VAR->i_ptr = i_ptr; \
119 i_ptr = BITS_VAR->i_ptr; \
175 if (i_ptr >= i_end) { \
178 i_ptr = BITS_VAR->i_ptr; \
202 p->i_ptr = &p->inbuf[0]; in read_input()
/dports/security/clamav-lts/clamav-0.103.5/libclammspack/mspack/
H A Dlzssd.c18 if (i_ptr >= i_end) { \
26 i_ptr = &inbuf[0]; i_end = &inbuf[read]; \
43 unsigned char *window, *inbuf, *i_ptr, *i_end; in lzss_decompress() local
63 i_ptr = i_end = &inbuf[0]; in lzss_decompress()
67 ENSURE_BYTES; c = *i_ptr++ ^ invert; in lzss_decompress()
71 ENSURE_BYTES; window[pos] = *i_ptr++; in lzss_decompress()
77 ENSURE_BYTES; mpos = *i_ptr++; in lzss_decompress()
78 ENSURE_BYTES; mpos |= (*i_ptr & 0xF0) << 4; in lzss_decompress()
79 len = (*i_ptr++ & 0x0F) + 3; in lzss_decompress()
H A Dreadbits.h104 BITS_VAR->i_ptr = &BITS_VAR->inbuf[0]; \
112 BITS_VAR->i_ptr = i_ptr; \
119 i_ptr = BITS_VAR->i_ptr; \
175 if (i_ptr >= i_end) { \
178 i_ptr = BITS_VAR->i_ptr; \
202 p->i_ptr = &p->inbuf[0]; in read_input()
/dports/math/hpipm/hpipm-0.1.1/archive/ocp_nlp/
H A Dd_ocp_nlp.c173 int *i_ptr; in CREATE_OCP_NLP() local
177 nlp->nx = i_ptr; in CREATE_OCP_NLP()
182 i_ptr += N+1; in CREATE_OCP_NLP()
184 nlp->nu = i_ptr; in CREATE_OCP_NLP()
189 i_ptr += N+1; in CREATE_OCP_NLP()
191 nlp->nb = i_ptr; in CREATE_OCP_NLP()
196 i_ptr += N+1; in CREATE_OCP_NLP()
198 nlp->ng = i_ptr; in CREATE_OCP_NLP()
203 i_ptr += N+1; in CREATE_OCP_NLP()
205 nlp->ns = i_ptr; in CREATE_OCP_NLP()
[all …]
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang/test/Frontend/
H A Dnoderef.cpp11 int NODEREF *i_ptr; // expected-note 2 {{i_ptr declared here}} in Normal() local
16 auto NODEREF *auto_i_ptr = i_ptr; in Normal()
26 …int i2 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
27 …int &i3 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
28 …int *i_ptr5 = i_ptr; // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
29 …int *i_ptr6(i_ptr); // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
36 int NODEREF(*i_ptr); // ok (same as `int NODEREF *`) in ParenTypes()
55 int NODEREF(i_ptr[10]); in ParenArrays()
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/test/Frontend/
H A Dnoderef.cpp11 int NODEREF *i_ptr; // expected-note 2 {{i_ptr declared here}} in Normal() local
16 auto NODEREF *auto_i_ptr = i_ptr; in Normal()
26 …int i2 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
27 …int &i3 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
28 …int *i_ptr5 = i_ptr; // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
29 …int *i_ptr6(i_ptr); // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
36 int NODEREF(*i_ptr); // ok (same as `int NODEREF *`) in ParenTypes()
55 int NODEREF(i_ptr[10]); in ParenArrays()
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/test/Frontend/
H A Dnoderef.cpp11 int NODEREF *i_ptr; // expected-note 2 {{i_ptr declared here}} in Normal() local
16 auto NODEREF *auto_i_ptr = i_ptr; in Normal()
26 …int i2 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
27 …int &i3 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
28 …int *i_ptr5 = i_ptr; // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
29 …int *i_ptr6(i_ptr); // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
36 int NODEREF(*i_ptr); // ok (same as `int NODEREF *`) in ParenTypes()
55 int NODEREF(i_ptr[10]); in ParenArrays()
/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/test/Frontend/
H A Dnoderef.cpp11 int NODEREF *i_ptr; // expected-note 2 {{i_ptr declared here}} in Normal() local
16 auto NODEREF *auto_i_ptr = i_ptr; in Normal()
26 …int i2 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
27 …int &i3 = *i_ptr; // expected-warning{{dereferencing i_ptr; was declared with a 'noderef' type}} in Normal()
28 …int *i_ptr5 = i_ptr; // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
29 …int *i_ptr6(i_ptr); // expected-warning{{casting to dereferenceable pointer removes 'noderef' att… in Normal()
36 int NODEREF(*i_ptr); // ok (same as `int NODEREF *`) in ParenTypes()
55 int NODEREF(i_ptr[10]); in ParenArrays()
/dports/games/scummvm-tools/scummvm-tools-2.5.0/engines/grim/patchex/
H A Dmszipd.cpp69 zip->i_ptr = i_ptr; \
76 i_ptr = zip->i_ptr; \
86 i_ptr = zip->i_ptr; \
109 zip->i_ptr = &zip->inbuf[0]; in zipd_read_input()
295 if (i_ptr >= i_end) { in inflate()
297 i_ptr = zip->i_ptr; in inflate()
300 lens_buf[i++] = *i_ptr++; in inflate()
308 if (i_ptr >= i_end) { in inflate()
310 i_ptr = zip->i_ptr; in inflate()
315 if (this_run > (unsigned int)(i_end - i_ptr)) this_run = i_end - i_ptr; in inflate()
[all …]
/dports/archivers/cabextract/cabextract-1.9.1/mspack/
H A Dreadbits.h104 BITS_VAR->i_ptr = &BITS_VAR->inbuf[0]; \
112 BITS_VAR->i_ptr = i_ptr; \
119 i_ptr = BITS_VAR->i_ptr; \
175 if (i_ptr >= i_end) { \
178 i_ptr = BITS_VAR->i_ptr; \
202 p->i_ptr = &p->inbuf[0]; in read_input()
/dports/mail/evolution-ews/evolution-ews-3.42.1/src/EWS/addressbook/mspack/
H A Dreadbits.h99 BITS_VAR->i_ptr = &BITS_VAR->inbuf[0]; \
107 BITS_VAR->i_ptr = i_ptr; \
114 i_ptr = BITS_VAR->i_ptr; \
170 if (i_ptr >= i_end) { \
173 i_ptr = BITS_VAR->i_ptr; \
197 p->i_ptr = &p->inbuf[0]; in read_input()
/dports/math/igraph/igraph-0.9.5/vendor/glpk/bflib/
H A Dsgf.c532 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
543 sv_ind[i_ptr] != j; i_ptr++) in sgf_choose_pivot()
594 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
608 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
750 i_ptr < i_end; i_ptr++) in sgf_eliminate()
752 j = sv_ind[i_ptr]; in sgf_eliminate()
755 ptr = i_ptr; in sgf_eliminate()
825 sv_ind[i_ptr] != q; i_ptr++) in sgf_eliminate()
842 i_ptr < i_end; i_ptr++) in sgf_eliminate()
878 i_ptr < i_end; i_ptr++) in sgf_eliminate()
[all …]
/dports/math/glpk/glpk-5.0/src/bflib/
H A Dsgf.c532 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
543 sv_ind[i_ptr] != j; i_ptr++) in sgf_choose_pivot()
594 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
608 i_ptr < i_end; i_ptr++) in sgf_choose_pivot()
750 i_ptr < i_end; i_ptr++) in sgf_eliminate()
752 j = sv_ind[i_ptr]; in sgf_eliminate()
755 ptr = i_ptr; in sgf_eliminate()
825 sv_ind[i_ptr] != q; i_ptr++) in sgf_eliminate()
842 i_ptr < i_end; i_ptr++) in sgf_eliminate()
878 i_ptr < i_end; i_ptr++) in sgf_eliminate()
[all …]

12345678910>>...18