Home
last modified time | relevance | path

Searched refs:m_start (Results 1 – 25 of 41) sorted by relevance

12

/openbsd/usr.bin/vi/vi/
H A Dv_xchar.c60 vp->m_final.cno = vp->m_start.cno ? vp->m_start.cno - 1 : 0; in v_xchar()
62 vp->m_final.cno = vp->m_start.cno; in v_xchar()
66 &vp->m_start, &vp->m_stop, 0)) in v_xchar()
68 return (del(sp, &vp->m_start, &vp->m_stop, 0)); in v_xchar()
83 if (vp->m_start.cno == 0) { in v_Xchar()
89 if (cnt >= vp->m_start.cno) in v_Xchar()
90 vp->m_start.cno = 0; in v_Xchar()
92 vp->m_start.cno -= cnt; in v_Xchar()
94 vp->m_final.cno = vp->m_start.cno; in v_Xchar()
98 &vp->m_start, &vp->m_stop, 0)) in v_Xchar()
[all …]
H A Dv_left.c40 if (vp->m_start.cno == 0) { in v_left()
47 if (vp->m_start.cno > cnt) in v_left()
48 vp->m_stop.cno = vp->m_start.cno - cnt; in v_left()
58 --vp->m_start.cno; in v_left()
176 if (vp->m_start.cno < vp->m_stop.cno) in v_first()
179 vp->m_final = vp->m_start; in v_first()
184 --vp->m_start.cno; in v_first()
238 if (vp->m_start.cno < vp->m_stop.cno) in v_ncol()
241 vp->m_final = vp->m_start; in v_ncol()
246 --vp->m_start.cno; in v_ncol()
[all …]
H A Dv_itxt.c96 sp->lno = vp->m_start.lno; in v_ia()
152 sp->lno = vp->m_start.lno; in v_ii()
283 vp->m_start.cno = 0; in v_change()
285 if (nonblank(sp, vp->m_start.lno, &vp->m_start.cno)) in v_change()
290 sp->lno = vp->m_start.lno; in v_change()
291 sp->cno = vp->m_start.cno; in v_change()
333 if (lmode && vp->m_start.cno) { in v_change()
341 memmove(bp, p, vp->m_start.cno); in v_change()
351 if (db_insert(sp, vp->m_start.lno, bp, vp->m_start.cno)) in v_change()
353 sp->lno = vp->m_start.lno; in v_change()
[all …]
H A Dv_paragraph.c93 if (vp->m_start.cno == 0) in v_paragraphf()
96 vp->m_stop = vp->m_start; in v_paragraphf()
106 lno = vp->m_start.lno; in v_paragraphf()
171 eof: if (vp->m_start.lno == lno || vp->m_start.lno == lno - 1) { in v_paragraphf()
175 vp->m_start.cno = 0; in v_paragraphf()
233 lno = vp->m_start.lno; in v_paragraphb()
238 v_sof(sp, &vp->m_start); in v_paragraphb()
241 --vp->m_start.lno; in v_paragraphb()
244 --vp->m_start.cno; in v_paragraphb()
247 if (vp->m_start.lno <= 1) in v_paragraphb()
[all …]
H A Dv_sentence.c60 cs.cs_lno = vp->m_start.lno; in v_sentencef()
61 cs.cs_cno = vp->m_start.cno; in v_sentencef()
78 vp->m_start.cno != cs.cs_cno) in v_sentencef()
146 if (vp->m_start.lno == cs.cs_lno && vp->m_start.cno == cs.cs_cno) { in v_sentencef()
168 if (vp->m_start.cno == 0 && in v_sentencef()
179 vp->m_final = vp->m_start; in v_sentencef()
204 if (vp->m_start.lno == 1 && vp->m_start.cno == 0) in v_sentenceb()
207 cs.cs_lno = vp->m_start.lno; in v_sentenceb()
208 cs.cs_cno = vp->m_start.cno; in v_sentenceb()
342 if (vp->m_start.cno == 0 && in v_sentenceb()
[all …]
H A Dv_mark.c35 return (mark_set(sp, vp->character, &vp->m_start, 1)); in v_mark()
129 vp->m_stop.lno == vp->m_start.lno && in mark()
130 vp->m_stop.cno == vp->m_start.cno) { in mark()
142 if (vp->m_start.lno > vp->m_stop.lno || in mark()
143 (vp->m_start.lno == vp->m_stop.lno && in mark()
144 vp->m_start.cno > vp->m_stop.cno)) { in mark()
145 m = vp->m_start; in mark()
146 vp->m_start = vp->m_stop; in mark()
173 vp->m_final = vp->m_start; in mark()
197 if (nonblank(sp, vp->m_start.lno, &len)) in mark()
[all …]
H A Dv_replace.c67 if (db_get(sp, vp->m_start.lno, DBG_FATAL, &p, &len)) in v_replace()
85 vp->m_stop.lno = vp->m_start.lno; in v_replace()
86 vp->m_stop.cno = vp->m_start.cno + cnt - 1; in v_replace()
88 v_eol(sp, &vp->m_start); in v_replace()
155 vp->m_stop.lno = vp->m_start.lno + 1; in v_replace()
159 if (db_set(sp, vp->m_start.lno, p, vp->m_start.cno)) in v_replace()
169 p += vp->m_start.cno + cnt; in v_replace()
170 len -= vp->m_start.cno + cnt; in v_replace()
178 if (v_txt_auto(sp, vp->m_start.lno, NULL, 0, tp)) in v_replace()
192 memset(bp + vp->m_start.cno, vip->rlast, cnt); in v_replace()
[all …]
H A Dv_match.c50 if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) { in v_match()
55 for (off = vp->m_start.cno;; ++off) { in v_match()
99 cs.cs_lno = vp->m_start.lno; in v_match()
134 if (vp->m_start.lno < vp->m_stop.lno || in v_match()
135 (vp->m_start.lno == vp->m_stop.lno && in v_match()
136 vp->m_start.cno < vp->m_stop.cno)) in v_match()
137 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_match()
149 if (!ISMOTION(vp) || vp->m_start.lno == vp->m_stop.lno) in v_match()
151 mp = vp->m_start.lno < vp->m_stop.lno ? &vp->m_start : &vp->m_stop; in v_match()
159 mp = vp->m_start.lno < vp->m_stop.lno ? &vp->m_stop : &vp->m_start; in v_match()
H A Dv_section.c82 if (vp->m_start.cno == 0) in v_sectionf()
85 vp->m_stop = vp->m_start; in v_sectionf()
89 if (vp->m_start.cno <= vp->m_stop.cno) in v_sectionf()
95 for (lno = vp->m_start.lno; !db_get(sp, ++lno, 0, &p, &len);) { in v_sectionf()
140 if (vp->m_start.lno == lno - 1) { in v_sectionf()
155 vp->m_final = vp->m_start; in v_sectionf()
177 if (vp->m_start.lno <= 1) { in v_sectionb()
187 for (lno = vp->m_start.lno; !db_get(sp, --lno, 0, &p, &len);) { in v_sectionb()
236 ret1: if (vp->m_start.cno == 0) { in v_sectionb()
240 --vp->m_start.lno; in v_sectionb()
[all …]
H A Dv_word.c107 cs.cs_lno = vp->m_start.lno; in fword()
108 cs.cs_cno = vp->m_start.cno; in fword()
212 cs.cs_lno == vp->m_start.lno && cs.cs_cno == vp->m_start.cno) { in fword()
213 v_eof(sp, &vp->m_start); in fword()
267 cs.cs_lno = vp->m_start.lno; in eword()
268 cs.cs_cno = vp->m_start.cno; in eword()
360 cs.cs_lno == vp->m_start.lno && cs.cs_cno == vp->m_start.cno) { in eword()
361 v_eof(sp, &vp->m_start); in eword()
501 ret: if (cs.cs_lno == vp->m_start.lno && cs.cs_cno == vp->m_start.cno) { in bword()
502 v_sof(sp, &vp->m_start); in bword()
[all …]
H A Dv_scroll.c85 v_eof(sp, &vp->m_start); in v_lgoto()
191 if (vp->m_stop.lno < vp->m_start.lno || in goto_adjust()
192 (vp->m_stop.lno == vp->m_start.lno && in goto_adjust()
193 vp->m_stop.cno < vp->m_start.cno)) { in goto_adjust()
195 vp->m_final = vp->m_start; in goto_adjust()
197 vp->m_final = vp->m_start; in goto_adjust()
212 if (vp->m_start.lno <= lno) { in v_up()
213 v_sof(sp, &vp->m_start); in v_up()
216 vp->m_stop.lno = vp->m_start.lno - lno; in v_up()
237 return (sscr_exec(sp, vp->m_start.lno)); in v_cr()
[all …]
H A Dv_right.c37 if (db_eget(sp, vp->m_start.lno, NULL, &len, &isempty)) { in v_right()
58 vp->m_stop.cno = vp->m_start.cno + in v_right()
60 if (vp->m_start.cno == len - 1 && !ISMOTION(vp)) { in v_right()
66 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_right()
69 vp->m_final = vp->m_start; in v_right()
99 if (nonblank(sp, vp->m_start.lno, &vp->m_stop.cno)) in v_dollar()
101 if (ISMOTION(vp) && vp->m_start.cno <= vp->m_stop.cno) in v_dollar()
137 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_dollar()
H A Dv_search.c359 &vp->m_start, &vp->m_stop, ptrn, plen, NULL, flags)) in v_search()
421 if (vp->m_start.lno == vp->m_stop.lno && in v_correct()
422 vp->m_start.cno == vp->m_stop.cno) { in v_correct()
443 if (vp->m_start.lno > vp->m_stop.lno || in v_correct()
444 (vp->m_start.lno == vp->m_stop.lno && in v_correct()
445 vp->m_start.cno > vp->m_stop.cno)) { in v_correct()
446 m = vp->m_start; in v_correct()
447 vp->m_start = vp->m_stop; in v_correct()
459 vp->m_final = vp->m_start; in v_correct()
484 if (nonblank(sp, vp->m_start.lno, &len)) in v_correct()
[all …]
H A Dv_put.c49 &vp->m_start, &vp->m_final, 0)) in v_Put()
51 vp->m_start = vp->m_final; in v_Put()
80 &vp->m_start, &vp->m_final, 1)) in v_put()
82 vp->m_start = vp->m_final; in v_put()
H A Dv_ch.c152 if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) { in v_chf()
164 p += vp->m_start.cno; in v_chf()
179 vp->m_final = ISMOTION(vp) ? vp->m_start : vp->m_stop; in v_chf()
234 if (db_eget(sp, vp->m_start.lno, &p, &len, &isempty)) { in v_chF()
246 p += vp->m_start.cno; in v_chF()
264 --vp->m_start.cno; in v_chF()
H A Dv_ulcase.c55 lno = vp->m_start.lno; in v_ulcase()
56 cno = vp->m_start.cno; in v_ulcase()
112 for (lno = vp->m_start.lno;;) { in v_mulcase()
116 lno == vp->m_start.lno ? vp->m_start.cno : 0, in v_mulcase()
H A Dv_ex.c46 ex_cinit(&cmd, C_SUBAGAIN, 2, vp->m_start.lno, vp->m_start.lno, 1, ap); in v_again()
109 lno = vp->m_start.lno + 1; in v_join()
111 lno = vp->m_start.lno + (vp->count - 1); in v_join()
113 ex_cinit(&cmd, C_JOIN, 2, vp->m_start.lno, lno, 0, NULL); in v_join()
129 ex_cinit(&cmd, C_SHIFTL, 2, vp->m_start.lno, vp->m_stop.lno, 0, ap); in v_shiftl()
146 ex_cinit(&cmd, C_SHIFTR, 2, vp->m_start.lno, vp->m_stop.lno, 0, ap); in v_shiftr()
271 2, vp->m_start.lno, vp->m_stop.lno, 0, NULL); in v_filter()
303 ex_cinit(&cmd, C_BANG, 2, vp->m_start.lno, vp->m_stop.lno, 0, NULL); in v_filter()
/openbsd/gnu/llvm/lldb/tools/debugserver/source/
H A DDNBDataRef.cpp41 val = *(m_start + *offset_ptr); in Get8()
51 const uint8_t *p = m_start + *offset_ptr; in Get16()
67 const uint8_t *p = m_start + *offset_ptr; in Get32()
82 const uint8_t *p = m_start + *offset_ptr; in Get64()
153 if (m_start < m_end) { in GetCStr()
154 s = (const char *)m_start + *offset_ptr; in GetCStr()
170 data = m_start + *offset_ptr; in GetData()
179 if (m_start < m_end) { in Get_ULEB128()
181 const uint8_t *src = m_start + *offset_ptr; in Get_ULEB128()
203 if (m_start < m_end) { in Get_SLEB128()
[all …]
H A DDNBDataRef.h66 size_t GetSize() const { return m_end - m_start; } in GetSize()
67 const uint8_t *GetDataStart() const { return m_start; } in GetDataStart()
72 m_start = start; in SetData()
73 if (m_start != NULL) in SetData()
101 return (const char *)m_start + offset; in PeekCStr()
115 const uint8_t *m_start;
/openbsd/gnu/llvm/lldb/source/Plugins/Language/CPlusPlus/
H A DLibCxxInitializerList.cpp40 ValueObject *m_start = nullptr; member in lldb_private::formatters::LibcxxInitializerListSyntheticFrontEnd
74 if (!m_start) in GetChildAtIndex()
78 offset = offset + m_start->GetValueAsUnsigned(0); in GetChildAtIndex()
90 m_start = nullptr; in Update()
99 m_start = m_backend.GetChildMemberWithName(g_begin_, true).get(); in Update()
112 if (!m_start) in GetIndexOfChildWithName()
H A DLibCxxSpan.cpp63 ValueObject *m_start = nullptr; ///< First element of span. Held, not owned. member in lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd
84 if (!m_start) in GetChildAtIndex()
88 offset = offset + m_start->GetValueAsUnsigned(0); in GetChildAtIndex()
111 m_start = data_type_finder_sp.get(); in Update()
135 if (!m_start) in GetIndexOfChildWithName()
H A DLibCxxVector.cpp39 ValueObject *m_start = nullptr; member in lldb_private::formatters::LibcxxStdVectorSyntheticFrontEnd
87 if (!m_start || !m_finish) in CalculateNumChildren()
89 uint64_t start_val = m_start->GetValueAsUnsigned(0); in CalculateNumChildren()
107 if (!m_start || !m_finish) in GetChildAtIndex()
111 offset = offset + m_start->GetValueAsUnsigned(0); in GetChildAtIndex()
120 m_start = m_finish = nullptr; in Update()
152 m_start = in Update()
168 if (!m_start || !m_finish) in GetIndexOfChildWithName()
/openbsd/gnu/llvm/lldb/tools/debugserver/source/MacOSX/
H A DMachVMRegion.cpp20 m_start(INVALID_NUB_ADDRESS), m_size(0), m_depth(-1), in MachVMRegion()
35 m_start = INVALID_NUB_ADDRESS; in Clear()
122 m_start = addr; in GetRegionForAddress()
127 ::mach_vm_region_recurse(m_task, &m_start, &m_size, &m_depth, in GetRegionForAddress()
137 m_task, (uint64_t)m_start, (uint64_t)m_size, m_depth, in GetRegionForAddress()
168 return !((addr < m_start) || (addr >= (m_start + m_size))); in GetRegionForAddress()
172 if (m_addr == INVALID_NUB_ADDRESS || m_start == INVALID_NUB_ADDRESS || in GetDNBPermissions()
H A DMachVMRegion.h26 mach_vm_address_t StartAddress() const { return m_start; } in StartAddress()
27 mach_vm_address_t EndAddress() const { return m_start + m_size; } in EndAddress()
31 return m_size - (addr - m_start); in BytesRemaining()
61 mach_vm_address_t m_start; variable
/openbsd/gnu/llvm/lldb/source/Utility/
H A DDataExtractor.cpp170 : m_start(rhs.m_start), m_end(rhs.m_end), m_byte_order(rhs.m_byte_order), in DataExtractor()
179 m_start = rhs.m_start; in operator =()
193 m_start = nullptr; in Clear()
203 if (m_start != nullptr) { in GetSharedDataOffset()
208 assert(m_start >= data_bytes); in GetSharedDataOffset()
209 return m_start - data_bytes; in GetSharedDataOffset()
228 m_start = nullptr; in SetData()
232 m_end = m_start + length; in SetData()
283 m_start = m_end = nullptr; in SetData()
363 val = ReadInt16(m_start, *offset_ptr); in GetU16_unchecked()
[all …]

12