Debian Codegraph @

embedded/www/files/critcl_changes.html

raw
1 <!DOCTYPE html><html><head>
2 <meta charset="UTF-8">
3 <meta name="viewport" content="width=device-width, initial-scale=1">
4 <title>critcl_changes - C Runtime In Tcl (CriTcl)</title>
5 <style type="text/css"><!--
6 HTML {
7 background: #FFFFFF;
8 color: black;
9 }
10 BODY {
11 background: #FFFFFF;
12 color: black;
13 }
14 DIV.doctools {
15 margin-left: 10%;
16 margin-right: 10%;
17 }
18 DIV.doctools H1,DIV.doctools H2 {
19 margin-left: -5%;
20 }
21 H1, H2, H3, H4 {
22 margin-top: 1em;
23 font-family: sans-serif;
24 font-size: large;
25 color: #005A9C;
26 background: transparent;
27 text-align: left;
28 }
29 H1.doctools_title {
30 text-align: center;
31 }
32 UL,OL {
33 margin-right: 0em;
34 margin-top: 3pt;
35 margin-bottom: 3pt;
36 }
37 UL LI {
38 list-style: disc;
39 }
40 OL LI {
41 list-style: decimal;
42 }
43 DT {
44 padding-top: 1ex;
45 }
46 UL.doctools_toc,UL.doctools_toc UL, UL.doctools_toc UL UL {
47 font: normal 12pt/14pt sans-serif;
48 list-style: none;
49 }
50 LI.doctools_section, LI.doctools_subsection {
51 list-style: none;
52 margin-left: 0em;
53 text-indent: 0em;
54 padding: 0em;
55 }
56 PRE {
57 display: block;
58 font-family: monospace;
59 white-space: pre;
60 margin: 0%;
61 padding-top: 0.5ex;
62 padding-bottom: 0.5ex;
63 padding-left: 1ex;
64 padding-right: 1ex;
65 width: 100%;
66 }
67 PRE.doctools_example {
68 color: black;
69 background: #f5dcb3;
70 border: 1px solid black;
71 }
72 UL.doctools_requirements LI, UL.doctools_syntax LI {
73 list-style: none;
74 margin-left: 0em;
75 text-indent: 0em;
76 padding: 0em;
77 }
78 DIV.doctools_synopsis {
79 color: black;
80 background: #80ffff;
81 border: 1px solid black;
82 font-family: serif;
83 margin-top: 1em;
84 margin-bottom: 1em;
85 }
86 UL.doctools_syntax {
87 margin-top: 1em;
88 border-top: 1px solid black;
89 }
90 UL.doctools_requirements {
91 margin-bottom: 1em;
92 border-bottom: 1px solid black;
93 }
94 --></style>
95 </head>
96 <!-- Generated from file 'critcl_changes.man' by tcllib/doctools with format 'html'
97 -->
98 <!-- Copyright &amp;copy; Jean-Claude Wippler -- Copyright &amp;copy; Steve Landers -- Copyright &amp;copy; 2011-2024 Andreas Kupries
99 -->
100 <!-- critcl_changes.n
101 -->
102 <body><hr> [
103 <a href="../toc.html">Table Of Contents</a>
104 &#124; <a href="../index.html">Keyword Index</a>
105 ] <hr>
106 <div class="doctools">
107 <h1 class="doctools_title">critcl_changes(n) 3.3.1 doc &quot;C Runtime In Tcl (CriTcl)&quot;</h1>
108 <div id="name" class="doctools_section"><h2><a name="name">Name</a></h2>
109 <p>critcl_changes - CriTcl Releases &amp; Changes</p>
110 </div>
111 <div id="toc" class="doctools_section"><h2><a name="toc">Table Of Contents</a></h2>
112 <ul class="doctools_toc">
113 <li class="doctools_section"><a href="#toc">Table Of Contents</a></li>
114 <li class="doctools_section"><a href="#section1">Description</a></li>
115 <li class="doctools_section"><a href="#section2">Changes for version 3.3.1</a></li>
116 <li class="doctools_section"><a href="#section3">Changes for version 3.3</a></li>
117 <li class="doctools_section"><a href="#section4">Changes for version 3.2</a></li>
118 <li class="doctools_section"><a href="#section5">Changes for version 3.1.18.1</a></li>
119 <li class="doctools_section"><a href="#section6">Changes for version 3.1.18</a></li>
120 <li class="doctools_section"><a href="#section7">Changes for version 3.1.17</a></li>
121 <li class="doctools_section"><a href="#section8">Changes for version 3.1.16</a></li>
122 <li class="doctools_section"><a href="#section9">Changes for version 3.1.15</a></li>
123 <li class="doctools_section"><a href="#section10">Changes for version 3.1.14</a></li>
124 <li class="doctools_section"><a href="#section11">Changes for version 3.1.13</a></li>
125 <li class="doctools_section"><a href="#section12">Changes for version 3.1.12</a></li>
126 <li class="doctools_section"><a href="#section13">Changes for version 3.1.11</a></li>
127 <li class="doctools_section"><a href="#section14">Changes for version 3.1.10</a></li>
128 <li class="doctools_section"><a href="#section15">Changes for version 3.1.9</a></li>
129 <li class="doctools_section"><a href="#section16">Changes for version 3.1.8</a></li>
130 <li class="doctools_section"><a href="#section17">Changes for version 3.1.7</a></li>
131 <li class="doctools_section"><a href="#section18">Changes for version 3.1.6</a></li>
132 <li class="doctools_section"><a href="#section19">Changes for version 3.1.5</a></li>
133 <li class="doctools_section"><a href="#section20">Changes for version 3.1.4</a></li>
134 <li class="doctools_section"><a href="#section21">Changes for version 3.1.3</a></li>
135 <li class="doctools_section"><a href="#section22">Changes for version 3.1.2</a></li>
136 <li class="doctools_section"><a href="#section23">Changes for version 3.1.1</a></li>
137 <li class="doctools_section"><a href="#section24">Changes for version 3.1</a></li>
138 <li class="doctools_section"><a href="#section25">Changes for version 3.0.7</a></li>
139 <li class="doctools_section"><a href="#section26">Changes for version 3.0.6</a></li>
140 <li class="doctools_section"><a href="#section27">Changes for version 3.0.5</a></li>
141 <li class="doctools_section"><a href="#section28">Changes for version 3.0.4</a></li>
142 <li class="doctools_section"><a href="#section29">Changes for version 3.0.3</a></li>
143 <li class="doctools_section"><a href="#section30">Changes for version 3.0.2</a></li>
144 <li class="doctools_section"><a href="#section31">Changes for version 3.0.1</a></li>
145 <li class="doctools_section"><a href="#section32">Changes for version 3</a></li>
146 <li class="doctools_section"><a href="#section33">Changes for version 2.1</a></li>
147 <li class="doctools_section"><a href="#section34">Authors</a></li>
148 <li class="doctools_section"><a href="#section35">Bugs, Ideas, Feedback</a></li>
149 <li class="doctools_section"><a href="#keywords">Keywords</a></li>
150 <li class="doctools_section"><a href="#category">Category</a></li>
151 <li class="doctools_section"><a href="#copyright">Copyright</a></li>
152 </ul>
153 </div>
154 <div id="section1" class="doctools_section"><h2><a name="section1">Description</a></h2>
155 <p>Be welcome to the <i class="term">C Runtime In Tcl</i> (short: <i class="term"><a href="critcl.html">CriTcl</a></i>), a system for embedding and using C
156 code from within <a href="http://core.tcl-lang.org/tcl">Tcl</a> scripts.</p>
157 <p>Adding C code to <a href="http://core.tcl-lang.org/tcl">Tcl</a>/<a href="http://core.tcl-lang.org/tk">Tk</a> has never been easier.</p>
158 <p>Improve performance by rewriting the performance bottlenecks in C.</p>
159 <p>Import the functionality of shared libraries into Tcl scripts.
160 See the changes done in each release of <i class="term"><a href="critcl.html">CriTcl</a></i>, from the latest at the top to the
161 beginning of the project.</p>
162 <p>The latest changes are found at the top.</p>
163 </div>
164 <div id="section2" class="doctools_section"><h2><a name="section2">Changes for version 3.3.1</a></h2>
165 <ol class="doctools_enumerated">
166 <li><p>Oops. Added refresh of tcl 8.6, 8.7 headers which was left behind behind.</p></li>
167 <li><p>Oops. Fixed mismatch of package directories computed by install vs uninstall.</p></li>
168 </ol>
169 </div>
170 <div id="section3" class="doctools_section"><h2><a name="section3">Changes for version 3.3</a></h2>
171 <ol class="doctools_enumerated">
172 <li><p>As announced with 3.2:</p>
173 <ol class="doctools_enumerated">
174 <li><p>Removed support for Tcl 8.4 and 8.5.</p></li>
175 <li><p>Removed support for the argument types
176 <b class="type">int*</b>,
177 <b class="type">float*</b>,
178 <b class="type">double*</b>,
179 <b class="type">bytearray</b>,
180 <b class="type">rawchar</b>, and
181 <b class="type">rawchar*</b>.</p></li>
182 </ol>
183 </li>
184 <li><p>Modified packages to accept operation under Tcl 9.
185 Bumped package versions appropriately.
186 Bumped copyrights.</p>
187 <p>The <i class="term"><a href="critcl_tcl9.html">How To Adapt Critcl Packages for Tcl 9</a></i>
188 contains the details relevant to writers of <i class="term"><a href="critcl.html">CriTcl</a></i>-based packages.</p></li>
189 <li><p>Set different minimum Tcl requirements for the 8.x and 9.x series.</p>
190 <p>If no minimum is declared the minimum depends on the Tcl version
191 used to run the critcl package or application.</p>
192 <p>When running under Tcl 9 the default minimum is version <b class="const">9</b>.
193 For anything else the new default minimum is <b class="const">8.6</b>.</p>
194 <p><em>Reminder</em>: Support for Tcl 8.4 and 8.5 was removed.</p></li>
195 <li><p>Made &quot;<b class="file">~</b>&quot;-handling portable across the 8.x and 9 boundary
196 (via <b class="const">HOME</b> environment variable).</p></li>
197 <li><p>Bumped embedded <b class="package">tclconfig</b> to version 2.67. Patch supplied by Paul Obermeier.</p></li>
198 <li><p><em>Bug Fix</em> <a href="https://github.com/andreas-kupries/critcl/issues/127">#127</a></p></li>
199 <li><p><em>Bug Fix</em> <a href="https://github.com/andreas-kupries/critcl/issues/128">#128</a></p></li>
200 <li><p><em>Bug Fix</em> <a href="https://github.com/andreas-kupries/critcl/issues/129">#129</a>
201 Fixed various typos in the documentation.</p></li>
202 <li><p>Reworked internals of <b class="package"><a href="critcl_cutil.html">critcl::cutil</a></b>'s tracer to support operation in a
203 multi-threaded environment. This new mode is also default. The old single-threaded
204 mode can be (re)activated by defining <b class="const">CRITCL_TRACE_NOTHREADS</b>.</p>
205 <p>Package bumped to version 0.4.</p></li>
206 <li><p>Reworked the installer to add <b class="const">tclX</b> markers to the installation directories of the
207 C-based support packages (<b class="package"><a href="critcl_callback.html">critcl::callback</a></b>, <b class="package">critcl::md5c</b>), where
208 <b class="variable">X</b> is the major version number of the <b class="syscmd">tclsh</b> which ran critcl.</p></li>
209 <li><p>In other words, one of <b class="const">tcl8</b> or <b class="const">tcl9</b>.</p></li>
210 <li><p>Broke lingering dependencies on the Tcllib packages <b class="package">cmdline</b> and <b class="package">fileutil</b>.</p>
211 <p>There are no circularities between Critcl and Tcllib any longer, simplifying installation.</p></li>
212 </ol>
213 </div>
214 <div id="section4" class="doctools_section"><h2><a name="section4">Changes for version 3.2</a></h2>
215 <ol class="doctools_enumerated">
216 <li><p><em>BREAKING</em> <i class="term"><a href="critcl.html">CriTcl</a></i> now requires Tcl 8.6 to be run.</p>
217 <p>It also generates Tcl 8.6 extensions by default.</p>
218 <p>It is still possible to generates extensions for Tcl 8.4 and 8.5,
219 properly setting it via <b class="cmd">critcl::tcl</b>.</p>
220 <p><em>ATTENTION</em> It is planned to completely remove 8.4 and 8.5
221 support with <i class="term"><a href="critcl.html">CriTcl</a></i> 3.3.
222 No date has been set for that release yet.</p>
223 <p>All utility packages have their versions and requirements bumped accordingly as
224 well.</p></li>
225 <li><p><em>BREAKING</em> <em>Bug Fix</em>
226 Issue <a href="https://github.com/andreas-kupries/critcl/issues/115">#115</a>.</p>
227 <p>Distributions using <b class="syscmd">build.tcl</b> for installation of critcl in their
228 packaging scripts have to be updated to the changed command signature of
229 <b class="syscmd">build.tcl</b> install, etc. See the details below.</p>
230 <p>Redone the argument handling for <b class="method">install</b>, <b class="method">uninstall</b>, and
231 <b class="method">targets</b>. The destination argument is gone. All commands now take options
232 similar to what is known from GNU <b class="syscmd">configure</b>, i.e.</p>
233 <dl class="doctools_options">
234 <dt><b class="option">--prefix</b> path</dt>
235 <dd></dd>
236 <dt><b class="option">--exec-prefix</b> path</dt>
237 <dd></dd>
238 <dt><b class="option">--bin-dir</b> path</dt>
239 <dd></dd>
240 <dt><b class="option">--lib-dir</b> path</dt>
241 <dd></dd>
242 <dt><b class="option">--include-dir</b> path</dt>
243 <dd></dd>
244 </dl>
245 <p>They now also respect the environment variable <b class="variable">DESTDIR</b>, and the associated
246 option <b class="option">--dest-dir</b>.</p>
247 <p>The <b class="option">--prefix</b> defaults to the topdir from the bin directory holding the
248 <b class="syscmd">tclsh</b> running <b class="syscmd">build.tcl</b>. As Tcl command:</p>
249 <pre class="doctools_example">
250 file dirname [file dirname [info nameofexecutable]]
251 </pre>
252 <p>Added a command <b class="method">dirs</b> doing the same argument handling, for debugging.</p></li>
253 <li><p>Removed the irrelevant packages <b class="package">autoscroll</b>, <b class="package">cmdline</b>,
254 <b class="package">dict84</b>, <b class="package">lassign84</b>, <b class="package">lmap84</b>, <b class="package">snit</b>,
255 <b class="package">snitbutton</b>, and <b class="package">wikit</b>.</p></li>
256 <li><p><em>Documentation Redo</em> Issue
257 <a href="https://github.com/andreas-kupries/critcl/issues/116">#116</a>.
258 Reworked the documentation to use the system of 4 quadrants.
259 Reworked the introduction (How To Use Critcl) to be strongly
260 based on a series of examples.</p></li>
261 <li><p><em>Bug Fix</em> Issue
262 <a href="https://github.com/andreas-kupries/critcl/issues/125">#125</a>.
263 Added missing method <b class="method">create</b> in object creation example
264 of installer documentation.</p></li>
265 <li><p><em>Feature</em>. Extended <b class="cmd">cproc</b> argument type processing. Now able to
266 auto-create restricted scalar types. I.e. types derived from <i class="term">int</i>, etc. and
267 limited in the range of allowed values.</p>
268 <p>Further able to auto-create restricted list types, i.e. types derived from
269 <i class="term">list</i> and either limited in length, or in the type of the elements, or both.</p></li>
270 <li><p><em>Bug Fix / Enhancement</em> Issue
271 <a href="https://github.com/andreas-kupries/critcl/issues/118">#118</a>. Modified
272 <b class="cmd">critcl::cproc</b> to accept C syntax for arguments, i.e. Trailing comma on
273 argument names, leading comma on type names, and lone comma characters.</p></li>
274 <li><p><em>Performance Fix</em> for <i class="term"><a href="../index.html#compile_run">compile &amp; run</a></i> mode.
275 Issue <a href="https://github.com/andreas-kupries/critcl/issues/112">#112</a>.</p>
276 <p>Moved the command activating more precise code location tracking out of package
277 <b class="package"><a href="critcl.html">critcl</a></b> into package <b class="package">critcl::app</b>.</p>
278 <p>Because generating packages ahead of time can bear the performance penalty invoked
279 by this <em>global</em> setting.</p>
280 <p>Arbitrary libraries and applications using critcl dynamically
281 (<i class="term"><a href="../index.html#compile_run">compile &amp; run</a></i>) on the other hand likely cannot, and should not.</p></li>
282 <li><p><em>Fix</em>
283 Issue <a href="https://github.com/andreas-kupries/critcl/issues/109">#109</a>.
284 Ignore <b class="syscmd">clang</b> suffices when computing the target identifier from a
285 configuration identifier.</p></li>
286 <li><p><em>Feature</em>. Bumped package <b class="package"><a href="critcl_cutil.html">critcl::cutil</a></b> to version 0.2.1.
287 Simplified the implementation of macro <b class="cmd">ASSERT</b> by taking the underlying
288 <b class="function">Tcl_Panic</b>'s printf ability into account and added a new macro <b class="cmd">ASSERT_VA</b>
289 exporting the same ability to the user.</p></li>
290 </ol>
291 </div>
292 <div id="section5" class="doctools_section"><h2><a name="section5">Changes for version 3.1.18.1</a></h2>
293 <ol class="doctools_enumerated">
294 <li><p><em>Attention</em>: While the overall version (of the bundle)
295 moves to 3.1.18.1 the versions of packages <b class="package"><a href="critcl.html">critcl</a></b> and
296 <b class="package">critcl::app</b> are <em>unchanged</em>.</p></li>
297 <li><p><em>Bugfix</em> Generally removed a number of 8.5-isms which
298 slipped into 3.1.18, breaking ability to use it with Tcl 8.4.</p></li>
299 <li><p><em>Bugfix</em> Corrected broken <em>build.tcl uninstall</em>.</p></li>
300 <li><p><em>Bugfix</em> Package <b class="package"><a href="critcl_class.html">critcl::class</a></b> bumped to
301 version 1.1.1. Fixed partial template substitution breaking
302 compilation of the generated code.</p></li>
303 </ol>
304 </div>
305 <div id="section6" class="doctools_section"><h2><a name="section6">Changes for version 3.1.18</a></h2>
306 <ol class="doctools_enumerated">
307 <li><p>Feature (Developer support). Merged pull request #96 from
308 sebres/main-direct-invoke. Enables direct invokation of the
309 &quot;<b class="file">main.tcl</b>&quot; file for starkits from within a dev checkout,
310 i.e. outside of a starkit, or starpack.</p></li>
311 <li><p>Feature. Added channel types to the set of builtin argument and
312 result types. The argument types are for simple channel access,
313 access requiring unshared channels, and taking the channel
314 fully into the C level, away from Tcl. The result type comes in
315 variants for newly created channels, known channels, and to
316 return taken channels back to Tcl. The first will register the
317 returned value in the interpreter, the second assumes that it
318 already is.</p></li>
319 <li><p>Bugfix. Issue #96. Reworked the documentation around the
320 argument type <b class="type">Tcl_Interp*</b> to make its special status
321 more visible, explain uses, and call it out from result types
322 where its use will be necessary or at least useful.</p></li>
323 <li><p>Feature. Package <b class="package"><a href="critcl_class.html">critcl::class</a></b> bumped to version 1.1.
324 Extended with the ability to create a C API for classes, and
325 the ability to disable the generation of the Tcl API.</p></li>
326 <li><p>Bugfix. Merged pull request #99 from pooryorick/master. Fixes
327 to the target directory calculations done by the install code.</p></li>
328 <li><p>Merged pull request #94 from andreas-kupries/documentation.
329 A larger documentation cleanup. The main work was done by
330 pooryorick, followed by tweaks done by myself.</p></li>
331 <li><p>Extended the test suite with lots of cases based on the
332 examples for the various generator packages. IOW the new test
333 cases replicate/encapsulate the examples and demonstrate that
334 the packages used by the examples generate working code.</p></li>
335 <li><p>Bugfix. Issue #95. Changed the field <b class="const">critcl_bytes.s</b> to
336 <b class="type">unsigned char*</b> to match Tcl's type. Further constified
337 the field to make clear that read-only usage is the common case
338 for it.</p></li>
339 <li><p>Bugfix/Feature. Package <b class="package"><a href="critcl_cutil.html">critcl::cutil</a></b> bumped to
340 version 0.2. Fixed missing inclusion of header &quot;<b class="file">string.h</b>&quot;
341 in &quot;<b class="file">critcl_alloc.h</b>&quot;, needed for <b class="function">memcpy</b> in macro
342 <b class="function">STREP</b>. Added macros <b class="function">ALLOC_PLUS</b> and <b class="function">STRDUP</b>.
343 Moved documentation of <b class="function">STREP...</b> macros into proper place
344 (alloc section, not assert).</p></li>
345 <li><p>Merged pull request #83 from apnadkarni/vc-fixes.
346 Removed deprecated -Gs for MSVC builds, and other Windows fixups.</p></li>
347 <li><p>Feature. Package <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b> bumped to version 1.1.
348 Refactored internals to generate an include header for use by .c files.
349 This now matches what other generator packages do.
350 The template file is inlined and removed.</p></li>
351 <li><p>Merged pull request #82 from gahr/home-symlink
352 Modified tests to handle possibility of $HOME a symlink.</p></li>
353 <li><p>Merged pull request #81 from gahr/test-not-installed
354 Modified test support to find uninstalled critcl packages when
355 running tests. Handles all but critcl::md5.</p></li>
356 <li><p>Merged pull request #85 from snoe925/issue-84
357 to fix Issue #84 breaking installation on OSX.</p></li>
358 <li><p>Merged pull request #87 from apnadkarni/tea-fixes to fix Issue
359 #86, broken -tea option, generating an incomplete package.</p></li>
360 <li><p>Feature. New package <b class="package"><a href="critcl_callback.html">critcl::callback</a></b> providing
361 C-level functions and data structures to manage callbacks from
362 C to Tcl.</p></li>
363 <li><p>Feature. Package <b class="package"><a href="critcl_literals.html">critcl::literals</a></b> bumped to version
364 1.3. Added mode <b class="const">+list</b> enabling the conversion of
365 multiple literals into a list of their strings.</p></li>
366 <li><p>Feature. Package <b class="package"><a href="critcl_enum.html">critcl::enum</a></b> bumped to version 1.1.
367 Added basic mode handling, supporting <b class="const">tcl</b> (default) and
368 <b class="const">+list</b> (extension enabling the conversion of multiple
369 enum values into a list of their strings).</p></li>
370 <li><p>Feature. Package <b class="package"><a href="critcl_emap.html">critcl::emap</a></b> bumped to version 1.2.
371 Extended existing mode handling with <b class="const">+list</b> extension
372 enabling the conversion of multiple emap values into a list of
373 their strings.</p></li>
374 <li><p>Feature. Extended the set of available types by applying a few
375 range restrictions to the scalar types (<i class="term">int</i>,
376 <i class="term">long</i>, <i class="term">wideint</i>, <i class="term">double</i>, <i class="term">float</i>).</p>
377 <p>Example: <i class="term">int &gt; 0</i> is now a viable type name.</p>
378 <p>This is actually more limited than the description might
379 let you believe.</p>
380 <p>See the package reference for the details.</p></li>
381 </ol>
382 </div>
383 <div id="section7" class="doctools_section"><h2><a name="section7">Changes for version 3.1.17</a></h2>
384 <ol class="doctools_enumerated">
385 <li><p>Extension: Allow duplicate arg- and result-type definitions if
386 they are fully identical.</p></li>
387 <li><p>Bugfix. The application mishandled the possibility of
388 identical-named <b class="cmd">critcl::tsource</b>s. Possible because
389 <b class="cmd">critcl::tsource</b>s can be in subdirectories, a structure
390 which is <em>not</em> retained in the assembled package, causing
391 such files to overwrite each other and at least one lost. Fixed
392 by adding a serial number to the file names in the assembled
393 package.</p></li>
394 <li><p>Bugfix in the static scanner which made it loose requirement
395 information. Further added code to generally cleanup results at
396 the end (removal of duplicates, mainly).</p></li>
397 <li><p>Bugfix: Fixed issue #76.
398 Support installation directories which are not in the <b class="variable">auto_path</b>.
399 Without the patch the installed <b class="cmd"><a href="critcl.html">critcl</a></b> will not find its
400 own packages and fail. Thank you to
401 <a href="https://github.com/lupylucke">Simon Bachmann</a> for the
402 report and patch, and then his patience with me to getting to
403 actually apply it.</p></li>
404 <li><p>Bugfix: Fixed issue #75.
405 Extended <b class="cmd">critcl::include</b> to now take multiple paths.</p></li>
406 <li><p>Added new compatibility package <b class="package">lmap84</b>.</p></li>
407 <li><p>Fixed typos in various documentation files.</p></li>
408 <li><p>Fixed bug introduced by commit 86f415dd30 (3.1.16 release). The
409 separation of <b class="cmd">critcl::ccode</b> into user and work layers
410 means that location retrieval has to go one more level up to
411 find the user location.</p></li>
412 <li><p>New supporting package <b class="package"><a href="critcl_cutil.html">critcl::cutil</a></b>. Provides common
413 C level facilities useful to packages (assertions, tracing,
414 memory allocation shorthands).</p></li>
415 <li><p>Modified package <b class="package"><a href="critcl.html">critcl</a></b> to make use of the new
416 tracing facilities to provide tracing of arguments and results
417 for <b class="cmd">critcl::ccommand</b> and <b class="cmd">critcl::cproc</b> invokations.</p></li>
418 <li><p>Modified packages <b class="package"><a href="critcl.html">critcl</a></b> and <b class="package"><a href="critcl_class.html">critcl::class</a></b>
419 to provide better function names for (class) method tracing.
420 Bumped package <b class="package"><a href="critcl_class.html">critcl::class</a></b> to version 1.0.7.</p></li>
421 <li><p>Extended the support package <b class="package"><a href="critcl_literals.html">critcl::literals</a></b> with
422 limited configurability. It is now able to generate code for
423 C-level access to the pool without Tcl types (Mode <b class="const">c</b>).
424 The previously existing functionality is accesssible under mode
425 <b class="const">tcl</b>, which also is the default. Both modes can be used
426 together.</p></li>
427 <li><p>Extended the support package <b class="package"><a href="critcl_emap.html">critcl::emap</a></b> with
428 limited configurability. It is now able to generate code for
429 C-level access to the mapping without Tcl types
430 (Mode <b class="const">c</b>). The previously existing functionality is
431 accessible under mode <b class="const">tcl</b>, which also is the
432 default. Both modes can be used together.</p></li>
433 </ol>
434 </div>
435 <div id="section8" class="doctools_section"><h2><a name="section8">Changes for version 3.1.16</a></h2>
436 <ol class="doctools_enumerated">
437 <li><p>New feature. Extended <b class="cmd">critcl::cproc</b>'s argument handling
438 to allow arbitrary mixing of required and optional arguments.</p></li>
439 <li><p>New feature.
440 <em>Potential Incompatibility</em>.</p>
441 <p>Extended <b class="cmd">critcl::cproc</b>'s argument handling to treat an
442 argument <b class="const">args</b> as variadic if it is the last argument of
443 the procedure.</p></li>
444 <li><p>New feature. Added two introspection commands,
445 <b class="cmd">critcl::has-argtype</b> and <b class="cmd">critcl::has-resulttype</b>.
446 These enable a user to test if a specific (named) type
447 conversion is implemented or not.</p></li>
448 <li><p>Added new result type <b class="const">Tcl_Obj*0</b>, with alias
449 <b class="const">object0</b>. The difference to <b class="const">Tcl_Obj*</b> is in
450 the reference counting.</p></li>
451 <li><p>Extended the command <b class="cmd">critcl::argtypesupport</b> with new
452 optional argument through which to explicitly specify the
453 identifier for guarding against multiple definitions.</p></li>
454 <li><p>Bugfix: Fixed problem with the implementation of issue #54 (See
455 3.1.14). Always create the secondary log file. Otherwise
456 end-of-log handling may break, unconditionally assuming its
457 existence.</p></li>
458 <li><p>Bugfix: Fixed problem with the internal change to the hook
459 <b class="const">HandleDeclAfterBuild</b>. Corrected the forgotten
460 <b class="cmd">critcl::cconst</b>.</p></li>
461 <li><p>Debugging aid: Added comment holding the name of the result
462 type when emitting result conversions.</p></li>
463 <li><p>Bugfix: Fixed issue #60. Unbundled the package directories
464 containing multiple packages. All directories under &quot;<b class="file">lib/</b>&quot;
465 now contain exactly one package.</p></li>
466 <li><p>Bugfix: Fixed issue #62, a few <b class="cmd">dict exists</b> commands
467 operating on a fixed string instead of a variable.</p></li>
468 <li><p>Bugfix: Fixed issue #56. Release builders are reminded to run
469 the tests.</p></li>
470 <li><p>Bugfix: Fixed issue #55. For FreeBSD critcl's platform package
471 now identifies the Kernel ABI version. Initialization of the
472 cache directory now also uses <b class="cmd">platform::identify</b> for the
473 default path, instead of <b class="cmd">platform::generic</b>.</p></li>
474 <li><p>Bugfix: Fixed issue #58. Simplified the setup and use of
475 md5. CriTcl now makes use of its own package for md5, using
476 itself to built it. There is no chicken/egg problem with this
477 as the <b class="option">-pkg</b> mode used for this does not use md5. That
478 is limited to mode <i class="term"><a href="../index.html#compile_run">compile &amp; run</a></i>.</p></li>
479 </ol>
480 </div>
481 <div id="section9" class="doctools_section"><h2><a name="section9">Changes for version 3.1.15</a></h2>
482 <ol class="doctools_enumerated">
483 <li><p>Fixed version number bogosity with <b class="const">3.1.14</b>.</p></li>
484 </ol>
485 </div>
486 <div id="section10" class="doctools_section"><h2><a name="section10">Changes for version 3.1.14</a></h2>
487 <ol class="doctools_enumerated">
488 <li><p>Fixed issue #36. Added message to target <b class="const">all</b> of the
489 Makefile generated for TEA mode. Additionally tweaked other
490 parts of the output to be less noisy.</p></li>
491 <li><p>Accepted request implied in issue #54. Unconditionally save
492 the compiler/linker build log into key <b class="const">log</b> of the
493 dictionary returned by <b class="cmd">cresults</b>, and save a copy of only
494 the execution output in the new key <b class="const">exl</b> (&quot;execution
495 log&quot;).</p></li>
496 <li><p>Fixed issue #53. Clarified the documentation of commands
497 <b class="cmd">critcl::load</b> and <b class="cmd">critcl::failed</b> with regard
498 to their results and the throwing of errors (does not happen).</p></li>
499 <li><p>Fixed issue #48. Modified mode &quot;compile &amp; run&quot; to allow new
500 declarations in a file, after it was build, instead of
501 erroring out. The new decls are build when needed. Mode
502 &quot;precompile&quot; is unchanged and will continue to trap the
503 situation.</p></li>
504 <li><p>Fixed issue #52. Updated the local Tcl/Tk headers to
505 8.4.20, 8.5.13, and 8.6.4.</p></li>
506 <li><p>Fixed issue #45. New feature command <b class="cmd">critcl::cconst</b>.</p></li>
507 <li><p><b class="package"><a href="critcl_util.html">critcl::util</a></b>: New command <b class="cmd">locate</b> to find a
508 file across a set of paths, and report an error when not
509 found. This is for use in autoconf-like header-searches and
510 similar configuration tests.</p></li>
511 <li><p>Modified 'AbortWhenCalledAfterBuild' to dump the entire stack
512 (info frame!). This should make it easier to determine the
513 location of the troubling declaration.</p></li>
514 </ol>
515 </div>
516 <div id="section11" class="doctools_section"><h2><a name="section11">Changes for version 3.1.13</a></h2>
517 <ol class="doctools_enumerated">
518 <li><p>Merged PR #43. Fixed bug loading adjunct Tcl sources.</p></li>
519 <li><p>Fixes in documentation and generated code of package
520 &quot;critcl::enum&quot;. Bumped to version 1.0.1.</p></li>
521 <li><p>Fixes in documentation of package &quot;critcl::bitmap&quot;.</p></li>
522 <li><p>New package &quot;critcl::emap&quot;. In essence a variant or cross of
523 &quot;critcl::bitmap&quot; with behaviour like &quot;critcl::enum&quot;.</p></li>
524 <li><p>Merged PR #49. Fixed documentation typo.</p></li>
525 <li><p>Merged PR #46. Fixed documentation typo.</p></li>
526 <li><p>Merged PR #47. Fixes to test results to match the accumulated
527 code changes. Also made portable across Tcl versions (varying
528 error syntax).</p></li>
529 <li><p>New predefined argument- and result-type &quot;wideint&quot; mapping to
530 Tcl_WideInt.</p></li>
531 <li><p>New predefined argument-type &quot;bytes&quot; mapping to tuple of
532 byte-array data and length. Note: The existing &quot;bytearray&quot;
533 type (and its aliases) was left untouched, to keep backward
534 compatibility.</p></li>
535 <li><p>Modified the internal interface between the Tcl shim and C
536 function underneath &quot;critcl::cproc&quot; with respect to the
537 handling of optional arguments.
538 An optional argument &quot;X&quot; now induces the use of two C
539 arguments, &quot;X&quot; and &quot;has_X&quot;. The new argument &quot;has_X&quot; is of
540 boolean (int) type. It is set to true when X is set, and set
541 to false when X has the default value. C code which cares
542 about knowing if the argument is default or not is now able to
543 check that quickly, without having to code the default value
544 inside.
545 NOTE: This change is visible in the output of the advanced
546 commands &quot;argcnames&quot;, &quot;argcsignature&quot;, &quot;argvardecls&quot;,
547 and &quot;argconversion&quot;.</p></li>
548 <li><p>Fixed issue #50 and documented the availability of variable
549 &quot;interp&quot; (type Tcl_Interp*) within &quot;critcl::cinit&quot; C code
550 fragments.
551 Note that while the old, undocumented name of the variable,
552 &quot;ip&quot;, is still usable, it is deprecated. It will be fully
553 removed in two releases, i.e. for release 3.1.15.
554 The variable name was changed to be consistent with other code
555 environments.</p></li>
556 <li><p>Fixed issue #51. Disabled the generation of #line directives
557 for &quot;critcl::config lines 0&quot; coming from template files, or
558 code generated with them before the final value of this
559 setting was known.</p></li>
560 <li><p>Fixed issue with handling of namespaced package names in
561 &quot;critcl::iassoc&quot;. Equivalent to a bug in &quot;critcl::class&quot; fixed
562 for critcl 3.1.1, critcl::class 1.0.1.
563 Note: &quot;literals&quot;, &quot;enum&quot;, &quot;emap&quot;, and &quot;bitmap&quot; do not require
564 a fix as they are all built on top of &quot;iassoc&quot;.</p></li>
565 </ol>
566 </div>
567 <div id="section12" class="doctools_section"><h2><a name="section12">Changes for version 3.1.12</a></h2>
568 <ol class="doctools_enumerated">
569 <li><p>Fixed issue 42. Clear ::errorInfo immediately after startup to
570 prevent leakage of irrelevant (caught) errors into our script
571 and confusing the usage code.</p></li>
572 <li><p>Fixed issue 40. Keep the order of libraries, and allow
573 duplicates. Both are things which are occasionally required for
574 proper linking.</p></li>
575 <li><p>Extended the utility package <b class="package"><a href="critcl_literals.html">critcl::literals</a></b> to
576 declare a cproc result-type for a pool.</p>
577 <p>Further fixed the generated header to handle multiple inclusion.</p>
578 <p>Bumped version to 1.1.</p></li>
579 <li><p>Fixed issue with utility package <b class="package"><a href="critcl_bitmap.html">critcl::bitmap</a></b>.</p>
580 <p>Fixed the generated header to handle multiple inclusion.</p>
581 <p>Bumped version to 1.0.1.</p></li>
582 <li><p>Created new utility package <b class="package"><a href="critcl_enum.html">critcl::enum</a></b> for the
583 quick and easy setup and use of mappings between C values
584 and Tcl strings.
585 Built on top of <b class="package"><a href="critcl_literals.html">critcl::literals</a></b>.</p></li>
586 <li><p>Added examples demonstrating the use of the utility packages
587 <b class="package"><a href="critcl_literals.html">critcl::literals</a></b>,
588 <b class="package"><a href="critcl_bitmap.html">critcl::bitmap</a></b>, and
589 <b class="package"><a href="critcl_enum.html">critcl::enum</a></b></p></li>
590 </ol>
591 </div>
592 <div id="section13" class="doctools_section"><h2><a name="section13">Changes for version 3.1.11</a></h2>
593 <ol class="doctools_enumerated">
594 <li><p>Fixed issue #37, via pull request #38, with thanks to
595 Jos DeCoster. Information was stored into the v::delproc
596 and v::clientdata arrays using a different key than when
597 retrieving the same information, thus failing the latter.</p></li>
598 <li><p>New convenience command <b class="cmd">critcl::include</b> for easy
599 inclusion of headers and other C files.</p></li>
600 <li><p>New command <b class="cmd">critcl::make</b> to generate a local header of
601 other C files for use by other parts of a package through
602 inclusion.</p></li>
603 <li><p>New utility package <b class="package"><a href="critcl_literals.html">critcl::literals</a></b> for quick and
604 easy setup of and access to pools of fixed Tcl_Obj* strings.
605 Built on top of <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b>.</p></li>
606 <li><p>New utility package <b class="package"><a href="critcl_bitmap.html">critcl::bitmap</a></b> for quick and easy
607 setup and use of mappings between C bitsets and Tcl lists whose
608 string elements represent that set.
609 Built on top of <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b>.</p></li>
610 </ol>
611 </div>
612 <div id="section14" class="doctools_section"><h2><a name="section14">Changes for version 3.1.10</a></h2>
613 <ol class="doctools_enumerated">
614 <li><p>Fixed code version numbering forgotten with 3.1.9.</p></li>
615 <li><p>Fixed issue #35. In package mode (-pkg) the object cache
616 directory is unique to the process, thus we do not need
617 content-hashing to generate unique file names. A simple
618 counter is sufficient and much faster.</p>
619 <p>Note that mode &quot;compile &amp; run&quot; is not as blessed and still
620 uses content-hasing with md5 to ensure unique file names
621 in its per-user object cache.</p></li>
622 <li><p>Fixed issue where the <b class="cmd">ccommand</b> forgot to use its body as
623 input for the UUID generation. Thus ignoring changes to it in
624 mode compile &amp; run, and not rebuilding a library for changed
625 sources. Bug and fix reported by Peter Spjuth.</p></li>
626 </ol>
627 </div>
628 <div id="section15" class="doctools_section"><h2><a name="section15">Changes for version 3.1.9</a></h2>
629 <ol class="doctools_enumerated">
630 <li><p>Fixed issue #27. Added missing platform definitions for
631 various alternate linux and OS X targets.</p></li>
632 <li><p>Fixed issue #28. Added missing -mXX flags for linking at the
633 linux-{32,64}-* targets.</p></li>
634 <li><p>Fixed issue #29. Replaced the use of raw &quot;cheaders&quot;
635 information in the processing of &quot;cdefines&quot; with the proper
636 include directives derived from it.</p></li>
637 <li><p>Fixed the issue behind rejected pull request #30 by Andrew
638 Shadura. Dynamically extract the stubs variable declarations
639 from the Tcl header files and generate matching variable
640 definitions for use in the package code. The generated code
641 will now be always consistent with the headers, even when
642 critcl's own copy of them is replaced by system headers.</p></li>
643 <li><p>Fixed issue #31. Accepted patch by Andrew Shadura, with
644 changes (comments), for easier integration of critcl with
645 OS package systems, replacing critcl's copies of Tcl headers
646 with their own.</p></li>
647 <li><p>Fixed issue #32. Merged pull request by Andrew Shadura.
648 Various typos in documentation and comments.</p></li>
649 <li><p>Fixed issue #34. Handle files starting with a dot better.</p></li>
650 </ol>
651 </div>
652 <div id="section16" class="doctools_section"><h2><a name="section16">Changes for version 3.1.8</a></h2>
653 <ol class="doctools_enumerated">
654 <li><p>Fixed issue with package indices generated for Tcl 8.4.
655 Join the list of commands with semi-colon, not newline.</p></li>
656 <li><p>Fixed issue #26 which brought up use-cases I had forgotten to
657 consider while fixing bug #21 (see critcl 3.1.6).</p></li>
658 </ol>
659 </div>
660 <div id="section17" class="doctools_section"><h2><a name="section17">Changes for version 3.1.7</a></h2>
661 <ol class="doctools_enumerated">
662 <li><p>Fixed issue #24. Extract and unconditionally display compiler
663 warnings found in the build log. Prevents users from missing
664 warnings which, while not causing the build to fail, may
665 still indicate problems.</p></li>
666 <li><p>New feature. Output hook. All non-messaging user output is now
667 routed through the command <b class="cmd">critcl::print</b>, and users are
668 allowed to override it when using the critcl application-as-package.</p></li>
669 <li><p>New feature, by Ashok P. Nadkarni. Platform configurations can
670 inherit values from configurations defined before them.</p></li>
671 </ol>
672 </div>
673 <div id="section18" class="doctools_section"><h2><a name="section18">Changes for version 3.1.6</a></h2>
674 <ol class="doctools_enumerated">
675 <li><p>Fixed issue #21. While the multi-definition of the stub-table
676 pointer variables was ok with for all the C linkers seen so far
677 C++ linkers did not like this at all. Reworked the code to
678 ensure that this set of variables is generated only once, in
679 the wrapper around all the pieces to assemble.</p></li>
680 <li><p>Fixed issue #22, the handling of the command identifier
681 arguments of <b class="cmd">critcl::ccommand</b>, <b class="cmd">critcl::cproc</b>, and
682 <b class="cmd">critcl::cdata</b>. We now properly allow any Tcl identifier
683 and generate proper internal C identifiers from them.</p>
684 <p>As part of this the signature of command <b class="cmd">critcl::name2c</b>
685 changed. The command now delivers a list of four values instead
686 of three. The new value was added at the end.</p>
687 <p>Further adapted the implementation of package
688 <b class="package"><a href="critcl_class.html">critcl::class</a></b>, a user of <b class="cmd">critcl::name2c</b>.
689 This package is now at version 1.0.6 and requires critcl 3.1.6</p>
690 <p>Lastly fixed the mis-handling of option <b class="option">-cname</b> in
691 <b class="cmd">critcl::ccommand</b>, and <b class="cmd">critcl::cproc</b>.</p></li>
692 <li><p>Fixed issue #23.</p></li>
693 </ol>
694 </div>
695 <div id="section19" class="doctools_section"><h2><a name="section19">Changes for version 3.1.5</a></h2>
696 <ol class="doctools_enumerated">
697 <li><p>Fixed issue #19. Made the regular expression extracting the
698 MSVC version number more general to make it work on german
699 language systems. This may have to be revisited in the future,
700 for other Windows locales.</p></li>
701 <li><p>Fixed issue #20. Made option -tea work on windows, at least in
702 a unix emulation environment like msys/mingw.</p></li>
703 </ol>
704 </div>
705 <div id="section20" class="doctools_section"><h2><a name="section20">Changes for version 3.1.4</a></h2>
706 <ol class="doctools_enumerated">
707 <li><p>Bugfix in package <b class="package"><a href="critcl_class.html">critcl::class</a></b>. Generate a dummy
708 field in the class structure if the class has no class
709 variables. Without this change the structure would be empty,
710 and a number of compilers are not able to handle such a type.</p></li>
711 <li><p>Fixed a typo which broke the win64 configuration.</p></li>
712 <li><p>Fixed issue #16, a typo in the documentation of command
713 <b class="cmd"><a href="critcl_class.html">critcl::class</a></b>.</p></li>
714 </ol>
715 </div>
716 <div id="section21" class="doctools_section"><h2><a name="section21">Changes for version 3.1.3</a></h2>
717 <ol class="doctools_enumerated">
718 <li><p>Enhancement. In detail:</p></li>
719 <li><p>Added new argument type &quot;pstring&quot;, for &quot;Pascal String&quot;, a
720 counted string, i.e. a combination of string pointer and string
721 length.</p></li>
722 <li><p>Added new methods <b class="cmd">critcl::argtypesupport</b> and
723 <b class="cmd">::critcl::argsupport</b> to define and use additional
724 supporting code for an argument type, here used by &quot;pstring&quot;
725 above to define the necessary structure.</p></li>
726 <li><p>Semi-bugfixes in the packages <b class="package"><a href="critcl_class.html">critcl::class</a></b> and
727 <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b>. Pragmas for the AS meta data scanner
728 to ensure that the template files are made part of the package.
729 Versions bumped to 1.0.4 and 1.0.1 respectively.</p></li>
730 </ol>
731 </div>
732 <div id="section22" class="doctools_section"><h2><a name="section22">Changes for version 3.1.2</a></h2>
733 <ol class="doctools_enumerated">
734 <li><p>Enhancement. In detail:</p></li>
735 <li><p>Extended <b class="cmd">critcl::cproc</b> to be able to handle optional
736 arguments, in a limited way. This is automatically available to
737 <b class="package"><a href="critcl_class.html">critcl::class</a></b> cproc-based methods as well.</p></li>
738 <li><p>Bugfix in <b class="cmd">lassign</b> emulation for Tcl 8.4. Properly set
739 unused variables to the empty string. Bumped version of
740 emulation package <b class="package">lassign84</b> to 1.0.1.</p></li>
741 </ol>
742 </div>
743 <div id="section23" class="doctools_section"><h2><a name="section23">Changes for version 3.1.1</a></h2>
744 <ol class="doctools_enumerated">
745 <li><p>Bugfixes all around. In detail:</p></li>
746 <li><p>Fixed the generation of wrong#args errors for
747 <b class="cmd">critcl::cproc</b> and derived code (<b class="package"><a href="critcl_class.html">critcl::class</a></b>
748 cproc-based methods). Use NULL if there are no arguments, and
749 take the offset into account.</p></li>
750 <li><p>Fixed the handling of package names by
751 <b class="package"><a href="critcl_class.html">critcl::class</a></b>. Forgot that they may contain namespace
752 separators. Bumped to version 1.0.1.</p></li>
753 <li><p>Extended a <b class="package"><a href="critcl_class.html">critcl::class</a></b> generated error message in
754 instance creation for clarity. Bumped to version 1.0.2.</p></li>
755 </ol>
756 </div>
757 <div id="section24" class="doctools_section"><h2><a name="section24">Changes for version 3.1</a></h2>
758 <ol class="doctools_enumerated">
759 <li><p>Added a new higher-level package <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b>.</p>
760 <p>This package simplifies the creation of code associating data
761 with an interpreter via Tcl's <b class="function">Tcl_(Get|Set)AssocData()</b> APIs. The
762 user can concentrate on his data while all the necessary boilerplate
763 C code to support this is generated by the package.</p>
764 <p>This package uses several of the new features which were added
765 to the core <b class="package"><a href="critcl.html">critcl</a></b> package, see below.</p></li>
766 <li><p>Added the higher-level package <b class="package"><a href="critcl_class.html">critcl::class</a></b>.</p>
767 <p>This package simplifies the creation of C level objects with
768 class and instance commands. The user can write a class definition
769 with class- and instance-variables and -methods similar to a TclOO
770 class, with all the necessary boilerplate C code to support this
771 generated by the package.</p>
772 <p>This package uses several of the new features which were added
773 to the core <b class="package"><a href="critcl.html">critcl</a></b> package, see below.</p></li>
774 <li><p>Extended the API for handling TEApot metadata. Added the
775 command <b class="cmd">critcl::meta?</b> to query the stored information. Main use
776 currently envisioned is retrieval of the current package's name by
777 utility commands, for use in constructed names. This particular
778 information is always available due to the static scan of the package
779 file on execution of the first critcl command.</p>
780 <p>The new packages <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b> and
781 <b class="package"><a href="critcl_class.html">critcl::class</a></b> (see above) are users of this command.</p></li>
782 <li><p>Extended the API with a command, <b class="cmd">critcl::name2c</b>, exposing
783 the process of converting a Tcl name into base name, namespace, and C
784 namespace. This enables higher-level code generators to generate the same
785 type of C identifiers as <b class="package"><a href="critcl.html">critcl</a></b> itself.</p>
786 <p>The new package <b class="package"><a href="critcl_class.html">critcl::class</a></b> (see above) is a user
787 of this command.</p></li>
788 <li><p>Extended the API with a command, <b class="cmd">critcl::source</b>,
789 executing critcl commands found in a separate file in the context of
790 the current file. This enables easier management of larger bodies of
791 code as it allows the user to split such up into easier to digest
792 smaller chunks without causing the generation of multiple packages.</p></li>
793 <li><p>Related to the previous item, extended the API with commands to
794 divert collection of generated C code into memory. This makes it
795 easier to use the commands for embedded C code in higher-level code
796 generators.</p>
797 <p>See the section <b class="sectref">Advanced: Diversions</b> for details of
798 the provided commands.</p>
799 <p>The new package <b class="package"><a href="critcl_class.html">critcl::class</a></b> (see above) is a user
800 of these facilities.</p></li>
801 <li><p>Extended the API with commands helping developers with the
802 generation of proper C <i class="term">#line</i> directives. This allows
803 higher-level code generators to generate and insert their own
804 directives, ensuring that compile errors in their code are properly
805 attributed.</p>
806 <p>See the section <b class="sectref">Advanced: Location management</b> for
807 details of the provided commands.</p>
808 <p>The new packages <b class="package"><a href="critcl_iassoc.html">critcl::iassoc</a></b> and
809 <b class="package"><a href="critcl_class.html">critcl::class</a></b> (see above) are users of these facilities.</p></li>
810 <li><p>Extended the API with commands giving users the ability to
811 define custom argument and result types for <b class="cmd">::critcl::cproc</b>.</p>
812 <p>See the section <b class="sectref">CriTcl cproc Type Reference</b> for
813 details of the provided commands.</p></li>
814 </ol>
815 </div>
816 <div id="section25" class="doctools_section"><h2><a name="section25">Changes for version 3.0.7</a></h2>
817 <ol class="doctools_enumerated">
818 <li><p>Fixed the code generated by <b class="cmd">critcl::c++command</b>.
819 The emitted code handed a non-static string table to
820 <b class="function">Tcl_GetIndexFromObj</b>, in violation of the contract, which
821 requires the table to have a fixed address. This was a memory
822 smash waiting to happen. Thanks to Brian Griffin for alrerting
823 us to the general problem.</p></li>
824 </ol>
825 </div>
826 <div id="section26" class="doctools_section"><h2><a name="section26">Changes for version 3.0.6</a></h2>
827 <ol class="doctools_enumerated">
828 <li><p>Fixed github issue 10. The critcl application now delivers a
829 proper exit code (1) on build failure, instead of always
830 indicating success (status 0).</p></li>
831 <li><p>Fixed github issue 13. Handling of bufferoverflowU.lib for
832 release builds was inconsistent with handling for debug
833 builds. It is now identically handled (conditional) by
834 both cases.</p></li>
835 <li><p>Documentation cleanup, mainly in the installation guide, and
836 the README.md shown by github</p></li>
837 </ol>
838 </div>
839 <div id="section27" class="doctools_section"><h2><a name="section27">Changes for version 3.0.5</a></h2>
840 <ol class="doctools_enumerated">
841 <li><p>Fixed bug in the new code for #line pragmas triggered when
842 specifying C code without leading whitespace.</p></li>
843 <li><p>Extended the documentation to have manpages for the license,
844 source retrieval, installer, and developer's guides.</p></li>
845 </ol>
846 </div>
847 <div id="section28" class="doctools_section"><h2><a name="section28">Changes for version 3.0.4</a></h2>
848 <ol class="doctools_enumerated">
849 <li><p>Fixed generation of the package's initname when the incoming
850 code is read from stdin and has no proper path.</p></li>
851 <li><p>Fixed github issue 11. Now using /LIBPATH instead of -L
852 on Windows (libinclude configuration setting).</p></li>
853 <li><p>Extended critcl to handle -l:path format of -l options.
854 GNU ld 2.22+ handles this by searching for the path as
855 is. Good when specifying static libraries, as plain -l looks
856 for shared libraries in preference over static. critcl handles
857 it now, as older GNU ld's do not understand it, nor the
858 various vendor-specific linkers.</p></li>
859 <li><p>Fixed github issue #12. CriTcl now determines the version of
860 MSVC in use and uses it to switch between various link debug
861 options. Simplified the handling of bufferoverflowU.lib also,
862 making use of the same mechanism and collapsing the two
863 configurations sections we had back into one.</p></li>
864 <li><p>Reworked the insertion of #line pragmas into the generated C
865 code to avoid limitations on the line number argument imposed
866 by various compilers, and be more accurate.</p></li>
867 <li><p>Modified argument processing. Option -libdir now also
868 implies -L for its argument.</p></li>
869 <li><p>Extended handling of option -show (<b class="cmd">critcl::showconfig</b>)
870 to list the path of the configuration file the data is coming
871 from. Good for debugging configuration processing.</p></li>
872 <li><p>Extended the build script with targets to regenerate the
873 embedded documentation, and diagrams, and to generate a
874 release.</p></li>
875 </ol>
876 </div>
877 <div id="section29" class="doctools_section"><h2><a name="section29">Changes for version 3.0.3</a></h2>
878 <ol class="doctools_enumerated">
879 <li><p>Fixed github issues 5 and 8, for the example build.tcl
880 scripts. Working around a missing variable ::errorInfo. It should
881 always be present, however there seem to be revisions of Tcl around
882 which violate this assumption.</p></li>
883 </ol>
884 </div>
885 <div id="section30" class="doctools_section"><h2><a name="section30">Changes for version 3.0.2</a></h2>
886 <ol class="doctools_enumerated">
887 <li><p>Fixed issue in compile-and-run mode where commands put into the
888 auto_index are not found by Tcl's [unknown] command.</p></li>
889 <li><p>Fixed an array key mismatch breaking usage of client data and
890 delete function for procedure. Reported by Jos DeCoster, with patch.</p></li>
891 <li><p>Implemented a command line option <b class="option">-L</b>, an equivalent of
892 option <b class="option">-I</b>, just for library search paths.</p></li>
893 <li><p>Fixed github issues 5 and 8. Working around a missing variable
894 ::errorInfo. It should always be present, however there seem to be
895 revisions of Tcl around which violate this assumption.</p></li>
896 </ol>
897 </div>
898 <div id="section31" class="doctools_section"><h2><a name="section31">Changes for version 3.0.1</a></h2>
899 <ol class="doctools_enumerated">
900 <li><p>Bugfixes all around. In detail:</p></li>
901 <li><p>Fixed recording of Tcl version requirements. Keep package name
902 and version together, unbreaking generated meta data and generated
903 package load command.</p></li>
904 <li><p>Fixed the build scripts: When installing, or wrapping for TEA,
905 generate any missing directories</p></li>
906 <li><p>Modified the build scripts to properly exit the application
907 when the window of their GUI is closed through the (X) button.</p></li>
908 <li><p>Removed an 8.5-ism (open wb) which had slipped into the main
909 build script.</p></li>
910 <li><p>Modified the example build scripts to separate the output for
911 the different examples (and packages) by adding empty lines.</p></li>
912 <li><p>stack::c example bugfix: Include API declarations for use in
913 the companion files.</p></li>
914 <li><p>Extended the documentation: Noted the need for a working
915 installation of a C compiler.</p></li>
916 <li><p>Extended the Windows target definitions and code to handle the
917 manifest files used by modern MS development environments. Note that
918 this code handles both possibilities, environment using manifests, and
919 (old(er)) environments without.</p></li>
920 <li><p>Extended the Windows 64bit target definitions and code to
921 auto-detect the need for the helper library &quot;bufferoverflowU.lib&quot; and
922 reconfigure the compile and link commands appropriately. We assume
923 that the library must be linked when present. This should be no harm
924 if the library is present, yet not needed. Just superfluous. We search
925 for the library in the paths specified by the environment variable
926 LIB.</p></li>
927 </ol>
928 </div>
929 <div id="section32" class="doctools_section"><h2><a name="section32">Changes for version 3</a></h2>
930 <ol class="doctools_enumerated">
931 <li><p>The command <b class="cmd">critcl::platform</b> was deprecated in version
932 2.1, superceded by <b class="cmd">critcl::targetplatform</b>, yet kept for
933 compatibility. Now it has been removed.</p></li>
934 <li><p>The command <b class="cmd">critcl::compiled</b> was kept with in version 2.1
935 with semantics in contradiction to its, for compatibility. This
936 contradiction has been removed, changing the visible semantics of the
937 command to be in line with its name.</p></li>
938 <li><p>The change to version 3 became necessary because of the two
939 incompatible visible changes above.</p></li>
940 <li><p>Extended the application package with code handling a new
941 option <b class="option">-tea</b>. Specifying this option invokes a special mode
942 where critcl generates a TEA package, i.e. wraps the input into a
943 directory hierarchy and support files which provide it TEA-lookalike
944 buildsystem.</p>
945 <p>This new option, and <b class="option">-pkg</b>, exclude each other. If
946 both are specified the last used option takes precedence.</p>
947 <p>The generated package directory hierarchy is mostly
948 self-contained, but not fully. It requires not only a working
949 installation of Tcl, but also working installations of the packages
950 <b class="package">md5</b> and <b class="package">cmdline</b>. Both of these are provided by the
951 <b class="package">Tcllib</b> bundle. Not required, but recommended to have
952 installed are any of the packages which can accelerate md5's
953 operation, i.e. <b class="package">cryptkit</b>, <b class="package">tcllibc</b>, or
954 <b class="package">Trf</b>.</p></li>
955 <li><p>Extended the critcl package with a new command
956 <b class="cmd">critcl::scan</b> taking the path to a &quot;<b class="file">.critcl</b>&quot; file,
957 statically scanning it, and returning license, version, a list of its
958 companion files, list of imported APIs, and list of
959 developer-specified custom configuration options. This data is the
960 foundation for the TEA wrapping described above.</p>
961 <p>Note that this is a <em>static</em> scan. While the other build
962 modes can (must) execute the &quot;<b class="file">.critcl</b>&quot; file and make
963 platform-specific decisions regarding the assembled C code, companion
964 files, etc. the TEA wrap mode is not in a position to make
965 platform-specific decisions. It has to wrap everything which might
966 conceivably be needed when actually building. Hence the static scan.
967 This has however its own set of problems, namely the inability to
968 figure out any dynamic construction of companion file paths, at least
969 on its own. Thus:</p></li>
970 <li><p>Extended the API used by critcl-based packages with the command
971 <b class="cmd">critcl::owns</b>. While this command is ignored by the regular build
972 modes the static scanner described above takes its arguments as the
973 names of companion files which have to be wrapped into the TEA package
974 and could not be figured by the scanner otherwise, like because of
975 dynamic paths to <b class="cmd">critcl::tsources</b>, <b class="cmd">critcl::csources</b>,
976 getting sourced directly, or simply being adjunct datafiles.</p></li>
977 <li><p>Extended the API used by critcl-based packages with the command
978 <b class="cmd">critcl::api</b> for the management of stubs tables, be it their use,
979 and/or declaration and export.</p>
980 <p>Please see section <em>Stubs Table Management</em> of the
981 <b class="package"><a href="critcl.html">critcl</a></b> package documentation for details.</p></li>
982 <li><p>Extended the API used by critcl-based packages with the command
983 <b class="cmd">critcl::userconfig</b> for the management of developer-specified
984 custom configuration options, be it their use and/or declaration.</p>
985 <p>Please see section <em>Custom Build Configuration</em> of the
986 <b class="package"><a href="critcl.html">critcl</a></b> package documentation for details.</p></li>
987 <li><p>Extended the API used by critcl-based packages with the
988 commands <b class="cmd">critcl::description</b>, <b class="cmd">critcl::summary</b>,
989 <b class="cmd">critcl::subject</b>, <b class="cmd">critcl::meta</b>, and
990 <b class="cmd">critcl::buildrequirement</b> for the declaration of TEApot meta data
991 for/about the package.</p>
992 <p>Please see section <em>Package Meta Data</em> of the
993 <b class="package"><a href="critcl.html">critcl</a></b> package documentation for details.</p></li>
994 </ol>
995 </div>
996 <div id="section33" class="doctools_section"><h2><a name="section33">Changes for version 2.1</a></h2>
997 <ol class="doctools_enumerated">
998 <li><p>Fixed bug where <b class="cmd">critcl::tsources</b> interpreted relative
999 paths as relative to the current working directory instead of
1000 relative to the &quot;<b class="file">.critcl</b>&quot; file using the command, as all other
1001 commands of this type do.</p></li>
1002 <li><p>Fixed internals, preventing information collected for multiple
1003 &quot;<b class="file">.critcl</b>&quot; files to leak between them. Notably, <b class="cmd">critcl::tk</b>
1004 is not a global configuration option anymore.</p></li>
1005 <li><p>Fixed the command <b class="cmd">critcl::license</b> to be a null-operation
1006 in mode &quot;compile &amp; run&quot;, instead of throwing an error.</p></li>
1007 <li><p>Fixed the critcl application's interference with the &quot;compile &amp;
1008 run&quot; result cache in <b class="option">-pkg</b> mode by having it use a wholly
1009 separate (and by default transient) directory for that mode.</p></li>
1010 <li><p>Fixed bug where changes to a &quot;<b class="file">.critcl</b>&quot; file did not result
1011 in a rebuild for mode &quot;compile &amp; run&quot;. All relevant API commands now
1012 ensure UUID changes.</p></li>
1013 <li><p>Fixed bug in the backend handling of <b class="cmd">critcl::debug</b> where
1014 the companion c-sources of a &quot;<b class="file">.critcl</b>&quot; file were not compiled
1015 with debug options, although the &quot;<b class="file">.critcl</b>&quot; file was.</p></li>
1016 <li><p>Fixed bug in <b class="cmd">critcl::debug</b> which prevented recognition of
1017 mode &quot;all&quot; when it was not the first argument to the command.</p></li>
1018 <li><p>Fixed bug in &quot;<b class="file">preload.c</b>&quot; preventing its compilation on
1019 non-windows platforms.</p></li>
1020 <li><p>Fixed long-standing bug in the handling of namespace qualifiers
1021 in the command name argument of <b class="cmd">critcl::cproc</b> and
1022 <b class="cmd">critcl::ccommand</b>. It is now possible to specify a fully
1023 qualified command name without issues.</p></li>
1024 <li><p>Extended/reworked <b class="cmd">critcl::tsources</b> to be the canonical
1025 way of declaring &quot;<b class="file">.tcl</b>&quot; companion files even for mode &quot;compile &amp;
1026 run&quot;.</p></li>
1027 <li><p>Extended/reworked <b class="cmd">critcl::tsources</b> to allow the use of a
1028 &quot;<b class="file">.critcl</b>&quot; file as its own Tcl companion file.</p></li>
1029 <li><p>Extended <b class="cmd">critcl::framework</b> to internally check for OS X
1030 build target, and to ignore the declaration if its not.</p></li>
1031 <li><p>Extended <b class="cmd">critcl::failed</b> to be callable more than once in
1032 a &quot;<b class="file">.critcl</b>&quot; file. The first call forces the build, if it was not
1033 done already, to get the result. Further calls return the cached
1034 result of the first call.</p></li>
1035 <li><p>Extended the handling of environment variable CC in the code
1036 determining the compiler to use to deal with (i.e. remove) paths to
1037 the compiler, compiler file extensions, and compiler options specified
1038 after the compiler itself, leaving only the bare name of the compiler.</p></li>
1039 <li><p>Extended the code handling the search for preloaded libraries
1040 to print the paths it searched, making debugging of a search failure
1041 easier.</p></li>
1042 <li><p>A new command <b class="cmd">critcl::tcl</b> can be used to declare the
1043 version of Tcl minimally needed to build and run the &quot;<b class="file">.critcl</b>&quot;
1044 file and package. Defaults to 8.4 if not declared. Extended critcl to
1045 have the stubs and headers for all of Tcl 8.4, 8.5, and 8.6.</p></li>
1046 <li><p>A new command <b class="cmd">critcl::load</b> forces the build and load of a
1047 &quot;<b class="file">.critcl</b>&quot; file. This is the official way for overriding critcl's
1048 default lazy-build-&amp;-load-on-demand scheme for mode &quot;compile &amp; run&quot;.</p>
1049 <p><em>Note</em> that after using <b class="cmd">critcl::load</b> /
1050 <b class="cmd">critcl::failed</b> in a &quot;<b class="file">.critcl</b>&quot; file it is not possible to
1051 use critcl commands in that file anymore. Doing so will throw an
1052 error.</p></li>
1053 <li><p>Extended the generation of '#line' pragmas to use
1054 <b class="cmd">info frame</b> (if available) to provide the C compiler with exact
1055 line numbers into the &quot;<b class="file">.critcl</b>&quot; file for the reporting of
1056 warnings and errors.</p></li>
1057 <li><p>Extended <b class="cmd">critcl::check</b> with logging to help with
1058 debugging build-time checks of the environment, plus an additional
1059 optional argument to provide labeling.</p></li>
1060 <li><p>Added a new command <b class="cmd">critcl::checklink</b> which not only
1061 tries to check the environment via compiling the code, but also
1062 its linkability.</p></li>
1063 <li><p>Added a new command <b class="cmd">critcl::msg</b> for messaging, like
1064 command <b class="cmd">critcl::error</b> is for error reporting. Likewise this is a
1065 hook a user of the package is allowed to override. The default
1066 implementation, used by mode <i class="term"><a href="../index.html#compile_run">compile &amp; run</a></i> does nothing. The
1067 implementation for mode <i class="term"><a href="../index.html#generate_package">generate package</a></i> prints the message
1068 to stdout.</p>
1069 <p>Envisioned use is for the reporting of results determined by
1070 <b class="cmd">critcl::check</b> and <b class="cmd">critcl::checklink</b> during building, to
1071 help with debugging when something goes wrong with a check.</p></li>
1072 <li><p>Exposed the argument processing internals of <b class="cmd">critcl::proc</b>
1073 for use by advanced users. The new commands are</p>
1074 <ol class="doctools_enumerated">
1075 <li><p><b class="cmd">critcl::argnames</b></p></li>
1076 <li><p><b class="cmd">critcl::argcnames</b></p></li>
1077 <li><p><b class="cmd">critcl::argcsignature</b></p></li>
1078 <li><p><b class="cmd">critcl::argvardecls</b></p></li>
1079 <li><p><b class="cmd">critcl::argconversion</b></p></li>
1080 </ol>
1081 <p>Please see section <em>Advanced Embedded C Code</em> of the
1082 <b class="package"><a href="critcl.html">critcl</a></b> package documentation for details.</p></li>
1083 <li><p>Extended the critcl package to intercept <b class="cmd">package
1084 provide</b> and record the file -&gt; package name mapping. Plus other
1085 internal changes now allow the use of namespaced package names while
1086 still using proper path names and init function.</p></li>
1087 <li><p>Dropped the unused commands <b class="cmd">critcl::optimize</b> and
1088 <b class="cmd">critcl::include</b>.</p></li>
1089 <li><p>Dropped <b class="option">-lib</b> mode from the critcl application.</p></li>
1090 <li><p>Dropped remnants of support for Tcl 8.3 and before.</p></li>
1091 </ol>
1092 </div>
1093 <div id="section34" class="doctools_section"><h2><a name="section34">Authors</a></h2>
1094 <p>Jean Claude Wippler, Steve Landers, Andreas Kupries</p>
1095 </div>
1096 <div id="section35" class="doctools_section"><h2><a name="section35">Bugs, Ideas, Feedback</a></h2>
1097 <p>This document, and the package it describes, will undoubtedly contain
1098 bugs and other problems.
1099 Please report them at <a href="https://github.com/andreas-kupries/critcl/issues">https://github.com/andreas-kupries/critcl/issues</a>.
1100 Ideas for enhancements you may have for either package, application,
1101 and/or the documentation are also very welcome and should be reported
1102 at <a href="https://github.com/andreas-kupries/critcl/issues">https://github.com/andreas-kupries/critcl/issues</a> as well.</p>
1103 </div>
1104 <div id="keywords" class="doctools_section"><h2><a name="keywords">Keywords</a></h2>
1105 <p><a href="../index.html#c_code">C code</a>, <a href="../index.html#embedded_c_code">Embedded C Code</a>, <a href="../index.html#calling_c_code_from_tcl">calling C code from Tcl</a>, <a href="../index.html#code_generator">code generator</a>, <a href="../index.html#compile_run">compile &amp; run</a>, <a href="../index.html#compiler">compiler</a>, <a href="../index.html#dynamic_code_generation">dynamic code generation</a>, <a href="../index.html#dynamic_compilation">dynamic compilation</a>, <a href="../index.html#generate_package">generate package</a>, <a href="../index.html#linker">linker</a>, <a href="../index.html#on_demand_compilation">on demand compilation</a>, <a href="../index.html#on_the_fly_compilation">on-the-fly compilation</a></p>
1106 </div>
1107 <div id="category" class="doctools_section"><h2><a name="category">Category</a></h2>
1108 <p>Glueing/Embedded C code</p>
1109 </div>
1110 <div id="copyright" class="doctools_section"><h2><a name="copyright">Copyright</a></h2>
1111 <p>Copyright &copy; Jean-Claude Wippler<br>
1112 Copyright &copy; Steve Landers<br>
1113 Copyright &copy; 2011-2024 Andreas Kupries</p>
1114 </div>
1115 </div></body></html>