/openbsd-current/games/robots/ |
H A D | rnd_pos.c | 43 static COORD pos; local 47 pos.y = rnd(Y_FIELDSIZE - 1) + 1; 48 pos.x = rnd(X_FIELDSIZE - 1) + 1; 50 } while (Field[pos.y][pos.x] != 0); 52 return &pos;
|
/openbsd-current/usr.bin/less/ |
H A D | jump.c | 32 off_t pos; local 52 pos = back_line(end_pos); 53 if (pos == -1) { 56 jump_loc(pos, sc_height-1); 68 off_t pos; local 77 pos = find_pos(linenum); 78 if (pos != -1 && ch_seek(pos) == 0) { 80 set_attnpos(pos); 81 jump_loc(pos, jump_slin 113 off_t pos, len; local 140 jump_line_loc(off_t pos, int sline) argument 165 jump_loc(off_t pos, int sline) argument [all...] |
H A D | forwback.c | 53 off_t pos; local 70 pos = position(BOTTOM_PLUS_ONE); 71 return (pos == -1 || pos == ch_length()); 80 off_t pos; local 87 pos = position(0); 88 return (pos == -1 || pos == 0); 108 * starting at position pos in the input file. 112 * real line. If nblank > 0, the pos mus 116 forw(int n, off_t pos, int force, int only_last, int nblank) argument 241 back(int n, off_t pos, int force, int only_last) argument 289 off_t pos; local 333 off_t pos; local [all...] |
/openbsd-current/usr.bin/mandoc/ |
H A D | tbl_opts.c | 64 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) argument 68 while (p[*pos] == ' ' || p[*pos] == '\t') 69 (*pos)++; 74 if (p[*pos] == '(') { 75 (*pos)++; 76 while (p[*pos + len] != ')') 83 ln, *pos, "%.*s", len, p + *pos); 89 tbl->opts.tab = p[*pos]; 123 int i, pos, len; local [all...] |
H A D | dba_write.c | 49 long pos; local 51 if ((pos = ftell(ofp)) == -1) 53 if (pos >= INT32_MAX) { 55 err(1, "ftell = %ld", pos); 57 return pos; 61 dba_seek(int32_t pos) argument 63 if (fseek(ofp, pos, SEEK_SET) == -1) 64 err(1, "fseek(%d)", pos); 70 int32_t pos; local 72 pos 84 int32_t i, pos; local [all...] |
H A D | tbl_layout.c | 64 int ln, const char *p, int *pos) 73 while (p[*pos] == ' ' || p[*pos] == '\t') 74 (*pos)++; 78 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) 83 if ('(' == p[*pos]) { 84 (*pos)++; 85 while (p[*pos] && ')' != p[*pos]) 86 (*pos) 63 mods(struct tbl_node *tbl, struct tbl_cell *cp, int ln, const char *p, int *pos) argument 205 cell(struct tbl_node *tbl, struct tbl_row *rp, int ln, const char *p, int *pos) argument 264 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) argument 354 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument [all...] |
/openbsd-current/lib/libc/stdio/ |
H A D | fgetpos.c | 40 fgetpos(FILE *fp, fpos_t *pos) argument 42 return((*pos = ftello(fp)) == (fpos_t)-1);
|
H A D | fsetpos.c | 40 fsetpos(FILE *iop, const fpos_t *pos) argument 42 return (fseeko(iop, *pos, SEEK_SET));
|
H A D | ftell.c | 45 fpos_t pos; local 49 pos = -1; 60 pos = fp->_offset; 62 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR); 63 if (pos == -1) 72 pos -= fp->_r; 74 pos -= fp->_ur; 81 pos += fp->_p - fp->_bf._base; 84 return (pos);
|
/openbsd-current/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | DWARFDeclContext.cpp | 28 collection::const_reverse_iterator pos; local 31 for (pos = begin; pos != end; ++pos) { 32 if (pos != begin) 34 if (pos->name == nullptr) { 35 if (pos->tag == DW_TAG_namespace) 37 else if (pos->tag == DW_TAG_class_type) 39 else if (pos->tag == DW_TAG_structure_type) 41 else if (pos [all...] |
/openbsd-current/gnu/usr.bin/perl/t/op/ |
H A D | pos.t | 13 is(pos($x), 2, "matching, pos() leaves off at offset 2"); 16 is(pos($x), 2, "not matching, pos() remains at offset 2"); 21 is(f(pos($x)), 4, "matching again, pos() next leaves off at offset 4"); 23 # Is pos() set inside //g? (bug id 19990615.008 (#874)) 24 $x = "test string?"; $x =~ s/\w/pos($x)/eg; 25 is($x, "0123 5678910?", "pos() set inside //g"); 28 is(pos( [all...] |
/openbsd-current/gnu/usr.bin/perl/t/re/ |
H A D | pos.t | 3 # Make sure pos / resetting pos on failed match works 24 is(pos($str), 2, 'pos correct'); 28 is(pos($str), undef, 'pos undef after failed match'); 37 is(pos, 2, 'pos correct'); 41 is(pos, undef, 'pos unde [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/ |
H A D | groff1.C | 21 void foo(const A &pos); 24 void S::foo(const A &pos) argument 26 A a = flags ? from : pos; 34 A pos; local 35 pos.x = 17; 36 pos.y = 12; 38 s.foo(pos);
|
/openbsd-current/usr.bin/sendbug/ |
H A D | atomicio.c | 42 size_t pos = 0; local 48 while (n > pos) { 49 res = (f) (fd, s + pos, n - pos); 61 return pos; 63 pos += (size_t)res; 66 return (pos);
|
/openbsd-current/gnu/usr.bin/perl/t/bigmem/ |
H A D | pos.t | 21 pos $x = 2**31-5; 22 is pos $x, 2147483643, 'setting pos on large string'; 23 pos $x += 10; 24 is pos $x, 2147483653, 'reading lvalue pos after setting it > 2**31'; 25 is scalar(pos $x), 2147483653, 'reading it with pos() in rvalue context';
|
/openbsd-current/libexec/tradcpp/ |
H A D | output.c | 105 size_t pos, start; local 111 for (pos = 0; pos < len - 1; pos++) { 112 if (!inquote && buf[pos] == '/' && buf[pos+1] == '*') { 114 if (pos > start) { 115 dowrite(buf + start, pos - start); 117 start = pos; 118 pos [all...] |
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/cc_hash_table_map_/ |
H A D | erase_fn_imps.hpp | 68 for (size_type pos = 0; pos < m_num_e; ++pos) 70 while (m_entries[pos] != NULL && pred(m_entries[pos]->m_value)) 73 entry_pointer p_next_e = m_entries[pos]->m_p_next; 74 erase_entry_pointer(m_entries[pos]); 75 m_entries[pos] = p_next_e; 78 entry_pointer p_e = m_entries[pos]; 100 for (size_type pos [all...] |
/openbsd-current/gnu/llvm/lldb/source/Symbol/ |
H A D | VariableList.cpp | 64 iterator pos, end = m_variables.end(); local 65 for (pos = m_variables.begin(); pos != end; ++pos) { 66 if (pos->get() == var_sp.get()) 67 return std::distance(m_variables.begin(), pos); 75 iterator pos, end = m_variables.end(); local 76 for (pos = m_variables.begin(); pos != end; ++pos) { 91 iterator pos, end = m_variables.end(); local 105 iterator pos, end = m_variables.end(); local 115 iterator pos, end = m_variables.end(); local 132 iterator pos, end = m_variables.end(); local 147 iterator pos; local 159 const_iterator pos, end = m_variables.end(); local 172 const_iterator pos, end = m_variables.end(); local [all...] |
H A D | TypeMap.cpp | 37 iterator pos, end = m_types.end(); local 39 for (pos = m_types.find(type_uid); 40 pos != end && pos->second->GetID() == type_uid; ++pos) { 41 if (pos->second.get() == type_sp.get()) 53 // iterator pos = m_types.find(uid); 54 // if (pos != m_types.end()) 55 // return pos->second; 66 // iterator pos, en 84 iterator pos, end; local 139 iterator pos, end = m_types.end(); local [all...] |
/openbsd-current/gnu/gcc/libstdc++-v3/include/ext/pb_ds/detail/gp_hash_table_map_/ |
H A D | iterator_fn_imps.hpp | 62 size_type pos; local 63 get_start_it_state(p_value, pos); 64 return iterator(p_value, pos, this); 79 size_type pos; local 80 get_start_it_state(p_value, pos); 81 return const_iterator(p_value, pos, this);
|
H A D | debug_no_store_hash_fn_imps.hpp | 55 for (size_type pos = 0; pos < m_num_e; ++pos) 57 const_entry_pointer p_e = &a_entries[pos];
|
/openbsd-current/gnu/llvm/llvm/tools/llvm-c-test/ |
H A D | disassemble.c | 23 static void pprint(int pos, unsigned char *buf, int len, const char *disasm) { argument 25 printf("%04x: ", pos); 42 int pos; local 49 pos = 0; 50 while (pos < siz) { 51 size_t l = LLVMDisasmInstruction(D, buf + pos, siz - pos, 0, outline, 54 pprint(pos, buf + pos, 1, "\t???"); 55 pos [all...] |
/openbsd-current/gnu/llvm/lldb/tools/debugserver/source/ |
H A D | DNBBreakpoint.cpp | 56 iterator pos = m_breakpoints.find(addr); local 57 return &pos->second; 61 iterator pos = m_breakpoints.find(addr); local 62 if (pos != m_breakpoints.end()) { 63 m_breakpoints.erase(pos); 70 iterator pos = m_breakpoints.find(addr); local 71 if (pos != m_breakpoints.end()) 72 return &pos->second; 78 const_iterator pos = m_breakpoints.find(addr); local 79 if (pos ! 91 iterator pos = m_breakpoints.lower_bound(addr); local 121 const_iterator pos; local 128 iterator pos, end = m_breakpoints.end(); local 137 const_iterator pos = m_breakpoints.lower_bound(addr); local 170 iterator pos = m_breakpoints.begin(); local [all...] |
H A D | DNBRegisterInfo.cpp | 35 if (pos < end) { \ 37 strlcpy(pos, ", ", end - pos); \ 38 pos += 2; \ 46 char *pos; local 72 pos = str + 2; 74 if (pos < end) 75 pos += 76 snprintf(pos, end - pos, " [all...] |
/openbsd-current/sys/dev/pci/drm/include/linux/ |
H A D | llist.h | 76 #define llist_for_each_safe(pos, n, node) \ 77 for ((pos) = (node); \ 78 (pos) != NULL && \ 79 ((n) = (pos)->next, pos); \ 80 (pos) = (n)) 82 #define llist_for_each_entry_safe(pos, n, node, member) \ 83 for (pos = llist_entry((node), __typeof(*pos), member); \ 84 ((char *)(pos) [all...] |