/[smeserver]/rpms/clamav/sme9/zlib-1.2.7-z-block-flush.patch
ViewVC logotype

Annotation of /rpms/clamav/sme9/zlib-1.2.7-z-block-flush.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Nov 13 04:49:39 2018 UTC (5 years, 11 months ago) by jpp
Branch: MAIN
zlib patch

1 jpp 1.1 <!DOCTYPE html>
2     <html lang='en'>
3     <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5     <title>Tree - rpms/clamav - Pagure</title>
6     <link rel="shortcut icon" type="image/vnd.microsoft.icon"
7     href="/static/favicon.ico"/>
8     <link href="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.css"
9     type="text/css" rel="stylesheet" />
10     <link href="/static/pagure.css"
11     type="text/css" rel="stylesheet" />
12     <link href="/static/vendor/open-iconic/css/open-iconic.min.css"
13     type="text/css" rel="stylesheet" />
14     <link href="/static/fonts/fonts.css"
15     rel="stylesheet" type="text/css" />
16     <link href="/static/vendor/hack_fonts/css/hack-extended.min.css"
17     type="text/css" rel="stylesheet" />
18     </head>
19     <body id="home">
20     <!-- start masthead -->
21     <div class="masthead">
22     <div class="container">
23     <div class="row">
24     <div class="col-sm-3">
25     <a href="/">
26     <img height=40px src="/static/pagure-logo.png"
27     alt="pagure Logo" id="pagureLogo"/>
28     </a>
29     </div>
30     <div class="col-sm-9">
31     <div class="row">
32    
33     <nav class="navbar navbar-light p-t-0 p-b-0">
34     <div class="container">
35     <ul class="nav navbar-nav nav-underline pull-xs-right">
36     <li class="nav-item p-l-1">
37     <a class="nav-link btn btn-primary" href="/login/?next=https://src.fedoraproject.org/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-z-block-flush.patch">Log In</a>
38     </li>
39     </ul>
40     </div>
41     </nav>
42    
43     </div>
44     </div>
45     </div>
46     </div>
47     </div><!-- close masthead-->
48    
49     <div class="bodycontent p-b-3">
50    
51    
52     <div class="repo-header p-t-1">
53     <div class="container">
54     <header>
55     <h2 class="repo-name m-b-0">
56     <a href="/user/robert"><span class="oi" data-glyph="fork">
57     </span>robert</a>/<a href="/projects/rpms/%2A">rpms</a>/<a href="/fork/robert/rpms/clamav">clamav</a>
58     </h2>
59    
60     <div class="m-t-0">
61     Forked from
62     <a href="/rpms/clamav">
63     rpms/clamav
64     </a>
65     </div>
66     <div class="projectinfo m-t-1 m-b-1">
67     The clamav rpms </div>
68     </header>
69    
70     <ul class="nav nav-tabs nav-small">
71     <li class="nav-item">
72     <a class="nav-link" href="/fork/robert/rpms/clamav">
73     <span class="oi hidden-md-up" data-glyph="home"></span>
74     <span class="hidden-sm-down">Overview</span>
75     </a>
76     </li>
77    
78     <li class="nav-item">
79     <a class="nav-link" href="/fork/robert/rpms/clamav/commits/el6">
80     <span class="oi hidden-md-up" data-glyph="spreadsheet">
81     </span><span class="hidden-sm-down">Commits</span>
82     </a>
83     </li>
84    
85     <li class="nav-item">
86     <a class="active nav-link" href="/fork/robert/rpms/clamav/tree/el6">
87     <span class="oi hidden-md-up" data-glyph="file"></span>
88     <span class="hidden-sm-down">Files</span>
89     </a>
90     </li>
91    
92     <li class="nav-item">
93     <a class="nav-link" href="/fork/robert/rpms/clamav/releases">
94     <span class="oi hidden-md-up" data-glyph="box"></span>
95     <span class="hidden-sm-down">Releases</span>
96     </a>
97     </li>
98    
99    
100    
101     <li class="nav-item">
102     <a class="nav-link" href="/fork/robert/rpms/clamav/stats">
103     <span class="oi hidden-md-up" data-glyph="task"></span>
104     <span class="hidden-sm-down">Stats&nbsp;</span>
105     </a>
106     </li>
107    
108    
109     </ul>
110     </div>
111     </div>
112    
113     <div class="container p-t-3">
114     <div class="row m-b-1">
115     <div class="col-sm-6">
116     <h3>
117     Files
118     </h3>
119     </div>
120    
121     <div class="col-sm-6">
122     <div class="pull-xs-right">
123     <div class="button-label button-label-default">
124     <span class="oi" data-glyph="fork"></span>
125     robert/clamav
126    
127     </div>
128     <div class="btn-group">
129     <button type="button" class="btn btn-secondary btn-sm dropdown-toggle"
130     data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
131     <span class="oi" data-glyph="random"> </span> el6
132     </button>
133     <div class="dropdown-menu dropdown-menu-right">
134     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el4/f/zlib-1.2.7-z-block-flush.patch">
135     el4
136     </a>
137     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el5/f/zlib-1.2.7-z-block-flush.patch">
138     el5
139     </a>
140     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-z-block-flush.patch">
141     el6
142     </a>
143     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/epel7/f/zlib-1.2.7-z-block-flush.patch">
144     epel7
145     </a>
146     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f10/f/zlib-1.2.7-z-block-flush.patch">
147     f10
148     </a>
149     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f11/f/zlib-1.2.7-z-block-flush.patch">
150     f11
151     </a>
152     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f12/f/zlib-1.2.7-z-block-flush.patch">
153     f12
154     </a>
155     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f13/f/zlib-1.2.7-z-block-flush.patch">
156     f13
157     </a>
158     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f14/f/zlib-1.2.7-z-block-flush.patch">
159     f14
160     </a>
161     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f15/f/zlib-1.2.7-z-block-flush.patch">
162     f15
163     </a>
164     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f16/f/zlib-1.2.7-z-block-flush.patch">
165     f16
166     </a>
167     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f17/f/zlib-1.2.7-z-block-flush.patch">
168     f17
169     </a>
170     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f18/f/zlib-1.2.7-z-block-flush.patch">
171     f18
172     </a>
173     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f19/f/zlib-1.2.7-z-block-flush.patch">
174     f19
175     </a>
176     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f20/f/zlib-1.2.7-z-block-flush.patch">
177     f20
178     </a>
179     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f21/f/zlib-1.2.7-z-block-flush.patch">
180     f21
181     </a>
182     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f22/f/zlib-1.2.7-z-block-flush.patch">
183     f22
184     </a>
185     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f23/f/zlib-1.2.7-z-block-flush.patch">
186     f23
187     </a>
188     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f24/f/zlib-1.2.7-z-block-flush.patch">
189     f24
190     </a>
191     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f25/f/zlib-1.2.7-z-block-flush.patch">
192     f25
193     </a>
194     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f26/f/zlib-1.2.7-z-block-flush.patch">
195     f26
196     </a>
197     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f27/f/zlib-1.2.7-z-block-flush.patch">
198     f27
199     </a>
200     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f28/f/zlib-1.2.7-z-block-flush.patch">
201     f28
202     </a>
203     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f7/f/zlib-1.2.7-z-block-flush.patch">
204     f7
205     </a>
206     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f8/f/zlib-1.2.7-z-block-flush.patch">
207     f8
208     </a>
209     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/f9/f/zlib-1.2.7-z-block-flush.patch">
210     f9
211     </a>
212     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/fc6/f/zlib-1.2.7-z-block-flush.patch">
213     fc6
214     </a>
215     <a class="dropdown-item" href="/fork/robert/rpms/clamav/blob/master/f/zlib-1.2.7-z-block-flush.patch">
216     master
217     </a>
218     </div>
219     </div>
220     </div>
221     </div>
222     </div>
223     <div class="card">
224     <div class="card-header">
225     <ol class="breadcrumb">
226     <li>
227     <a href="/fork/robert/rpms/clamav/tree/el6">
228     <span class="oi" data-glyph="random">
229     </span>&nbsp; el6
230     </a>
231     </li>
232     <li class="active">
233     <span class="oi" data-glyph="file">
234     </span>&nbsp; zlib-1.2.7-z-block-flush.patch
235     </li>
236     </ol>
237     </div>
238    
239     <div class="card-block p-a-0">
240     <div class="file-button-bar">
241     <form class="btn btn-sm" method="POST" name="fork_project"
242     action="/fork_edit/fork/robert/rpms/clamav/edit/el6/f/zlib-1.2.7-z-block-flush.patch">
243     <button class="btn btn-sm btn-secondary"
244     onclick="fork_project.submit();">
245     Fork and Edit
246     </button>
247    
248     </form>
249    
250     <a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blob/el6/f/zlib-1.2.7-z-block-flush.patch" title="View as blob">Blob</a>
251    
252     <a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/blame/zlib-1.2.7-z-block-flush.patch?identifier=el6" title="View git blame">Blame</a>
253    
254     <a class="btn btn-secondary btn-sm" href="/fork/robert/rpms/clamav/raw/el6/f/zlib-1.2.7-z-block-flush.patch" title="View as raw">Raw</a>
255     </div>
256    
257     <div class="highlight">
258     <table class="code_table">
259     <tr><td class="cell1"><a id="_1" href="#_1" data-line-number="1"></a></td>
260     <td class="cell2"><pre><span></span>From f1b8edadc3c733990f8a8de4d643f968e571ae85 Mon Sep 17 00:00:00 2001</pre></td>
261     </tr>
262     <tr><td class="cell1"><a id="_2" href="#_2" data-line-number="2"></a></td>
263     <td class="cell2"><pre>From: Adam Tkac &lt;atkac@redhat.com&gt;</pre></td>
264     </tr>
265     <tr><td class="cell1"><a id="_3" href="#_3" data-line-number="3"></a></td>
266     <td class="cell2"><pre>Date: Fri, 17 Aug 2012 15:13:48 +0200</pre></td>
267     </tr>
268     <tr><td class="cell1"><a id="_4" href="#_4" data-line-number="4"></a></td>
269     <td class="cell2"><pre>Subject: [PATCH] Rank Z_BLOCK flush below Z_PARTIAL_FLUSH only when last</pre></td>
270     </tr>
271     <tr><td class="cell1"><a id="_5" href="#_5" data-line-number="5"></a></td>
272     <td class="cell2"><pre> flush was Z_BLOCK.</pre></td>
273     </tr>
274     <tr><td class="cell1"><a id="_6" href="#_6" data-line-number="6"></a></td>
275    
276     <tr><td class="cell1"><a id="_7" href="#_7" data-line-number="7"></a></td>
277     <td class="cell2"><pre>This fixes regression introduced by f1ebdd6a9c495a5db9a22aa80dd7d54ae7db42e9</pre></td>
278     </tr>
279     <tr><td class="cell1"><a id="_8" href="#_8" data-line-number="8"></a></td>
280     <td class="cell2"><pre>(Permit stronger flushes after Z_BLOCK flushes.). Now this code is valid</pre></td>
281     </tr>
282     <tr><td class="cell1"><a id="_9" href="#_9" data-line-number="9"></a></td>
283     <td class="cell2"><pre>again:</pre></td>
284     </tr>
285     <tr><td class="cell1"><a id="_10" href="#_10" data-line-number="10"></a></td>
286    
287     <tr><td class="cell1"><a id="_11" href="#_11" data-line-number="11"></a></td>
288     <td class="cell2"><pre>deflate(stream, Z_SYNC_FLUSH);</pre></td>
289     </tr>
290     <tr><td class="cell1"><a id="_12" href="#_12" data-line-number="12"></a></td>
291     <td class="cell2"><pre>deflateParams(stream, newLevel, Z_DEFAULT_STRATEGY);</pre></td>
292     </tr>
293     <tr><td class="cell1"><a id="_13" href="#_13" data-line-number="13"></a></td>
294    
295     <tr><td class="cell1"><a id="_14" href="#_14" data-line-number="14"></a></td>
296     <td class="cell2"><pre>Signed-off-by: Adam Tkac &lt;atkac@redhat.com&gt;</pre></td>
297     </tr>
298     <tr><td class="cell1"><a id="_15" href="#_15" data-line-number="15"></a></td>
299     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">---</span></pre></td>
300     </tr>
301     <tr><td class="cell1"><a id="_16" href="#_16" data-line-number="16"></a></td>
302     <td class="cell2"><pre> deflate.c | 13 ++++++++++---</pre></td>
303     </tr>
304     <tr><td class="cell1"><a id="_17" href="#_17" data-line-number="17"></a></td>
305     <td class="cell2"><pre> 1 file changed, 10 insertions(+), 3 deletions(-)</pre></td>
306     </tr>
307     <tr><td class="cell1"><a id="_18" href="#_18" data-line-number="18"></a></td>
308    
309     <tr><td class="cell1"><a id="_19" href="#_19" data-line-number="19"></a></td>
310     <td class="cell2"><pre><span style="color: #000080; font-weight: bold">diff --git a/deflate.c b/deflate.c</span></pre></td>
311     </tr>
312     <tr><td class="cell1"><a id="_20" href="#_20" data-line-number="20"></a></td>
313     <td class="cell2"><pre><span style="color: #000080; font-weight: bold">index 9e4c2cb..3422f72 100644</span></pre></td>
314     </tr>
315     <tr><td class="cell1"><a id="_21" href="#_21" data-line-number="21"></a></td>
316     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">--- a/deflate.c</span></pre></td>
317     </tr>
318     <tr><td class="cell1"><a id="_22" href="#_22" data-line-number="22"></a></td>
319     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+++ b/deflate.c</span></pre></td>
320     </tr>
321     <tr><td class="cell1"><a id="_23" href="#_23" data-line-number="23"></a></td>
322     <td class="cell2"><pre><span style="color: #800080; font-weight: bold">@@ -882,9 +882,16 @@ int ZEXPORT deflate (strm, flush)</span></pre></td>
323     </tr>
324     <tr><td class="cell1"><a id="_24" href="#_24" data-line-number="24"></a></td>
325     <td class="cell2"><pre> * flushes. For repeated and useless calls with Z_FINISH, we keep</pre></td>
326     </tr>
327     <tr><td class="cell1"><a id="_25" href="#_25" data-line-number="25"></a></td>
328     <td class="cell2"><pre> * returning Z_STREAM_END instead of Z_BUF_ERROR.</pre></td>
329     </tr>
330     <tr><td class="cell1"><a id="_26" href="#_26" data-line-number="26"></a></td>
331     <td class="cell2"><pre> */</pre></td>
332     </tr>
333     <tr><td class="cell1"><a id="_27" href="#_27" data-line-number="27"></a></td>
334     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- } else if (strm-&gt;avail_in == 0 &amp;&amp; RANK(flush) &lt;= RANK(old_flush) &amp;&amp;</span></pre></td>
335     </tr>
336     <tr><td class="cell1"><a id="_28" href="#_28" data-line-number="28"></a></td>
337     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- flush != Z_FINISH) {</span></pre></td>
338     </tr>
339     <tr><td class="cell1"><a id="_29" href="#_29" data-line-number="29"></a></td>
340     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">- ERR_RETURN(strm, Z_BUF_ERROR);</span></pre></td>
341     </tr>
342     <tr><td class="cell1"><a id="_30" href="#_30" data-line-number="30"></a></td>
343     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ } else if (strm-&gt;avail_in == 0 &amp;&amp; flush != Z_FINISH) {</span></pre></td>
344     </tr>
345     <tr><td class="cell1"><a id="_31" href="#_31" data-line-number="31"></a></td>
346     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ char err;</span></pre></td>
347     </tr>
348     <tr><td class="cell1"><a id="_32" href="#_32" data-line-number="32"></a></td>
349     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+</span></pre></td>
350     </tr>
351     <tr><td class="cell1"><a id="_33" href="#_33" data-line-number="33"></a></td>
352     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ /* Degrade Z_BLOCK only when last flush was Z_BLOCK */</span></pre></td>
353     </tr>
354     <tr><td class="cell1"><a id="_34" href="#_34" data-line-number="34"></a></td>
355     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ err = (old_flush == Z_BLOCK) ?</span></pre></td>
356     </tr>
357     <tr><td class="cell1"><a id="_35" href="#_35" data-line-number="35"></a></td>
358     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ RANK(flush) &lt;= RANK(old_flush) : flush &lt;= old_flush;</span></pre></td>
359     </tr>
360     <tr><td class="cell1"><a id="_36" href="#_36" data-line-number="36"></a></td>
361     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+</span></pre></td>
362     </tr>
363     <tr><td class="cell1"><a id="_37" href="#_37" data-line-number="37"></a></td>
364     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ if (err) {</span></pre></td>
365     </tr>
366     <tr><td class="cell1"><a id="_38" href="#_38" data-line-number="38"></a></td>
367     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ ERR_RETURN(strm, Z_BUF_ERROR);</span></pre></td>
368     </tr>
369     <tr><td class="cell1"><a id="_39" href="#_39" data-line-number="39"></a></td>
370     <td class="cell2"><pre><span style="color: #00A000; background-color: #ddffdd">+ }</span></pre></td>
371     </tr>
372     <tr><td class="cell1"><a id="_40" href="#_40" data-line-number="40"></a></td>
373     <td class="cell2"><pre> }</pre></td>
374     </tr>
375     <tr><td class="cell1"><a id="_41" href="#_41" data-line-number="41"></a></td>
376     <td class="cell2"><pre> </pre></td>
377     </tr>
378     <tr><td class="cell1"><a id="_42" href="#_42" data-line-number="42"></a></td>
379     <td class="cell2"><pre> /* User must not provide more input after the first FINISH: */</pre></td>
380     </tr>
381     <tr><td class="cell1"><a id="_43" href="#_43" data-line-number="43"></a></td>
382     <td class="cell2"><pre><span style="color: #a40000; background-color: #ffdddd">-- </span></pre></td>
383     </tr>
384     <tr><td class="cell1"><a id="_44" href="#_44" data-line-number="44"></a></td>
385     <td class="cell2"><pre>1.7.11.4</pre></td>
386     </tr>
387     </table></div>
388     </div>
389     </div> <!-- end .card-->
390    
391    
392     </div>
393     </div>
394    
395     <div class="footer p-t-1 p-b-1">
396     <div class="container">
397     <p class="text-muted credit">
398     Copyright &copy; 2014-2018 Red Hat
399     <a href="https://pagure.io/pagure">pagure</a> &mdash;
400     4.0.4 &mdash; <a href="https://docs.pagure.org/pagure/usage/index.html">Documentation</a>
401     </p>
402     <p><a href="/ssh_info">SSH Hostkey/Fingerprint</a></p>
403     </div>
404     </div>
405    
406     <script type="text/javascript"
407     src="/static/vendor/jquery/jquery.min.js">
408     </script>
409     <script type="text/javascript"
410     src="/static/vendor/jquery-ui/jquery-ui.min.js">
411     </script>
412     <script type="text/javascript"
413     src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.1/fedora-bootstrap.js">
414     </script>
415     <script type="text/javascript">
416     $('[data-toggle="tooltip"]').tooltip({placement : 'bottom'});
417     </script>
418    
419     <script type="text/javascript"
420     src="/static/vendor/lazyload/lazyload.min.js">
421     </script>
422     <script type="text/javascript">
423     window.addEventListener("load", function(event) {
424     lazyload();
425     });
426    
427     $(document).ready(function() {
428     var currentWatchStatusButton = $('#unwatch_button');
429     currentWatchStatusButton.prepend('<span class="oi" data-glyph="circle-check" style="padding-right:0.5em"></span>');
430     $('.watch-menu a').not(currentWatchStatusButton).css('padding-left', '2.85em');
431    
432     $(".watch-menu a").click(function(){
433     var selectedValue = $(this).attr('id');
434     var watchProjectForm = $("#watch_project");
435     var action = watchProjectForm.attr('action');
436    
437     if (selectedValue === "watch_issues_button") {
438     action = action.replace('/settings/0', '/settings/1');
439     } else if (selectedValue === "watch_commits_button") {
440     action = action.replace('/settings/0', '/settings/2');
441     } else if (selectedValue === "watch_issues_commits_button") {
442     action = action.replace('/settings/0', '/settings/3');
443     } else if (selectedValue === "reset_button") {
444     action = action.replace('/settings/0', '/settings/-1');
445     }
446    
447     watchProjectForm.attr('action', action);
448     watchProjectForm.submit();
449     });
450     });
451     </script>
452    
453     <script type="text/javascript">
454     function updateHighlight() {
455     var cls = "highlighted-line";
456     $('.' + cls).removeClass(cls)
457     if (location.hash !== '') {
458     var lines = location.hash.substr(2).split('-').map(function (x) { return parseInt(x, 10) });
459     for (var i = lines[lines.length - 1]; i >= lines[0]; i--) {
460     $('[data-line-number=' + i + ']').closest('tr').addClass(cls);
461     }
462     return lines;
463     }
464     return [];
465     }
466     $(document).ready(function () {
467     var lines = updateHighlight();
468     if (lines) {
469     var offset = $('[data-line-number=' + lines[0] + ']').offset().top;
470     $('html, body').animate({scrollTop: offset}, 200);
471     }
472     });
473     $(window).on('hashchange', updateHighlight);
474     var selected = [];
475     $("[data-line-number]").click(function (ev) {
476     var line = $(this).attr('data-line-number');
477     if (ev.shiftKey) {
478     selected = selected.slice(-1).concat(line);
479     } else {
480     selected = [line];
481     }
482    
483     var hash = '_' + selected[0];
484     if (selected.length === 2) {
485     hash = '_' + Math.min(selected[0], selected[1]) + '-' + Math.max(selected[0], selected[1]);
486     }
487     window.location.hash = hash;
488     return false;
489     });
490     </script>
491    
492    
493     </body>
494     </html>

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed