| /openbsd/src/usr.bin/mandoc/ |
| D | tbl_layout.c | 64 int ln, const char *p, int *pos) in mods() argument 72 while (p[*pos] == ' ' || p[*pos] == '\t') in mods() 73 (*pos)++; in mods() 77 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL) in mods() 82 if ('(' == p[*pos]) { in mods() 83 (*pos)++; in mods() 84 while (p[*pos] && ')' != p[*pos]) in mods() 85 (*pos)++; in mods() 86 if (')' == p[*pos]) { in mods() 87 (*pos)++; in mods() [all …]
|
| D | tbl_opts.c | 64 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) in arg() argument 68 while (p[*pos] == ' ' || p[*pos] == '\t') in arg() 69 (*pos)++; in arg() 74 if (p[*pos] == '(') { in arg() 75 (*pos)++; in arg() 76 while (p[*pos + len] != ')') in arg() 83 ln, *pos, "%.*s", len, p + *pos); in arg() 89 tbl->opts.tab = p[*pos]; in arg() 97 tbl->opts.decimal = p[*pos]; in arg() 104 mandoc_msg(MANDOCERR_TBLOPT_NOARG, ln, *pos, in arg() [all …]
|
| D | tbl_data.c | 42 int ln, const char *p, int *pos) in getdata() argument 55 startpos = *pos; in getdata() 60 *pos = ccp - p; in getdata() 65 while (cp != NULL && cp->pos == TBL_CELL_SPAN) in getdata() 78 cp->pos = TBL_CELL_LEFT; in getdata() 87 while (p[*pos] != '\0') in getdata() 88 (*pos)++; in getdata() 100 dat->pos = TBL_DATA_NONE; in getdata() 110 if (cp->pos == TBL_CELL_DOWN || in getdata() 111 (*pos - startpos == 2 && in getdata() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Symbol/ |
| D | VariableList.cpp | 64 iterator pos, end = m_variables.end(); in FindVariableIndex() local 65 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariableIndex() 66 if (pos->get() == var_sp.get()) in FindVariableIndex() 67 return std::distance(m_variables.begin(), pos); in FindVariableIndex() 75 iterator pos, end = m_variables.end(); in FindVariable() local 76 for (pos = m_variables.begin(); pos != end; ++pos) { in FindVariable() 77 if ((*pos)->NameMatches(name)) { in FindVariable() 78 if (include_static_members || !(*pos)->IsStaticMember()) { in FindVariable() 79 var_sp = (*pos); in FindVariable() 91 iterator pos, end = m_variables.end(); in FindVariable() local [all …]
|
| D | TypeMap.cpp | 37 iterator pos, end = m_types.end(); in InsertUnique() local 39 for (pos = m_types.find(type_uid); in InsertUnique() 40 pos != end && pos->second->GetID() == type_uid; ++pos) { in InsertUnique() 41 if (pos->second.get() == type_sp.get()) in InsertUnique() 84 iterator pos, end; in GetTypeAtIndex() local 86 for (pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in GetTypeAtIndex() 88 return pos->second; in GetTypeAtIndex() 96 for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in ForEach() local 97 if (!callback(pos->second)) in ForEach() 104 for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in ForEach() local [all …]
|
| D | TypeList.cpp | 67 iterator pos, end; in GetTypeAtIndex() local 70 for (pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in GetTypeAtIndex() 72 return *pos; in GetTypeAtIndex() 80 for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in ForEach() local 81 if (!callback(*pos)) in ForEach() 88 for (auto pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) { in ForEach() local 89 if (!callback(*pos)) in ForEach() 95 for (iterator pos = m_types.begin(), end = m_types.end(); pos != end; ++pos) in Dump() local 96 if (Type *t = pos->get()) in Dump() 123 iterator pos, end = m_types.end(); in RemoveMismatchedTypes() local [all …]
|
| /openbsd/src/sys/dev/pci/drm/include/linux/ |
| D | list.h | 167 #define list_next_entry(pos, member) \ argument 168 list_entry(((pos)->member.next), typeof(*(pos)), member) 170 #define list_prev_entry(pos, member) \ argument 171 list_entry(((pos)->member.prev), typeof(*(pos)), member) 173 #define list_safe_reset_next(pos, n, member) \ argument 174 n = list_next_entry(pos, member) 188 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument 189 for (pos = list_entry((head)->prev, __typeof(*pos), member), \ 190 n = list_entry((pos)->member.prev, __typeof(*pos), member); \ 191 &(pos)->member != (head); \ [all …]
|
| D | llist.h | 76 #define llist_for_each_safe(pos, n, node) \ argument 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) \ argument 83 for (pos = llist_entry((node), __typeof(*pos), member); \ 84 ((char *)(pos) + offsetof(typeof(*(pos)), member)) != NULL && \ 85 (n = llist_entry(pos->member.next, __typeof(*pos), member), pos); \ 86 pos = n) [all …]
|
| /openbsd/src/gnu/llvm/lldb/tools/debugserver/source/ |
| D | DNBBreakpoint.cpp | 56 iterator pos = m_breakpoints.find(addr); in Add() local 57 return &pos->second; in Add() 61 iterator pos = m_breakpoints.find(addr); in Remove() local 62 if (pos != m_breakpoints.end()) { in Remove() 63 m_breakpoints.erase(pos); in Remove() 70 iterator pos = m_breakpoints.find(addr); in FindByAddress() local 71 if (pos != m_breakpoints.end()) in FindByAddress() 72 return &pos->second; in FindByAddress() 78 const_iterator pos = m_breakpoints.find(addr); in FindByAddress() local 79 if (pos != m_breakpoints.end()) in FindByAddress() [all …]
|
| D | DNBRegisterInfo.cpp | 35 if (pos < end) { \ 37 strlcpy(pos, ", ", end - pos); \ 38 pos += 2; \ 46 char *pos; in Dump() local 72 pos = str + 2; in Dump() 74 if (pos < end) in Dump() 75 pos += in Dump() 76 snprintf(pos, end - pos, "%2.2x", (uint32_t)value.v_uint8[i]); in Dump() 144 pos = str + strlen(str); in Dump() 147 if (pos < end) in Dump() [all …]
|
| /openbsd/src/usr.bin/less/ |
| D | jump.c | 32 off_t pos; in jump_forw() local 52 pos = back_line(end_pos); in jump_forw() 53 if (pos == -1) { in jump_forw() 56 jump_loc(pos, sc_height-1); in jump_forw() 68 off_t pos; in jump_back() local 77 pos = find_pos(linenum); in jump_back() 78 if (pos != -1 && ch_seek(pos) == 0) { in jump_back() 80 set_attnpos(pos); in jump_back() 81 jump_loc(pos, jump_sline); in jump_back() 104 jump_loc(scrpos.pos, scrpos.ln); in repaint() [all …]
|
| D | forwback.c | 53 off_t pos; in eof_displayed() local 70 pos = position(BOTTOM_PLUS_ONE); in eof_displayed() 71 return (pos == -1 || pos == ch_length()); in eof_displayed() 80 off_t pos; in entire_file_displayed() local 87 pos = position(0); in entire_file_displayed() 88 return (pos == -1 || pos == 0); in entire_file_displayed() 116 forw(int n, off_t pos, int force, int only_last, int nblank) in forw() argument 137 if (top_scroll && n >= sc_height - 1 && pos != ch_length()) { in forw() 145 add_forw_pos(pos); in forw() 151 if (pos != position(BOTTOM_PLUS_ONE) || empty_screen()) { in forw() [all …]
|
| D | linenum.c | 49 off_t pos; /* File position */ member 99 anchor.pos = 0; in clr_linenum() 117 p->gap = p->next->pos - p->prev->pos; in calcgap() 126 add_lnum(off_t linenum, off_t pos) in add_lnum() argument 138 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next) in add_lnum() 167 new->pos = pos; in add_lnum() 254 find_linenum(off_t pos) in find_linenum() argument 265 if (pos == -1) in find_linenum() 270 if (pos <= ch_zero()) in find_linenum() 279 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next) in find_linenum() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/t/op/ |
| 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"); 24 $x = "test string?"; $x =~ s/\w/pos($x)/eg; 28 is(pos($x), 4, "matching, pos() leaves off at offset 4"); 30 is(pos($x), 4, "value of pos() unaffected by intermediate localization"); 37 is(pos $x, 3, "utf8_mg_len_cache_update() test"); 39 is(scalar pos $x, 3, "rvalue pos() utf8 test"); 48 pos($x) = 0; 55 'pos refuses @arrays'; [all …]
|
| /openbsd/src/usr.sbin/tcpdump/ |
| D | smb.h | 10 #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) argument 11 #define PVAL(buf,pos) ((unsigned)CVAL(buf,pos)) argument 12 #define SCVAL(buf,pos,val) (CVAL(buf,pos) = (val)) argument 14 #define SVAL(buf,pos) (PVAL(buf,pos)|PVAL(buf,(pos)+1)<<8) argument 15 #define IVAL(buf,pos) (SVAL(buf,pos)|SVAL(buf,(pos)+2)<<16) argument 16 #define SSVALX(buf,pos,val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8) argument 17 #define SIVALX(buf,pos,val) (SSVALX(buf,pos,val&0xFFFF),SSVALX(buf,pos+2,val>>16)) argument 18 #define SVALS(buf,pos) ((int16)SVAL(buf,pos)) argument 19 #define IVALS(buf,pos) ((int32)IVAL(buf,pos)) argument 20 #define SSVAL(buf,pos,val) SSVALX((buf),(pos),((uint16)(val))) argument [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Breakpoint/ |
| D | WatchpointList.cpp | 46 wp_collection::const_iterator pos, end = m_watchpoints.end(); in DumpWithLevel() local 47 for (pos = m_watchpoints.begin(); pos != end; ++pos) in DumpWithLevel() 48 (*pos)->DumpWithLevel(s, description_level); in DumpWithLevel() 56 wp_collection::const_iterator pos, end = m_watchpoints.end(); in FindByAddress() local 57 for (pos = m_watchpoints.begin(); pos != end; ++pos) { in FindByAddress() 58 lldb::addr_t wp_addr = (*pos)->GetLoadAddress(); in FindByAddress() 59 uint32_t wp_bytesize = (*pos)->GetByteSize(); in FindByAddress() 61 wp_sp = *pos; in FindByAddress() 74 wp_collection::const_iterator pos, end = m_watchpoints.end(); in FindBySpec() local 75 for (pos = m_watchpoints.begin(); pos != end; ++pos) in FindBySpec() [all …]
|
| D | BreakpointLocationList.cpp | 71 collection::const_iterator pos = in FindByID() local 73 if (pos != end && (*pos)->GetID() == break_id) in FindByID() 74 return *(pos); in FindByID() 83 collection::iterator pos, end = m_locations.end(); in FindInModule() local 85 for (pos = m_locations.begin(); pos != end; ++pos) { in FindInModule() 86 BreakpointLocationSP break_loc = (*pos); in FindInModule() 114 addr_map::const_iterator pos = m_address_to_location.find(so_addr); in FindByAddress() local 115 if (pos != m_address_to_location.end()) in FindByAddress() 116 bp_loc_sp = pos->second; in FindByAddress() 129 collection::const_iterator pos, end = m_locations.end(); in Dump() local [all …]
|
| /openbsd/src/usr.sbin/acme-client/ |
| D | jsmn.c | 61 start = parser->pos; in jsmn_parse_primitive() 63 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive() 64 switch (js[parser->pos]) { in jsmn_parse_primitive() 73 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive() 74 parser->pos = start; in jsmn_parse_primitive() 80 parser->pos = start; in jsmn_parse_primitive() 86 parser->pos--; in jsmn_parse_primitive() 91 parser->pos = start; in jsmn_parse_primitive() 94 jsmn_fill_token(token, JSMN_PRIMITIVE, start, parser->pos); in jsmn_parse_primitive() 98 parser->pos--; in jsmn_parse_primitive() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Target/ |
| D | ThreadList.cpp | 270 collection::iterator pos, end = threads_copy.end(); in ShouldStop() local 301 for (pos = threads_copy.begin(); pos != end; ++pos) { in ShouldStop() 302 ThreadSP thread_sp(*pos); in ShouldStop() 310 for (pos = threads_copy.begin(); pos != end; ++pos) { in ShouldStop() 311 ThreadSP thread_sp(*pos); in ShouldStop() 367 for (pos = threads_copy.begin(); pos != end; ++pos) { in ShouldStop() 368 ThreadSP thread_sp(*pos); in ShouldStop() 381 collection::iterator pos, end = m_threads.end(); in ShouldReportStop() local 392 for (pos = m_threads.begin(); pos != end; ++pos) { in ShouldReportStop() 393 ThreadSP thread_sp(*pos); in ShouldReportStop() [all …]
|
| D | UnixSignals.cpp | 128 collection::iterator pos = m_signals.find(signo); in RemoveSignal() local 129 if (pos != m_signals.end()) in RemoveSignal() 130 m_signals.erase(pos); in RemoveSignal() 135 collection::const_iterator pos = m_signals.find(signo); in GetSignalAsCString() local 136 if (pos == m_signals.end()) in GetSignalAsCString() 139 return pos->second.m_name.GetCString(); in GetSignalAsCString() 155 collection::const_iterator pos, end = m_signals.end(); in GetSignalNumberFromName() local 156 for (pos = m_signals.begin(); pos != end; pos++) { in GetSignalNumberFromName() 157 if ((const_name == pos->second.m_name) || in GetSignalNumberFromName() 158 (const_name == pos->second.m_alias) || in GetSignalNumberFromName() [all …]
|
| /openbsd/src/gnu/lib/libstdc++/libstdc++/testsuite/21_strings/ |
| D | find.cc | 145 std::string::size_type pos; in test01() local 146 pos = x.find_last_not_of('X'); in test01() 147 VERIFY( pos == npos ); in test01() 148 pos = x.find_last_not_of("XYZ"); in test01() 149 VERIFY( pos == npos ); in test01() 152 pos = y.find_last_not_of('X'); in test01() 153 VERIFY( pos == 0 ); in test01() 154 pos = y.find_last_not_of('a'); in test01() 155 VERIFY( pos == npos ); in test01() 156 pos = y.find_last_not_of("XYZ"); in test01() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
| D | DWARFDeclContext.cpp | 28 collection::const_reverse_iterator pos; in GetQualifiedName() local 31 for (pos = begin; pos != end; ++pos) { in GetQualifiedName() 32 if (pos != begin) in GetQualifiedName() 34 if (pos->name == nullptr) { in GetQualifiedName() 35 if (pos->tag == DW_TAG_namespace) in GetQualifiedName() 37 else if (pos->tag == DW_TAG_class_type) in GetQualifiedName() 39 else if (pos->tag == DW_TAG_structure_type) in GetQualifiedName() 41 else if (pos->tag == DW_TAG_union_type) in GetQualifiedName() 46 m_qualified_name.append(pos->name); in GetQualifiedName() 60 collection::const_iterator pos; in operator ==() local [all …]
|
| /openbsd/src/usr.sbin/ypserv/revnetgroup/ |
| D | parse_netgroup.c | 171 char *pos, *gpos; in parse_netgrp() local 198 pos = lp->l_line; in parse_netgrp() 200 while (pos != NULL && *pos != '\0') { in parse_netgrp() 201 if (*pos == '(') { in parse_netgrp() 206 pos++; in parse_netgrp() 207 gpos = strsep(&pos, ")"); in parse_netgrp() 255 spos = strsep(&pos, ", \t"); in parse_netgrp() 260 if (pos != NULL) in parse_netgrp() 261 while (*pos == ' ' || *pos == ',' || *pos == '\t') in parse_netgrp() 262 pos++; in parse_netgrp() [all …]
|
| /openbsd/src/gnu/llvm/lldb/include/lldb/Utility/ |
| D | RangeMap.h | 192 auto pos = std::lower_bound(begin, end, entry); in Insert() local 194 if (pos != end && pos->Union(entry)) { in Insert() 195 CombinePrevAndNext(pos); in Insert() 198 if (pos != begin) { in Insert() 199 auto prev = pos - 1; in Insert() 206 m_entries.insert(pos, entry); in Insert() 224 typename Collection::const_iterator pos, end, prev; in IsSorted() local 227 for (pos = m_entries.begin(), end = m_entries.end(), prev = end; pos != end; in IsSorted() 228 prev = pos++) { in IsSorted() 229 if (prev != end && *pos < *prev) in IsSorted() [all …]
|
| /openbsd/src/libexec/tradcpp/ |
| D | output.c | 105 size_t pos, start; in filter_output() local 111 for (pos = 0; pos < len - 1; pos++) { in filter_output() 112 if (!inquote && buf[pos] == '/' && buf[pos+1] == '*') { in filter_output() 114 if (pos > start) { in filter_output() 115 dowrite(buf + start, pos - start); in filter_output() 117 start = pos; in filter_output() 118 pos += 2; in filter_output() 121 pos--; in filter_output() 124 } else if (buf[pos] == '*' && buf[pos+1] == '/') { in filter_output() 126 pos += 2; in filter_output() [all …]
|