diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-05-29 14:21:32 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-05-29 14:21:32 -0700 |
commit | 2c678a4e1d7f97c862342ee19cf2d6ee6e901d85 (patch) | |
tree | aa2954661eac22bd347e3fe28262a99481d42ff1 /html/100trace_browser.cc.html | |
parent | 0bc6fbd396f35e8dfd5cf5f5827b4ba665c3fcdf (diff) | |
download | mu-2c678a4e1d7f97c862342ee19cf2d6ee6e901d85.tar.gz |
3897 - various updates to documentation
Diffstat (limited to 'html/100trace_browser.cc.html')
-rw-r--r-- | html/100trace_browser.cc.html | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/html/100trace_browser.cc.html b/html/100trace_browser.cc.html index 2f679230..f51ec516 100644 --- a/html/100trace_browser.cc.html +++ b/html/100trace_browser.cc.html @@ -126,7 +126,7 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span><span class="Delimiter">:(before "End Primitive Recipe Declarations")</span> <span id="L67" class="LineNr"> 67 </span>_BROWSE_TRACE<span class="Delimiter">,</span> <span id="L68" class="LineNr"> 68 </span><span class="Delimiter">:(before "End Primitive Recipe Numbers")</span> -<span id="L69" class="LineNr"> 69 </span><a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">"$browse-trace"</span><span class="Delimiter">,</span> _BROWSE_TRACE<span class="Delimiter">);</span> +<span id="L69" class="LineNr"> 69 </span><a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Recipe_ordinal<span class="Delimiter">,</span> <span class="Constant">"$browse-trace"</span><span class="Delimiter">,</span> _BROWSE_TRACE<span class="Delimiter">);</span> <span id="L70" class="LineNr"> 70 </span><span class="Delimiter">:(before "End Primitive Recipe Checks")</span> <span id="L71" class="LineNr"> 71 </span><span class="Normal">case</span> _BROWSE_TRACE: <span class="Delimiter">{</span> <span id="L72" class="LineNr"> 72 </span> <span class="Identifier">break</span><span class="Delimiter">;</span> @@ -139,7 +139,7 @@ if ('onhashchange' in window) { <span id="L79" class="LineNr"> 79 </span> <span id="L80" class="LineNr"> 80 </span><span class="Comment">//: browse a trace loaded from a file</span> <span id="L81" class="LineNr"> 81 </span><span class="Delimiter">:(after "Commandline Parsing")</span> -<span id="L82" class="LineNr"> 82 </span><span class="Normal">if</span> <span class="Delimiter">(</span>argc == <span class="Constant">3</span> && <a href='001help.cc.html#L70'>is_equal</a><span class="Delimiter">(</span>argv[<span class="Constant">1</span>]<span class="Delimiter">,</span> <span class="Constant">"browse-trace"</span><span class="Delimiter">))</span> <span class="Delimiter">{</span> +<span id="L82" class="LineNr"> 82 </span><span class="Normal">if</span> <span class="Delimiter">(</span>argc == <span class="Constant">3</span> && <a href='001help.cc.html#L73'>is_equal</a><span class="Delimiter">(</span>argv[<span class="Constant">1</span>]<span class="Delimiter">,</span> <span class="Constant">"browse-trace"</span><span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L83" class="LineNr"> 83 </span> <a href='100trace_browser.cc.html#L494'>load_trace</a><span class="Delimiter">(</span>argv[<span class="Constant">2</span>]<span class="Delimiter">);</span> <span id="L84" class="LineNr"> 84 </span> <a href='100trace_browser.cc.html#L101'>start_trace_browser</a><span class="Delimiter">();</span> <span id="L85" class="LineNr"> 85 </span> <span class="Identifier">return</span> <span class="Constant">0</span><span class="Delimiter">;</span> @@ -162,13 +162,13 @@ if ('onhashchange' in window) { <span id="L102" class="LineNr">102 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!Trace_stream<span class="Delimiter">)</span> <span class="Identifier">return</span><span class="Delimiter">;</span> <span id="L103" class="LineNr">103 </span> cerr << <span class="Constant">"computing min depth to display</span><span class="cSpecial">\n</span><span class="Constant">"</span><span class="Delimiter">;</span> <span id="L104" class="LineNr">104 </span> <span class="Normal">int</span> min_depth = <span class="Constant">9999</span><span class="Delimiter">;</span> -<span id="L105" class="LineNr">105 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L105" class="LineNr">105 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L106" class="LineNr">106 </span> <span class="Conceal">¦</span> trace_line& curr_line = Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">);</span> <span id="L107" class="LineNr">107 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>curr_line<span class="Delimiter">.</span>depth < min_depth<span class="Delimiter">)</span> min_depth = curr_line<span class="Delimiter">.</span>depth<span class="Delimiter">;</span> <span id="L108" class="LineNr">108 </span> <span class="Delimiter">}</span> <span id="L109" class="LineNr">109 </span> cerr << <span class="Constant">"min depth is "</span> << min_depth << <span class="cSpecial">'\n'</span><span class="Delimiter">;</span> <span id="L110" class="LineNr">110 </span> cerr << <span class="Constant">"computing lines to display</span><span class="cSpecial">\n</span><span class="Constant">"</span><span class="Delimiter">;</span> -<span id="L111" class="LineNr">111 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L111" class="LineNr">111 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L112" class="LineNr">112 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>depth == min_depth<span class="Delimiter">)</span> <span id="L113" class="LineNr">113 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Visible<span class="Delimiter">.</span>insert<span class="Delimiter">(</span>i<span class="Delimiter">);</span> <span id="L114" class="LineNr">114 </span> <span class="Delimiter">}</span> @@ -254,7 +254,7 @@ if ('onhashchange' in window) { <span id="L194" class="LineNr">194 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L195" class="LineNr">195 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == <span class="Constant">'G'</span> || key == TB_KEY_END<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L196" class="LineNr">196 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// go to bottom of screen; largely like page-up, interestingly</span> -<span id="L197" class="LineNr">197 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Top_of_screen = <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">)</span>-<span class="Constant">1</span><span class="Delimiter">;</span> +<span id="L197" class="LineNr">197 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> Top_of_screen = <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">)</span>-<span class="Constant">1</span><span class="Delimiter">;</span> <span id="L198" class="LineNr">198 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> screen_row = tb_height<span class="Delimiter">();</span> screen_row > <span class="Constant">0</span> && Top_of_screen > <span class="Constant">0</span><span class="Delimiter">;</span> --screen_row<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L199" class="LineNr">199 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> --Top_of_screen<span class="Delimiter">;</span> <span id="L200" class="LineNr">200 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>Top_of_screen <= <span class="Constant">0</span><span class="Delimiter">)</span> <span class="Identifier">break</span><span class="Delimiter">;</span> @@ -273,7 +273,7 @@ if ('onhashchange' in window) { <span id="L213" class="LineNr">213 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> index = <span class="Constant">0</span><span class="Delimiter">;</span> <span id="L214" class="LineNr">214 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// simultaneously compute end_index and min_depth</span> <span id="L215" class="LineNr">215 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> min_depth = <span class="Constant">9999</span><span class="Delimiter">;</span> -<span id="L216" class="LineNr">216 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span>index = start_index+<span class="Constant">1</span><span class="Delimiter">;</span> index < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L216" class="LineNr">216 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span>index = start_index+<span class="Constant">1</span><span class="Delimiter">;</span> index < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L217" class="LineNr">217 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>contains_key<span class="Delimiter">(</span>Visible<span class="Delimiter">,</span> index<span class="Delimiter">))</span> <span class="Identifier">break</span><span class="Delimiter">;</span> <span id="L218" class="LineNr">218 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> trace_line& curr_line = Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>index<span class="Delimiter">);</span> <span id="L219" class="LineNr">219 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>curr_line<span class="Delimiter">.</span>depth > Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>start_index<span class="Delimiter">).</span>depth<span class="Delimiter">);</span> @@ -296,7 +296,7 @@ if ('onhashchange' in window) { <span id="L236" class="LineNr">236 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> index = <span class="Constant">0</span><span class="Delimiter">;</span> <span id="L237" class="LineNr">237 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// end_index is the next line at a depth same as or lower than start_index</span> <span id="L238" class="LineNr">238 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> initial_depth = Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>start_index<span class="Delimiter">).</span>depth<span class="Delimiter">;</span> -<span id="L239" class="LineNr">239 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span>index = start_index+<span class="Constant">1</span><span class="Delimiter">;</span> index < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L239" class="LineNr">239 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span>index = start_index+<span class="Constant">1</span><span class="Delimiter">;</span> index < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L240" class="LineNr">240 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>!contains_key<span class="Delimiter">(</span>Visible<span class="Delimiter">,</span> index<span class="Delimiter">))</span> <span class="Identifier">continue</span><span class="Delimiter">;</span> <span id="L241" class="LineNr">241 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> trace_line& curr_line = Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>index<span class="Delimiter">);</span> <span id="L242" class="LineNr">242 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>curr_line<span class="Delimiter">.</span>depth <= initial_depth<span class="Delimiter">)</span> <span class="Identifier">break</span><span class="Delimiter">;</span> @@ -356,7 +356,7 @@ if ('onhashchange' in window) { <span id="L296" class="LineNr">296 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L297" class="LineNr">297 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L298" class="LineNr">298 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == TB_KEY_ARROW_RIGHT<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L299" class="LineNr">299 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span> < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">))</span> <span class="Delimiter">{</span> +<span id="L299" class="LineNr">299 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span> < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L300" class="LineNr">300 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> ++col<span class="Delimiter">;</span> <span id="L301" class="LineNr">301 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L302" class="LineNr">302 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> @@ -366,39 +366,39 @@ if ('onhashchange' in window) { <span id="L306" class="LineNr">306 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L307" class="LineNr">307 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L308" class="LineNr">308 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == TB_KEY_END || key == TB_KEY_CTRL_E<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L309" class="LineNr">309 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> col = <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> +<span id="L309" class="LineNr">309 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> col = <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> <span id="L310" class="LineNr">310 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L311" class="LineNr">311 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L312" class="LineNr">312 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == TB_KEY_BACKSPACE || key == TB_KEY_BACKSPACE2<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L313" class="LineNr">313 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>col > <span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L314" class="LineNr">314 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>col <= <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Constant">1</span><span class="Delimiter">);</span> +<span id="L314" class="LineNr">314 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>col <= <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Constant">1</span><span class="Delimiter">);</span> <span id="L315" class="LineNr">315 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> --col<span class="Delimiter">;</span> <span id="L316" class="LineNr">316 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// update pattern</span> <span id="L317" class="LineNr">317 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> pattern<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">,</span> <span class="Comment">/*</span><span class="Comment">len</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">);</span> <span id="L318" class="LineNr">318 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// update screen</span> <span id="L319" class="LineNr">319 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> -<span id="L320" class="LineNr">320 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = col<span class="Delimiter">;</span> x < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> +<span id="L320" class="LineNr">320 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = col<span class="Delimiter">;</span> x < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> <span id="L321" class="LineNr">321 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span>pattern<span class="Delimiter">.</span>at<span class="Delimiter">(</span>x-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">),</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> <span id="L322" class="LineNr">322 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span><span class="Constant">' '</span><span class="Delimiter">,</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> <span id="L323" class="LineNr">323 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L324" class="LineNr">324 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L325" class="LineNr">325 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L326" class="LineNr">326 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == TB_KEY_CTRL_K<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L327" class="LineNr">327 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> old_pattern_size = <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">);</span> -<span id="L328" class="LineNr">328 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> pattern<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">,</span> <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span> - <span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">));</span> +<span id="L327" class="LineNr">327 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> old_pattern_size = <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">);</span> +<span id="L328" class="LineNr">328 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> pattern<span class="Delimiter">.</span>erase<span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">,</span> <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span> - <span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">));</span> <span id="L329" class="LineNr">329 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L330" class="LineNr">330 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = col<span class="Delimiter">;</span> x < old_pattern_size+<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> <span id="L331" class="LineNr">331 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span><span class="Constant">' '</span><span class="Delimiter">,</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> <span id="L332" class="LineNr">332 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L333" class="LineNr">333 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L334" class="LineNr">334 </span> <span class="Conceal">¦</span> <span class="Normal">else</span> <span class="Normal">if</span> <span class="Delimiter">(</span>key == TB_KEY_CTRL_U<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L335" class="LineNr">335 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> old_pattern_size = <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">);</span> +<span id="L335" class="LineNr">335 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">int</span> old_pattern_size = <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">);</span> <span id="L336" class="LineNr">336 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> pattern<span class="Delimiter">.</span>erase<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">,</span> col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">);</span> <span id="L337" class="LineNr">337 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> col = <span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> <span id="L338" class="LineNr">338 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> -<span id="L339" class="LineNr">339 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = <span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> x < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> +<span id="L339" class="LineNr">339 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = <span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> x < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> <span id="L340" class="LineNr">340 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span>pattern<span class="Delimiter">.</span>at<span class="Delimiter">(</span>x-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">),</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> -<span id="L341" class="LineNr">341 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> x < old_pattern_size+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> +<span id="L341" class="LineNr">341 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> x < old_pattern_size+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> <span id="L342" class="LineNr">342 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span><span class="Constant">' '</span><span class="Delimiter">,</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> <span id="L343" class="LineNr">343 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> <span id="L344" class="LineNr">344 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> @@ -406,10 +406,10 @@ if ('onhashchange' in window) { <span id="L346" class="LineNr">346 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// update pattern</span> <span id="L347" class="LineNr">347 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">char</span> c = <span class="Normal">static_cast</span><<span class="Normal">char</span>><span class="Delimiter">(</span>key<span class="Delimiter">);</span> <span id="L348" class="LineNr">348 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>col-<span class="Constant">1</span> >= <span class="Constant">0</span><span class="Delimiter">);</span> -<span id="L349" class="LineNr">349 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>col-<span class="Constant">1</span> <= <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">));</span> +<span id="L349" class="LineNr">349 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>col-<span class="Constant">1</span> <= <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">));</span> <span id="L350" class="LineNr">350 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> pattern<span class="Delimiter">.</span>insert<span class="Delimiter">(</span>col-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">,</span> <span class="Comment">/*</span><span class="Comment">num</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">,</span> c<span class="Delimiter">);</span> <span id="L351" class="LineNr">351 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Comment">// update screen</span> -<span id="L352" class="LineNr">352 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = col<span class="Delimiter">;</span> x < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> +<span id="L352" class="LineNr">352 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> x = col<span class="Delimiter">;</span> x < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>pattern<span class="Delimiter">)</span>+<span class="Comment">/*</span><span class="Comment">skip slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">;</span> ++x<span class="Delimiter">)</span> <span id="L353" class="LineNr">353 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_print<span class="Delimiter">(</span>pattern<span class="Delimiter">.</span>at<span class="Delimiter">(</span>x-<span class="Comment">/*</span><span class="Comment">slash</span><span class="Comment">*/</span><span class="Constant">1</span><span class="Delimiter">),</span> TB_WHITE<span class="Delimiter">,</span> TB_BLACK<span class="Delimiter">);</span> <span id="L354" class="LineNr">354 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> ++col<span class="Delimiter">;</span> <span id="L355" class="LineNr">355 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> tb_set_cursor<span class="Delimiter">(</span>col<span class="Delimiter">,</span> bottom_screen_line<span class="Delimiter">);</span> @@ -428,7 +428,7 @@ if ('onhashchange' in window) { <span id="L368" class="LineNr">368 </span><span class="Delimiter">}</span> <span id="L369" class="LineNr">369 </span> <span id="L370" class="LineNr">370 </span><span class="Normal">void</span> <a href='100trace_browser.cc.html#L370'>search_next</a><span class="Delimiter">(</span><span class="Normal">const</span> string& pat<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L371" class="LineNr">371 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> trace_index = get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> Display_row<span class="Delimiter">)</span>+<span class="Constant">1</span><span class="Delimiter">;</span> trace_index < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++trace_index<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L371" class="LineNr">371 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> trace_index = get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> Display_row<span class="Delimiter">)</span>+<span class="Constant">1</span><span class="Delimiter">;</span> trace_index < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++trace_index<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L372" class="LineNr">372 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>!contains_key<span class="Delimiter">(</span>Visible<span class="Delimiter">,</span> trace_index<span class="Delimiter">))</span> <span class="Identifier">continue</span><span class="Delimiter">;</span> <span id="L373" class="LineNr">373 </span> <span class="Conceal">¦</span> <span class="Normal">const</span> trace_line& line = Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">.</span>at<span class="Delimiter">(</span>trace_index<span class="Delimiter">);</span> <span id="L374" class="LineNr">374 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>line<span class="Delimiter">.</span>label<span class="Delimiter">.</span>find<span class="Delimiter">(</span>pat<span class="Delimiter">)</span> == string::npos && line<span class="Delimiter">.</span>contents<span class="Delimiter">.</span>find<span class="Delimiter">(</span>pat<span class="Delimiter">)</span> == string::npos<span class="Delimiter">)</span> <span class="Identifier">continue</span><span class="Delimiter">;</span> @@ -462,14 +462,14 @@ if ('onhashchange' in window) { <span id="L402" class="LineNr">402 </span><span class="Normal">void</span> <a href='100trace_browser.cc.html#L402'>refresh_screen_rows</a><span class="Delimiter">()</span> <span class="Delimiter">{</span> <span id="L403" class="LineNr">403 </span> <span class="Normal">int</span> screen_row = <span class="Constant">0</span><span class="Delimiter">,</span> index = <span class="Constant">0</span><span class="Delimiter">;</span> <span id="L404" class="LineNr">404 </span> Trace_index<span class="Delimiter">.</span><a href='050scenario.cc.html#L60'>clear</a><span class="Delimiter">();</span> -<span id="L405" class="LineNr">405 </span> <span class="Normal">for</span> <span class="Delimiter">(</span>screen_row = <span class="Constant">0</span><span class="Delimiter">,</span> index = Top_of_screen<span class="Delimiter">;</span> screen_row < tb_height<span class="Delimiter">()</span> && index < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++screen_row<span class="Delimiter">,</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L405" class="LineNr">405 </span> <span class="Normal">for</span> <span class="Delimiter">(</span>screen_row = <span class="Constant">0</span><span class="Delimiter">,</span> index = Top_of_screen<span class="Delimiter">;</span> screen_row < tb_height<span class="Delimiter">()</span> && index < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">);</span> ++screen_row<span class="Delimiter">,</span> ++index<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L406" class="LineNr">406 </span> <span class="Conceal">¦</span> <span class="Comment">// skip lines without depth for now</span> <span id="L407" class="LineNr">407 </span> <span class="Conceal">¦</span> <span class="Normal">while</span> <span class="Delimiter">(</span>!contains_key<span class="Delimiter">(</span>Visible<span class="Delimiter">,</span> index<span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L408" class="LineNr">408 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> ++index<span class="Delimiter">;</span> -<span id="L409" class="LineNr">409 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>index >= <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">))</span> <span class="Identifier">goto</span> done<span class="Delimiter">;</span> +<span id="L409" class="LineNr">409 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>index >= <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">))</span> <span class="Identifier">goto</span> done<span class="Delimiter">;</span> <span id="L410" class="LineNr">410 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> -<span id="L411" class="LineNr">411 </span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>index < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">));</span> -<span id="L412" class="LineNr">412 </span> <span class="Conceal">¦</span> <a href='001help.cc.html#L218'>put</a><span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">,</span> index<span class="Delimiter">);</span> +<span id="L411" class="LineNr">411 </span> <span class="Conceal">¦</span> assert<span class="Delimiter">(</span>index < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">));</span> +<span id="L412" class="LineNr">412 </span> <span class="Conceal">¦</span> <a href='001help.cc.html#L221'>put</a><span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">,</span> index<span class="Delimiter">);</span> <span id="L413" class="LineNr">413 </span> <span class="Delimiter">}</span> <span id="L414" class="LineNr">414 </span><span class="Normal">done</span>:<span class="Delimiter">;</span> <span id="L415" class="LineNr">415 </span><span class="Delimiter">}</span> @@ -503,7 +503,7 @@ if ('onhashchange' in window) { <span id="L443" class="LineNr">443 </span><span class="Normal">int</span> <a href='100trace_browser.cc.html#L443'>lines_hidden</a><span class="Delimiter">(</span><span class="Normal">int</span> screen_row<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L444" class="LineNr">444 </span> assert<span class="Delimiter">(</span>contains_key<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">));</span> <span id="L445" class="LineNr">445 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>!contains_key<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row+<span class="Constant">1</span><span class="Delimiter">))</span> -<span id="L446" class="LineNr">446 </span> <span class="Conceal">¦</span> <span class="Identifier">return</span> <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">)</span> - get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">);</span> +<span id="L446" class="LineNr">446 </span> <span class="Conceal">¦</span> <span class="Identifier">return</span> <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>Trace_stream<span class="Delimiter">-></span>past_lines<span class="Delimiter">)</span> - get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">);</span> <span id="L447" class="LineNr">447 </span> <span class="Normal">else</span> <span id="L448" class="LineNr">448 </span> <span class="Conceal">¦</span> <span class="Identifier">return</span> get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row+<span class="Constant">1</span><span class="Delimiter">)</span> - get<span class="Delimiter">(</span>Trace_index<span class="Delimiter">,</span> screen_row<span class="Delimiter">);</span> <span id="L449" class="LineNr">449 </span><span class="Delimiter">}</span> @@ -514,7 +514,7 @@ if ('onhashchange' in window) { <span id="L454" class="LineNr">454 </span> <span class="Normal">int</span> background_color = cursor_line ? <span class="Comment">/*</span><span class="Comment">subtle grey</span><span class="Comment">*/</span><span class="Constant">240</span> : TB_BLACK<span class="Delimiter">;</span> <span id="L455" class="LineNr">455 </span> vector<pair<<span class="Normal">size_t</span><span class="Delimiter">,</span> <span class="Normal">size_t</span>> > highlight_ranges = <a href='100trace_browser.cc.html#L472'>find_all_occurrences</a><span class="Delimiter">(</span>s<span class="Delimiter">,</span> Current_search_pattern<span class="Delimiter">);</span> <span id="L456" class="LineNr">456 </span> tb_set_cursor<span class="Delimiter">(</span><span class="Constant">0</span><span class="Delimiter">,</span> screen_row<span class="Delimiter">);</span> -<span id="L457" class="LineNr">457 </span> <span class="Normal">for</span> <span class="Delimiter">(</span>col = <span class="Constant">0</span><span class="Delimiter">;</span> col < tb_width<span class="Delimiter">()</span> && col+Left_of_screen < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>s<span class="Delimiter">);</span> ++col<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L457" class="LineNr">457 </span> <span class="Normal">for</span> <span class="Delimiter">(</span>col = <span class="Constant">0</span><span class="Delimiter">;</span> col < tb_width<span class="Delimiter">()</span> && col+Left_of_screen < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>s<span class="Delimiter">);</span> ++col<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L458" class="LineNr">458 </span> <span class="Conceal">¦</span> <span class="Normal">char</span> c = s<span class="Delimiter">.</span>at<span class="Delimiter">(</span>col+Left_of_screen<span class="Delimiter">);</span> <span class="Comment">// todo: unicode</span> <span id="L459" class="LineNr">459 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>c == <span class="cSpecial">'\n'</span><span class="Delimiter">)</span> c = <span class="Constant">';'</span><span class="Delimiter">;</span> <span class="Comment">// replace newlines with semi-colons</span> <span id="L460" class="LineNr">460 </span> <span class="Conceal">¦</span> <span class="Comment">// escapes. hack: can't start a line with them.</span> @@ -543,7 +543,7 @@ if ('onhashchange' in window) { <span id="L483" class="LineNr">483 </span><span class="Delimiter">}</span> <span id="L484" class="LineNr">484 </span> <span id="L485" class="LineNr">485 </span><span class="Normal">bool</span> <a href='100trace_browser.cc.html#L485'>in_range</a><span class="Delimiter">(</span><span class="Normal">const</span> vector<pair<<span class="Normal">size_t</span><span class="Delimiter">,</span> <span class="Normal">size_t</span>> >& highlight_ranges<span class="Delimiter">,</span> <span class="Normal">size_t</span> idx<span class="Delimiter">)</span> <span class="Delimiter">{</span> -<span id="L486" class="LineNr">486 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L138'>SIZE</a><span class="Delimiter">(</span>highlight_ranges<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L486" class="LineNr">486 </span> <span class="Normal">for</span> <span class="Delimiter">(</span><span class="Normal">int</span> i = <span class="Constant">0</span><span class="Delimiter">;</span> i < <a href='001help.cc.html#L141'>SIZE</a><span class="Delimiter">(</span>highlight_ranges<span class="Delimiter">);</span> ++i<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L487" class="LineNr">487 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>idx >= highlight_ranges<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>first && idx < highlight_ranges<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>second<span class="Delimiter">)</span> <span id="L488" class="LineNr">488 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Identifier">return</span> <span class="Constant">true</span><span class="Delimiter">;</span> <span id="L489" class="LineNr">489 </span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>idx < highlight_ranges<span class="Delimiter">.</span>at<span class="Delimiter">(</span>i<span class="Delimiter">).</span>second<span class="Delimiter">)</span> <span class="Identifier">break</span><span class="Delimiter">;</span> @@ -558,7 +558,7 @@ if ('onhashchange' in window) { <span id="L498" class="LineNr">498 </span> <span class="Conceal">¦</span> exit<span class="Delimiter">(</span><span class="Constant">1</span><span class="Delimiter">);</span> <span id="L499" class="LineNr">499 </span> <span class="Delimiter">}</span> <span id="L500" class="LineNr">500 </span> Trace_stream = <span class="Normal">new</span> trace_stream<span class="Delimiter">;</span> -<span id="L501" class="LineNr">501 </span> <span class="Normal">while</span> <span class="Delimiter">(</span><a href='001help.cc.html#L235'>has_data</a><span class="Delimiter">(</span>tin<span class="Delimiter">))</span> <span class="Delimiter">{</span> +<span id="L501" class="LineNr">501 </span> <span class="Normal">while</span> <span class="Delimiter">(</span><a href='001help.cc.html#L238'>has_data</a><span class="Delimiter">(</span>tin<span class="Delimiter">))</span> <span class="Delimiter">{</span> <span id="L502" class="LineNr">502 </span> <span class="Conceal">¦</span> tin >> std::noskipws<span class="Delimiter">;</span> <span id="L503" class="LineNr">503 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> skip_whitespace_but_not_newline<span class="Delimiter">(</span>tin<span class="Delimiter">);</span> <span id="L504" class="LineNr">504 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="Normal">if</span> <span class="Delimiter">(</span>!isdigit<span class="Delimiter">(</span>tin<span class="Delimiter">.</span>peek<span class="Delimiter">()))</span> <span class="Delimiter">{</span> |