Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added *nix script make_pycco mirroring Windows .bat version. Regenerated docs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:54828bd15401f45a8750d9dd028c77edb77055d2
User & Date: erikj 2017-11-16 21:07:22
Context
2017-11-29
01:19
binconvert 0.2.1: Fix titxt input/output, add debug output, fix comments to fix autogenerated documentation. check-in: 5c5dcd2f50 user: erikj tags: trunk
2017-11-16
21:07
Added *nix script make_pycco mirroring Windows .bat version. Regenerated docs. check-in: 54828bd154 user: erikj tags: trunk
21:00
Rawbin must set channel to binary before reading/writing. check-in: eef93ae4e9 user: erikj tags: trunk
Changes

Changes to docs/binconvert.html.

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
...
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348

349
350
351

352



353
354
355
356
357
358
359
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span></span><span class="nb">package</span> require Tcl <span class="mf">8.6</span>
<span class="nb">package</span> require logger</pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
................................................................................
temporarily storing the whole thing in memory.  If you run out of
memory here, your file is on the order of a Gigabyte or more... and
these are really not appropriate formats for something that large.</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> cnt <span class="mi">1</span>
    <span class="k">set</span> chan <span class="k">[</span><span class="nb">open</span> <span class="nv">$fname</span> r<span class="k">]</span>
    <span class="nv">try</span> <span class="k">{</span>
        <span class="k">set</span> dataS <span class="k">[</span><span class="nb">read</span> <span class="nv">$chan</span><span class="k">]</span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-16'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-16'>#</a>
      </div>
      <p>Unless the data is raw binary, split the input data into lines.
If the format <em>is</em> raw binary, there's no lines to split.</p>

    </div>
    <div class='code'>
      <div class="highlight"><pre>        <span class="k">if</span> <span class="k">{</span><span class="nv">$datafmt</span> <span class="nv">ne</span> <span class="s2">&quot;rawbin&quot;</span><span class="k">}</span> <span class="k">{</span>

            <span class="k">set</span> dataL <span class="k">[</span><span class="nb">split</span> <span class="nv">$dataS</span> <span class="err">\</span>n<span class="k">]</span>



        <span class="k">}</span>
    <span class="k">}</span> finally <span class="k">{</span>
        <span class="nb">chan</span> close <span class="nv">$chan</span>
    <span class="k">}</span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>







|







 







|
<









|
>



>

>
>
>







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
...
330
331
332
333
334
335
336
337

338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span class="nb">package</span> require Tcl <span class="mf">8.6</span>
<span class="nb">package</span> require logger</pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
................................................................................
temporarily storing the whole thing in memory.  If you run out of
memory here, your file is on the order of a Gigabyte or more... and
these are really not appropriate formats for something that large.</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> cnt <span class="mi">1</span>
    <span class="k">set</span> chan <span class="k">[</span><span class="nb">open</span> <span class="nv">$fname</span> r<span class="k">]</span>
    <span class="nv">try</span> <span class="k">{</span></pre></div>

    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-16'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-16'>#</a>
      </div>
      <p>Unless the data is raw binary, split the input data into lines.
If the format <em>is</em> raw binary, there's no lines to split, but we
need to read it as binary.</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre>        <span class="k">if</span> <span class="k">{</span><span class="nv">$datafmt</span> <span class="nv">ne</span> <span class="s2">&quot;rawbin&quot;</span><span class="k">}</span> <span class="k">{</span>
            <span class="k">set</span> dataS <span class="k">[</span><span class="nb">read</span> <span class="nv">$chan</span><span class="k">]</span>
            <span class="k">set</span> dataL <span class="k">[</span><span class="nb">split</span> <span class="nv">$dataS</span> <span class="err">\</span>n<span class="k">]</span>
        <span class="k">}</span> <span class="k">else</span> <span class="k">{</span>
            <span class="nb">chan</span> configure <span class="nv">$chan</span> <span class="o">-</span>translation <span class="k">{</span><span class="nb">binary</span> binary<span class="k">}</span> <span class="o">-</span>encoding binary
            <span class="k">set</span> dataS <span class="k">[</span><span class="nb">read</span> <span class="nv">$chan</span><span class="k">]</span>
        <span class="k">}</span>
    <span class="k">}</span> finally <span class="k">{</span>
        <span class="nb">chan</span> close <span class="nv">$chan</span>
    <span class="k">}</span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>

Changes to docs/ihex.html.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span></span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>







|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>

Changes to docs/index.html.

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  </div>
  <div class='clearall'>
  <div class='section' id='section-'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-'>#</a>
      </div>
      <li><a href="binconvert.html">binconvert.html</a></li><li><a href="ihex.html">ihex.html</a></li><li><a href="rawbin.html">rawbin.html</a></li><li><a href="srec.html">srec.html</a></li><li><a href="titxt.html">titxt.html</a></li>
    </div>
    <div class='code'>
      
    </div>
  </div>
  <div class='clearall'></div>
</div>
</body>







|








13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  </div>
  <div class='clearall'>
  <div class='section' id='section-'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-'>#</a>
      </div>
      <li><a href="binconvert.html">binconvert.html</a></li><li><a href="ihex.html">ihex.html</a></li><li><a href="pkgIndex.html">pkgIndex.html</a></li><li><a href="rawbin.html">rawbin.html</a></li><li><a href="srec.html">srec.html</a></li><li><a href="titxt.html">titxt.html</a></li>
    </div>
    <div class='code'>
      
    </div>
  </div>
  <div class='clearall'></div>
</div>
</body>

Changes to docs/rawbin.html.

34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
...
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
  will fill in undefined data with bytes of 0xFF or as the user sets.</p>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span></span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>
................................................................................
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> maxAddr <span class="mi">0</span>
    <span class="k">foreach</span> <span class="k">{</span><span class="nv">addr</span> dataL<span class="k">}</span> <span class="nv">$segmentList</span> <span class="k">{</span>
        <span class="k">if</span> <span class="k">{</span><span class="nv">$maxAddr</span> <span class="o">&lt;</span> <span class="k">(</span><span class="nv">$addr</span> <span class="o">+</span> <span class="k">[</span><span class="nb">llength</span> <span class="nv">$dataL</span><span class="k">])}</span> <span class="k">{</span>
            <span class="k">set</span> maxAddr <span class="k">[expr</span> <span class="k">{</span><span class="nv">$addr</span> <span class="o">+</span> <span class="k">[</span><span class="nb">llength</span> <span class="nv">$dataL</span><span class="k">]}]</span>
        <span class="k">}</span>
    <span class="k">}</span>
    <span class="k">set</span> outL <span class="k">[</span><span class="nb">lrepeat</span> <span class="nv">$fillValue</span> <span class="k">]</span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-6'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-6'>#</a>
................................................................................
      </div>
      <p>After the output list is completely filled, convert it to a binary
string and write it to disk.  Don't forget to set the output channel to
binary too, to keep line feeds from being corrupted.</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> outS <span class="k">[</span><span class="nb">binary</span> format c<span class="o">*</span> <span class="nv">$outL</span><span class="k">]</span>
    <span class="nb">chan</span> configure <span class="nv">$outchan</span> <span class="o">-</span>translation binary
    <span class="nb">puts</span> <span class="nv">$outchan</span> <span class="nv">$outS</span>
<span class="k">}</span>

</pre></div>
    </div>
  </div>
  <div class='clearall'></div>
</div>
</body>







|







 







|







 







|









34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
...
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
...
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
  will fill in undefined data with bytes of 0xFF or as the user sets.</p>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>
................................................................................
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> maxAddr <span class="mi">0</span>
    <span class="k">foreach</span> <span class="k">{</span><span class="nv">addr</span> dataL<span class="k">}</span> <span class="nv">$segmentList</span> <span class="k">{</span>
        <span class="k">if</span> <span class="k">{</span><span class="nv">$maxAddr</span> <span class="o">&lt;</span> <span class="k">(</span><span class="nv">$addr</span> <span class="o">+</span> <span class="k">[</span><span class="nb">llength</span> <span class="nv">$dataL</span><span class="k">])}</span> <span class="k">{</span>
            <span class="k">set</span> maxAddr <span class="k">[expr</span> <span class="k">{</span><span class="nv">$addr</span> <span class="o">+</span> <span class="k">[</span><span class="nb">llength</span> <span class="nv">$dataL</span><span class="k">]}]</span>
        <span class="k">}</span>
    <span class="k">}</span>
    <span class="k">set</span> outL <span class="k">[</span><span class="nb">lrepeat</span> <span class="nv">$fillValue</span><span class="k">]</span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-6'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-6'>#</a>
................................................................................
      </div>
      <p>After the output list is completely filled, convert it to a binary
string and write it to disk.  Don't forget to set the output channel to
binary too, to keep line feeds from being corrupted.</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre>    <span class="k">set</span> outS <span class="k">[</span><span class="nb">binary</span> format c<span class="o">*</span> <span class="nv">$outL</span><span class="k">]</span>
    <span class="nb">chan</span> configure <span class="nv">$outchan</span> <span class="o">-</span>translation <span class="k">{</span><span class="nb">binary</span> binary<span class="k">}</span> <span class="o">-</span>encoding binary
    <span class="nb">puts</span> <span class="nv">$outchan</span> <span class="nv">$outS</span>
<span class="k">}</span>

</pre></div>
    </div>
  </div>
  <div class='clearall'></div>
</div>
</body>

Changes to docs/srec.html.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span></span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>







|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
</ul>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>

Changes to docs/titxt.html.

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<p>titxt.tcl contains all the support procs for the form generated by TI's</p>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre><span></span></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>







|







30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<p>titxt.tcl contains all the support procs for the form generated by TI's</p>
<h6></h6>
<p>This package documentation is auto-generated with
Pycco: <a href="https://pycco-docs.github.io/pycco/">https://pycco-docs.github.io/pycco/</a></p>
<p>Use "pycco <em>filename</em>" to re-generate HTML documentation in ./docs .</p>
    </div>
    <div class='code'>
      <div class="highlight"><pre></pre></div>
    </div>
  </div>
  <div class='clearall'></div>
  <div class='section' id='section-1'>
    <div class='docs'>
      <div class='octowrap'>
        <a class='octothorpe' href='#section-1'>#</a>

Added make_pycco.







>
>
>
1
2
3
#!/usr/bin/bash

pycco *.tcl