Debian Codegraph @

embedded/man/files/critcl_changes.n

raw
1 '\"
2 '\" Generated from file 'critcl_changes\&.man' by tcllib/doctools with format 'nroff'
3 '\" Copyright (c) Jean-Claude Wippler
4 '\" Copyright (c) Steve Landers
5 '\" Copyright (c) 2011-2024 Andreas Kupries
6 '\"
7 .TH "critcl_changes" n 3\&.3\&.1 doc "C Runtime In Tcl (CriTcl)"
8 .\" The -*- nroff -*- definitions below are for supplemental macros used
9 .\" in Tcl/Tk manual entries.
10 .\"
11 .\" .AP type name in/out ?indent?
12 .\" Start paragraph describing an argument to a library procedure.
13 .\" type is type of argument (int, etc.), in/out is either "in", "out",
14 .\" or "in/out" to describe whether procedure reads or modifies arg,
15 .\" and indent is equivalent to second arg of .IP (shouldn't ever be
16 .\" needed; use .AS below instead)
17 .\"
18 .\" .AS ?type? ?name?
19 .\" Give maximum sizes of arguments for setting tab stops. Type and
20 .\" name are examples of largest possible arguments that will be passed
21 .\" to .AP later. If args are omitted, default tab stops are used.
22 .\"
23 .\" .BS
24 .\" Start box enclosure. From here until next .BE, everything will be
25 .\" enclosed in one large box.
26 .\"
27 .\" .BE
28 .\" End of box enclosure.
29 .\"
30 .\" .CS
31 .\" Begin code excerpt.
32 .\"
33 .\" .CE
34 .\" End code excerpt.
35 .\"
36 .\" .VS ?version? ?br?
37 .\" Begin vertical sidebar, for use in marking newly-changed parts
38 .\" of man pages. The first argument is ignored and used for recording
39 .\" the version when the .VS was added, so that the sidebars can be
40 .\" found and removed when they reach a certain age. If another argument
41 .\" is present, then a line break is forced before starting the sidebar.
42 .\"
43 .\" .VE
44 .\" End of vertical sidebar.
45 .\"
46 .\" .DS
47 .\" Begin an indented unfilled display.
48 .\"
49 .\" .DE
50 .\" End of indented unfilled display.
51 .\"
52 .\" .SO ?manpage?
53 .\" Start of list of standard options for a Tk widget. The manpage
54 .\" argument defines where to look up the standard options; if
55 .\" omitted, defaults to "options". The options follow on successive
56 .\" lines, in three columns separated by tabs.
57 .\"
58 .\" .SE
59 .\" End of list of standard options for a Tk widget.
60 .\"
61 .\" .OP cmdName dbName dbClass
62 .\" Start of description of a specific option. cmdName gives the
63 .\" option's name as specified in the class command, dbName gives
64 .\" the option's name in the option database, and dbClass gives
65 .\" the option's class in the option database.
66 .\"
67 .\" .UL arg1 arg2
68 .\" Print arg1 underlined, then print arg2 normally.
69 .\"
70 .\" .QW arg1 ?arg2?
71 .\" Print arg1 in quotes, then arg2 normally (for trailing punctuation).
72 .\"
73 .\" .PQ arg1 ?arg2?
74 .\" Print an open parenthesis, arg1 in quotes, then arg2 normally
75 .\" (for trailing punctuation) and then a closing parenthesis.
76 .\"
77 .\" # Set up traps and other miscellaneous stuff for Tcl/Tk man pages.
78 .if t .wh -1.3i ^B
79 .nr ^l \n(.l
80 .ad b
81 .\" # Start an argument description
82 .de AP
83 .ie !"\\$4"" .TP \\$4
84 .el \{\
85 . ie !"\\$2"" .TP \\n()Cu
86 . el .TP 15
87 .\}
88 .ta \\n()Au \\n()Bu
89 .ie !"\\$3"" \{\
90 \&\\$1 \\fI\\$2\\fP (\\$3)
91 .\".b
92 .\}
93 .el \{\
94 .br
95 .ie !"\\$2"" \{\
96 \&\\$1 \\fI\\$2\\fP
97 .\}
98 .el \{\
99 \&\\fI\\$1\\fP
100 .\}
101 .\}
102 ..
103 .\" # define tabbing values for .AP
104 .de AS
105 .nr )A 10n
106 .if !"\\$1"" .nr )A \\w'\\$1'u+3n
107 .nr )B \\n()Au+15n
108 .\"
109 .if !"\\$2"" .nr )B \\w'\\$2'u+\\n()Au+3n
110 .nr )C \\n()Bu+\\w'(in/out)'u+2n
111 ..
112 .AS Tcl_Interp Tcl_CreateInterp in/out
113 .\" # BS - start boxed text
114 .\" # ^y = starting y location
115 .\" # ^b = 1
116 .de BS
117 .br
118 .mk ^y
119 .nr ^b 1u
120 .if n .nf
121 .if n .ti 0
122 .if n \l'\\n(.lu\(ul'
123 .if n .fi
124 ..
125 .\" # BE - end boxed text (draw box now)
126 .de BE
127 .nf
128 .ti 0
129 .mk ^t
130 .ie n \l'\\n(^lu\(ul'
131 .el \{\
132 .\" Draw four-sided box normally, but don't draw top of
133 .\" box if the box started on an earlier page.
134 .ie !\\n(^b-1 \{\
135 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
136 .\}
137 .el \}\
138 \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\l'|0u-1.5n\(ul'
139 .\}
140 .\}
141 .fi
142 .br
143 .nr ^b 0
144 ..
145 .\" # VS - start vertical sidebar
146 .\" # ^Y = starting y location
147 .\" # ^v = 1 (for troff; for nroff this doesn't matter)
148 .de VS
149 .if !"\\$2"" .br
150 .mk ^Y
151 .ie n 'mc \s12\(br\s0
152 .el .nr ^v 1u
153 ..
154 .\" # VE - end of vertical sidebar
155 .de VE
156 .ie n 'mc
157 .el \{\
158 .ev 2
159 .nf
160 .ti 0
161 .mk ^t
162 \h'|\\n(^lu+3n'\L'|\\n(^Yu-1v\(bv'\v'\\n(^tu+1v-\\n(^Yu'\h'-|\\n(^lu+3n'
163 .sp -1
164 .fi
165 .ev
166 .\}
167 .nr ^v 0
168 ..
169 .\" # Special macro to handle page bottom: finish off current
170 .\" # box/sidebar if in box/sidebar mode, then invoked standard
171 .\" # page bottom macro.
172 .de ^B
173 .ev 2
174 'ti 0
175 'nf
176 .mk ^t
177 .if \\n(^b \{\
178 .\" Draw three-sided box if this is the box's first page,
179 .\" draw two sides but no top otherwise.
180 .ie !\\n(^b-1 \h'-1.5n'\L'|\\n(^yu-1v'\l'\\n(^lu+3n\(ul'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
181 .el \h'-1.5n'\L'|\\n(^yu-1v'\h'\\n(^lu+3n'\L'\\n(^tu+1v-\\n(^yu'\h'|0u'\c
182 .\}
183 .if \\n(^v \{\
184 .nr ^x \\n(^tu+1v-\\n(^Yu
185 \kx\h'-\\nxu'\h'|\\n(^lu+3n'\ky\L'-\\n(^xu'\v'\\n(^xu'\h'|0u'\c
186 .\}
187 .bp
188 'fi
189 .ev
190 .if \\n(^b \{\
191 .mk ^y
192 .nr ^b 2
193 .\}
194 .if \\n(^v \{\
195 .mk ^Y
196 .\}
197 ..
198 .\" # DS - begin display
199 .de DS
200 .RS
201 .nf
202 .sp
203 ..
204 .\" # DE - end display
205 .de DE
206 .fi
207 .RE
208 .sp
209 ..
210 .\" # SO - start of list of standard options
211 .de SO
212 'ie '\\$1'' .ds So \\fBoptions\\fR
213 'el .ds So \\fB\\$1\\fR
214 .SH "STANDARD OPTIONS"
215 .LP
216 .nf
217 .ta 5.5c 11c
218 .ft B
219 ..
220 .\" # SE - end of list of standard options
221 .de SE
222 .fi
223 .ft R
224 .LP
225 See the \\*(So manual entry for details on the standard options.
226 ..
227 .\" # OP - start of full description for a single option
228 .de OP
229 .LP
230 .nf
231 .ta 4c
232 Command-Line Name: \\fB\\$1\\fR
233 Database Name: \\fB\\$2\\fR
234 Database Class: \\fB\\$3\\fR
235 .fi
236 .IP
237 ..
238 .\" # CS - begin code excerpt
239 .de CS
240 .RS
241 .nf
242 .ta .25i .5i .75i 1i
243 ..
244 .\" # CE - end code excerpt
245 .de CE
246 .fi
247 .RE
248 ..
249 .\" # UL - underline word
250 .de UL
251 \\$1\l'|0\(ul'\\$2
252 ..
253 .\" # QW - apply quotation marks to word
254 .de QW
255 .ie '\\*(lq'"' ``\\$1''\\$2
256 .\"" fix emacs highlighting
257 .el \\*(lq\\$1\\*(rq\\$2
258 ..
259 .\" # PQ - apply parens and quotation marks to word
260 .de PQ
261 .ie '\\*(lq'"' (``\\$1''\\$2)\\$3
262 .\"" fix emacs highlighting
263 .el (\\*(lq\\$1\\*(rq\\$2)\\$3
264 ..
265 .\" # QR - quoted range
266 .de QR
267 .ie '\\*(lq'"' ``\\$1''\\-``\\$2''\\$3
268 .\"" fix emacs highlighting
269 .el \\*(lq\\$1\\*(rq\\-\\*(lq\\$2\\*(rq\\$3
270 ..
271 .\" # MT - "empty" string
272 .de MT
273 .QW ""
274 ..
275 .BS
276 .SH NAME
277 critcl_changes \- CriTcl Releases & Changes
278 .SH DESCRIPTION
279 Be welcome to the \fIC Runtime In Tcl\fR (short: \fICriTcl\fR), a system for embedding and using C
280 code from within \fITcl\fR [http://core\&.tcl-lang\&.org/tcl] scripts\&.
281 .PP
282 Adding C code to \fITcl\fR [http://core\&.tcl-lang\&.org/tcl]/\fITk\fR [http://core\&.tcl-lang\&.org/tk] has never been easier\&.
283 .PP
284 Improve performance by rewriting the performance bottlenecks in C\&.
285 .PP
286 Import the functionality of shared libraries into Tcl scripts\&.
287 See the changes done in each release of \fICriTcl\fR, from the latest at the top to the
288 beginning of the project\&.
289 .PP
290 The latest changes are found at the top\&.
291 .SH "CHANGES FOR VERSION 3\&.3\&.1"
292 .IP [1]
293 Oops\&. Added refresh of tcl 8\&.6, 8\&.7 headers which was left behind behind\&.
294 .IP [2]
295 Oops\&. Fixed mismatch of package directories computed by install vs uninstall\&.
296 .PP
297 .SH "CHANGES FOR VERSION 3\&.3"
298 .IP [1]
299 As announced with 3\&.2:
300 .RS
301 .IP [1]
302 Removed support for Tcl 8\&.4 and 8\&.5\&.
303 .IP [2]
304 Removed support for the argument types
305 \fBint*\fR,
306 \fBfloat*\fR,
307 \fBdouble*\fR,
308 \fBbytearray\fR,
309 \fBrawchar\fR, and
310 \fBrawchar*\fR\&.
311 .RE
312 .IP [2]
313 Modified packages to accept operation under Tcl 9\&.
314 Bumped package versions appropriately\&.
315 Bumped copyrights\&.
316 .sp
317 The \fIHow To Adapt Critcl Packages for Tcl 9\fR
318 contains the details relevant to writers of \fICriTcl\fR-based packages\&.
319 .IP [3]
320 Set different minimum Tcl requirements for the 8\&.x and 9\&.x series\&.
321 .sp
322 If no minimum is declared the minimum depends on the Tcl version
323 used to run the critcl package or application\&.
324 .sp
325 When running under Tcl 9 the default minimum is version \fB9\fR\&.
326 For anything else the new default minimum is \fB8\&.6\fR\&.
327 .sp
328 \fIReminder\fR: Support for Tcl 8\&.4 and 8\&.5 was removed\&.
329 .IP [4]
330 Made "\fI~\fR"-handling portable across the 8\&.x and 9 boundary
331 (via \fBHOME\fR environment variable)\&.
332 .IP [5]
333 Bumped embedded \fBtclconfig\fR to version 2\&.67\&. Patch supplied by Paul Obermeier\&.
334 .IP [6]
335 \fIBug Fix\fR \fI#127\fR [https://github\&.com/andreas-kupries/critcl/issues/127]
336 .IP [7]
337 \fIBug Fix\fR \fI#128\fR [https://github\&.com/andreas-kupries/critcl/issues/128]
338 .IP [8]
339 \fIBug Fix\fR \fI#129\fR [https://github\&.com/andreas-kupries/critcl/issues/129]
340 Fixed various typos in the documentation\&.
341 .IP [9]
342 Reworked internals of \fBcritcl::cutil\fR's tracer to support operation in a
343 multi-threaded environment\&. This new mode is also default\&. The old single-threaded
344 mode can be (re)activated by defining \fBCRITCL_TRACE_NOTHREADS\fR\&.
345 .sp
346 Package bumped to version 0\&.4\&.
347 .IP [10]
348 Reworked the installer to add \fBtclX\fR markers to the installation directories of the
349 C-based support packages (\fBcritcl::callback\fR, \fBcritcl::md5c\fR), where
350 \fBX\fR is the major version number of the \fBtclsh\fR which ran critcl\&.
351 .IP [11]
352 In other words, one of \fBtcl8\fR or \fBtcl9\fR\&.
353 .IP [12]
354 Broke lingering dependencies on the Tcllib packages \fBcmdline\fR and \fBfileutil\fR\&.
355 .sp
356 There are no circularities between Critcl and Tcllib any longer, simplifying installation\&.
357 .PP
358 .SH "CHANGES FOR VERSION 3\&.2"
359 .IP [1]
360 \fIBREAKING\fR \fICriTcl\fR now requires Tcl 8\&.6 to be run\&.
361 .sp
362 It also generates Tcl 8\&.6 extensions by default\&.
363 .sp
364 It is still possible to generates extensions for Tcl 8\&.4 and 8\&.5,
365 properly setting it via \fBcritcl::tcl\fR\&.
366 .sp
367 \fIATTENTION\fR It is planned to completely remove 8\&.4 and 8\&.5
368 support with \fICriTcl\fR 3\&.3\&.
369 No date has been set for that release yet\&.
370 .sp
371 All utility packages have their versions and requirements bumped accordingly as
372 well\&.
373 .IP [2]
374 \fIBREAKING\fR \fIBug Fix\fR
375 Issue \fI#115\fR [https://github\&.com/andreas-kupries/critcl/issues/115]\&.
376 .sp
377 Distributions using \fBbuild\&.tcl\fR for installation of critcl in their
378 packaging scripts have to be updated to the changed command signature of
379 \fBbuild\&.tcl\fR install, etc\&. See the details below\&.
380 .sp
381 Redone the argument handling for \fBinstall\fR, \fBuninstall\fR, and
382 \fBtargets\fR\&. The destination argument is gone\&. All commands now take options
383 similar to what is known from GNU \fBconfigure\fR, i\&.e\&.
384 .RS
385 .TP
386 \fB--prefix\fR path
387 .TP
388 \fB--exec-prefix\fR path
389 .TP
390 \fB--bin-dir\fR path
391 .TP
392 \fB--lib-dir\fR path
393 .TP
394 \fB--include-dir\fR path
395 .RE
396 .sp
397 They now also respect the environment variable \fBDESTDIR\fR, and the associated
398 option \fB--dest-dir\fR\&.
399 .sp
400 The \fB--prefix\fR defaults to the topdir from the bin directory holding the
401 \fBtclsh\fR running \fBbuild\&.tcl\fR\&. As Tcl command:
402 .CS
403
404
405 file dirname [file dirname [info nameofexecutable]]
406
407 .CE
408 .sp
409 Added a command \fBdirs\fR doing the same argument handling, for debugging\&.
410 .IP [3]
411 Removed the irrelevant packages \fBautoscroll\fR, \fBcmdline\fR,
412 \fBdict84\fR, \fBlassign84\fR, \fBlmap84\fR, \fBsnit\fR,
413 \fBsnitbutton\fR, and \fBwikit\fR\&.
414 .IP [4]
415 \fIDocumentation Redo\fR Issue
416 \fI#116\fR [https://github\&.com/andreas-kupries/critcl/issues/116]\&.
417 Reworked the documentation to use the system of 4 quadrants\&.
418 Reworked the introduction (How To Use Critcl) to be strongly
419 based on a series of examples\&.
420 .IP [5]
421 \fIBug Fix\fR Issue
422 \fI#125\fR [https://github\&.com/andreas-kupries/critcl/issues/125]\&.
423 Added missing method \fBcreate\fR in object creation example
424 of installer documentation\&.
425 .IP [6]
426 \fIFeature\fR\&. Extended \fBcproc\fR argument type processing\&. Now able to
427 auto-create restricted scalar types\&. I\&.e\&. types derived from \fIint\fR, etc\&. and
428 limited in the range of allowed values\&.
429 .sp
430 Further able to auto-create restricted list types, i\&.e\&. types derived from
431 \fIlist\fR and either limited in length, or in the type of the elements, or both\&.
432 .IP [7]
433 \fIBug Fix / Enhancement\fR Issue
434 \fI#118\fR [https://github\&.com/andreas-kupries/critcl/issues/118]\&. Modified
435 \fBcritcl::cproc\fR to accept C syntax for arguments, i\&.e\&. Trailing comma on
436 argument names, leading comma on type names, and lone comma characters\&.
437 .IP [8]
438 \fIPerformance Fix\fR for \fIcompile & run\fR mode\&.
439 Issue \fI#112\fR [https://github\&.com/andreas-kupries/critcl/issues/112]\&.
440 .sp
441 Moved the command activating more precise code location tracking out of package
442 \fBcritcl\fR into package \fBcritcl::app\fR\&.
443 .sp
444 Because generating packages ahead of time can bear the performance penalty invoked
445 by this \fIglobal\fR setting\&.
446 .sp
447 Arbitrary libraries and applications using critcl dynamically
448 (\fIcompile & run\fR) on the other hand likely cannot, and should not\&.
449 .IP [9]
450 \fIFix\fR
451 Issue \fI#109\fR [https://github\&.com/andreas-kupries/critcl/issues/109]\&.
452 Ignore \fBclang\fR suffices when computing the target identifier from a
453 configuration identifier\&.
454 .IP [10]
455 \fIFeature\fR\&. Bumped package \fBcritcl::cutil\fR to version 0\&.2\&.1\&.
456 Simplified the implementation of macro \fBASSERT\fR by taking the underlying
457 \fBTcl_Panic\fR's printf ability into account and added a new macro \fBASSERT_VA\fR
458 exporting the same ability to the user\&.
459 .PP
460 .SH "CHANGES FOR VERSION 3\&.1\&.18\&.1"
461 .IP [1]
462 \fIAttention\fR: While the overall version (of the bundle)
463 moves to 3\&.1\&.18\&.1 the versions of packages \fBcritcl\fR and
464 \fBcritcl::app\fR are \fIunchanged\fR\&.
465 .IP [2]
466 \fIBugfix\fR Generally removed a number of 8\&.5-isms which
467 slipped into 3\&.1\&.18, breaking ability to use it with Tcl 8\&.4\&.
468 .IP [3]
469 \fIBugfix\fR Corrected broken \fIbuild\&.tcl uninstall\fR\&.
470 .IP [4]
471 \fIBugfix\fR Package \fBcritcl::class\fR bumped to
472 version 1\&.1\&.1\&. Fixed partial template substitution breaking
473 compilation of the generated code\&.
474 .PP
475 .SH "CHANGES FOR VERSION 3\&.1\&.18"
476 .IP [1]
477 Feature (Developer support)\&. Merged pull request #96 from
478 sebres/main-direct-invoke\&. Enables direct invokation of the
479 "\fImain\&.tcl\fR" file for starkits from within a dev checkout,
480 i\&.e\&. outside of a starkit, or starpack\&.
481 .IP [2]
482 Feature\&. Added channel types to the set of builtin argument and
483 result types\&. The argument types are for simple channel access,
484 access requiring unshared channels, and taking the channel
485 fully into the C level, away from Tcl\&. The result type comes in
486 variants for newly created channels, known channels, and to
487 return taken channels back to Tcl\&. The first will register the
488 returned value in the interpreter, the second assumes that it
489 already is\&.
490 .IP [3]
491 Bugfix\&. Issue #96\&. Reworked the documentation around the
492 argument type \fBTcl_Interp*\fR to make its special status
493 more visible, explain uses, and call it out from result types
494 where its use will be necessary or at least useful\&.
495 .IP [4]
496 Feature\&. Package \fBcritcl::class\fR bumped to version 1\&.1\&.
497 Extended with the ability to create a C API for classes, and
498 the ability to disable the generation of the Tcl API\&.
499 .IP [5]
500 Bugfix\&. Merged pull request #99 from pooryorick/master\&. Fixes
501 to the target directory calculations done by the install code\&.
502 .IP [6]
503 Merged pull request #94 from andreas-kupries/documentation\&.
504 A larger documentation cleanup\&. The main work was done by
505 pooryorick, followed by tweaks done by myself\&.
506 .IP [7]
507 Extended the test suite with lots of cases based on the
508 examples for the various generator packages\&. IOW the new test
509 cases replicate/encapsulate the examples and demonstrate that
510 the packages used by the examples generate working code\&.
511 .IP [8]
512 Bugfix\&. Issue #95\&. Changed the field \fBcritcl_bytes\&.s\fR to
513 \fBunsigned char*\fR to match Tcl's type\&. Further constified
514 the field to make clear that read-only usage is the common case
515 for it\&.
516 .IP [9]
517 Bugfix/Feature\&. Package \fBcritcl::cutil\fR bumped to
518 version 0\&.2\&. Fixed missing inclusion of header "\fIstring\&.h\fR"
519 in "\fIcritcl_alloc\&.h\fR", needed for \fBmemcpy\fR in macro
520 \fBSTREP\fR\&. Added macros \fBALLOC_PLUS\fR and \fBSTRDUP\fR\&.
521 Moved documentation of \fBSTREP\&.\&.\&.\fR macros into proper place
522 (alloc section, not assert)\&.
523 .IP [10]
524 Merged pull request #83 from apnadkarni/vc-fixes\&.
525 Removed deprecated -Gs for MSVC builds, and other Windows fixups\&.
526 .IP [11]
527 Feature\&. Package \fBcritcl::iassoc\fR bumped to version 1\&.1\&.
528 Refactored internals to generate an include header for use by \&.c files\&.
529 This now matches what other generator packages do\&.
530 The template file is inlined and removed\&.
531 .IP [12]
532 Merged pull request #82 from gahr/home-symlink
533 Modified tests to handle possibility of $HOME a symlink\&.
534 .IP [13]
535 Merged pull request #81 from gahr/test-not-installed
536 Modified test support to find uninstalled critcl packages when
537 running tests\&. Handles all but critcl::md5\&.
538 .IP [14]
539 Merged pull request #85 from snoe925/issue-84
540 to fix Issue #84 breaking installation on OSX\&.
541 .IP [15]
542 Merged pull request #87 from apnadkarni/tea-fixes to fix Issue
543 #86, broken -tea option, generating an incomplete package\&.
544 .IP [16]
545 Feature\&. New package \fBcritcl::callback\fR providing
546 C-level functions and data structures to manage callbacks from
547 C to Tcl\&.
548 .IP [17]
549 Feature\&. Package \fBcritcl::literals\fR bumped to version
550 1\&.3\&. Added mode \fB+list\fR enabling the conversion of
551 multiple literals into a list of their strings\&.
552 .IP [18]
553 Feature\&. Package \fBcritcl::enum\fR bumped to version 1\&.1\&.
554 Added basic mode handling, supporting \fBtcl\fR (default) and
555 \fB+list\fR (extension enabling the conversion of multiple
556 enum values into a list of their strings)\&.
557 .IP [19]
558 Feature\&. Package \fBcritcl::emap\fR bumped to version 1\&.2\&.
559 Extended existing mode handling with \fB+list\fR extension
560 enabling the conversion of multiple emap values into a list of
561 their strings\&.
562 .IP [20]
563 Feature\&. Extended the set of available types by applying a few
564 range restrictions to the scalar types (\fIint\fR,
565 \fIlong\fR, \fIwideint\fR, \fIdouble\fR, \fIfloat\fR)\&.
566 .sp
567 Example: \fIint > 0\fR is now a viable type name\&.
568 .sp
569 This is actually more limited than the description might
570 let you believe\&.
571 .sp
572 See the package reference for the details\&.
573 .PP
574 .SH "CHANGES FOR VERSION 3\&.1\&.17"
575 .IP [1]
576 Extension: Allow duplicate arg- and result-type definitions if
577 they are fully identical\&.
578 .IP [2]
579 Bugfix\&. The application mishandled the possibility of
580 identical-named \fBcritcl::tsource\fRs\&. Possible because
581 \fBcritcl::tsource\fRs can be in subdirectories, a structure
582 which is \fInot\fR retained in the assembled package, causing
583 such files to overwrite each other and at least one lost\&. Fixed
584 by adding a serial number to the file names in the assembled
585 package\&.
586 .IP [3]
587 Bugfix in the static scanner which made it loose requirement
588 information\&. Further added code to generally cleanup results at
589 the end (removal of duplicates, mainly)\&.
590 .IP [4]
591 Bugfix: Fixed issue #76\&.
592 Support installation directories which are not in the \fBauto_path\fR\&.
593 Without the patch the installed \fBcritcl\fR will not find its
594 own packages and fail\&. Thank you to
595 \fISimon Bachmann\fR [https://github\&.com/lupylucke] for the
596 report and patch, and then his patience with me to getting to
597 actually apply it\&.
598 .IP [5]
599 Bugfix: Fixed issue #75\&.
600 Extended \fBcritcl::include\fR to now take multiple paths\&.
601 .IP [6]
602 Added new compatibility package \fBlmap84\fR\&.
603 .IP [7]
604 Fixed typos in various documentation files\&.
605 .IP [8]
606 Fixed bug introduced by commit 86f415dd30 (3\&.1\&.16 release)\&. The
607 separation of \fBcritcl::ccode\fR into user and work layers
608 means that location retrieval has to go one more level up to
609 find the user location\&.
610 .IP [9]
611 New supporting package \fBcritcl::cutil\fR\&. Provides common
612 C level facilities useful to packages (assertions, tracing,
613 memory allocation shorthands)\&.
614 .IP [10]
615 Modified package \fBcritcl\fR to make use of the new
616 tracing facilities to provide tracing of arguments and results
617 for \fBcritcl::ccommand\fR and \fBcritcl::cproc\fR invokations\&.
618 .IP [11]
619 Modified packages \fBcritcl\fR and \fBcritcl::class\fR
620 to provide better function names for (class) method tracing\&.
621 Bumped package \fBcritcl::class\fR to version 1\&.0\&.7\&.
622 .IP [12]
623 Extended the support package \fBcritcl::literals\fR with
624 limited configurability\&. It is now able to generate code for
625 C-level access to the pool without Tcl types (Mode \fBc\fR)\&.
626 The previously existing functionality is accesssible under mode
627 \fBtcl\fR, which also is the default\&. Both modes can be used
628 together\&.
629 .IP [13]
630 Extended the support package \fBcritcl::emap\fR with
631 limited configurability\&. It is now able to generate code for
632 C-level access to the mapping without Tcl types
633 (Mode \fBc\fR)\&. The previously existing functionality is
634 accessible under mode \fBtcl\fR, which also is the
635 default\&. Both modes can be used together\&.
636 .PP
637 .SH "CHANGES FOR VERSION 3\&.1\&.16"
638 .IP [1]
639 New feature\&. Extended \fBcritcl::cproc\fR's argument handling
640 to allow arbitrary mixing of required and optional arguments\&.
641 .IP [2]
642 New feature\&.
643 \fIPotential Incompatibility\fR\&.
644 .sp
645 Extended \fBcritcl::cproc\fR's argument handling to treat an
646 argument \fBargs\fR as variadic if it is the last argument of
647 the procedure\&.
648 .IP [3]
649 New feature\&. Added two introspection commands,
650 \fBcritcl::has-argtype\fR and \fBcritcl::has-resulttype\fR\&.
651 These enable a user to test if a specific (named) type
652 conversion is implemented or not\&.
653 .IP [4]
654 Added new result type \fBTcl_Obj*0\fR, with alias
655 \fBobject0\fR\&. The difference to \fBTcl_Obj*\fR is in
656 the reference counting\&.
657 .IP [5]
658 Extended the command \fBcritcl::argtypesupport\fR with new
659 optional argument through which to explicitly specify the
660 identifier for guarding against multiple definitions\&.
661 .IP [6]
662 Bugfix: Fixed problem with the implementation of issue #54 (See
663 3\&.1\&.14)\&. Always create the secondary log file\&. Otherwise
664 end-of-log handling may break, unconditionally assuming its
665 existence\&.
666 .IP [7]
667 Bugfix: Fixed problem with the internal change to the hook
668 \fBHandleDeclAfterBuild\fR\&. Corrected the forgotten
669 \fBcritcl::cconst\fR\&.
670 .IP [8]
671 Debugging aid: Added comment holding the name of the result
672 type when emitting result conversions\&.
673 .IP [9]
674 Bugfix: Fixed issue #60\&. Unbundled the package directories
675 containing multiple packages\&. All directories under "\fIlib/\fR"
676 now contain exactly one package\&.
677 .IP [10]
678 Bugfix: Fixed issue #62, a few \fBdict exists\fR commands
679 operating on a fixed string instead of a variable\&.
680 .IP [11]
681 Bugfix: Fixed issue #56\&. Release builders are reminded to run
682 the tests\&.
683 .IP [12]
684 Bugfix: Fixed issue #55\&. For FreeBSD critcl's platform package
685 now identifies the Kernel ABI version\&. Initialization of the
686 cache directory now also uses \fBplatform::identify\fR for the
687 default path, instead of \fBplatform::generic\fR\&.
688 .IP [13]
689 Bugfix: Fixed issue #58\&. Simplified the setup and use of
690 md5\&. CriTcl now makes use of its own package for md5, using
691 itself to built it\&. There is no chicken/egg problem with this
692 as the \fB-pkg\fR mode used for this does not use md5\&. That
693 is limited to mode \fIcompile & run\fR\&.
694 .PP
695 .SH "CHANGES FOR VERSION 3\&.1\&.15"
696 .IP [1]
697 Fixed version number bogosity with \fB3\&.1\&.14\fR\&.
698 .PP
699 .SH "CHANGES FOR VERSION 3\&.1\&.14"
700 .IP [1]
701 Fixed issue #36\&. Added message to target \fBall\fR of the
702 Makefile generated for TEA mode\&. Additionally tweaked other
703 parts of the output to be less noisy\&.
704 .IP [2]
705 Accepted request implied in issue #54\&. Unconditionally save
706 the compiler/linker build log into key \fBlog\fR of the
707 dictionary returned by \fBcresults\fR, and save a copy of only
708 the execution output in the new key \fBexl\fR ("execution
709 log")\&.
710 .IP [3]
711 Fixed issue #53\&. Clarified the documentation of commands
712 \fBcritcl::load\fR and \fBcritcl::failed\fR with regard
713 to their results and the throwing of errors (does not happen)\&.
714 .IP [4]
715 Fixed issue #48\&. Modified mode "compile & run" to allow new
716 declarations in a file, after it was build, instead of
717 erroring out\&. The new decls are build when needed\&. Mode
718 "precompile" is unchanged and will continue to trap the
719 situation\&.
720 .IP [5]
721 Fixed issue #52\&. Updated the local Tcl/Tk headers to
722 8\&.4\&.20, 8\&.5\&.13, and 8\&.6\&.4\&.
723 .IP [6]
724 Fixed issue #45\&. New feature command \fBcritcl::cconst\fR\&.
725 .IP [7]
726 \fBcritcl::util\fR: New command \fBlocate\fR to find a
727 file across a set of paths, and report an error when not
728 found\&. This is for use in autoconf-like header-searches and
729 similar configuration tests\&.
730 .IP [8]
731 Modified 'AbortWhenCalledAfterBuild' to dump the entire stack
732 (info frame!)\&. This should make it easier to determine the
733 location of the troubling declaration\&.
734 .PP
735 .SH "CHANGES FOR VERSION 3\&.1\&.13"
736 .IP [1]
737 Merged PR #43\&. Fixed bug loading adjunct Tcl sources\&.
738 .IP [2]
739 Fixes in documentation and generated code of package
740 "critcl::enum"\&. Bumped to version 1\&.0\&.1\&.
741 .IP [3]
742 Fixes in documentation of package "critcl::bitmap"\&.
743 .IP [4]
744 New package "critcl::emap"\&. In essence a variant or cross of
745 "critcl::bitmap" with behaviour like "critcl::enum"\&.
746 .IP [5]
747 Merged PR #49\&. Fixed documentation typo\&.
748 .IP [6]
749 Merged PR #46\&. Fixed documentation typo\&.
750 .IP [7]
751 Merged PR #47\&. Fixes to test results to match the accumulated
752 code changes\&. Also made portable across Tcl versions (varying
753 error syntax)\&.
754 .IP [8]
755 New predefined argument- and result-type "wideint" mapping to
756 Tcl_WideInt\&.
757 .IP [9]
758 New predefined argument-type "bytes" mapping to tuple of
759 byte-array data and length\&. Note: The existing "bytearray"
760 type (and its aliases) was left untouched, to keep backward
761 compatibility\&.
762 .IP [10]
763 Modified the internal interface between the Tcl shim and C
764 function underneath "critcl::cproc" with respect to the
765 handling of optional arguments\&.
766 An optional argument "X" now induces the use of two C
767 arguments, "X" and "has_X"\&. The new argument "has_X" is of
768 boolean (int) type\&. It is set to true when X is set, and set
769 to false when X has the default value\&. C code which cares
770 about knowing if the argument is default or not is now able to
771 check that quickly, without having to code the default value
772 inside\&.
773 NOTE: This change is visible in the output of the advanced
774 commands "argcnames", "argcsignature", "argvardecls",
775 and "argconversion"\&.
776 .IP [11]
777 Fixed issue #50 and documented the availability of variable
778 "interp" (type Tcl_Interp*) within "critcl::cinit" C code
779 fragments\&.
780 Note that while the old, undocumented name of the variable,
781 "ip", is still usable, it is deprecated\&. It will be fully
782 removed in two releases, i\&.e\&. for release 3\&.1\&.15\&.
783 The variable name was changed to be consistent with other code
784 environments\&.
785 .IP [12]
786 Fixed issue #51\&. Disabled the generation of #line directives
787 for "critcl::config lines 0" coming from template files, or
788 code generated with them before the final value of this
789 setting was known\&.
790 .IP [13]
791 Fixed issue with handling of namespaced package names in
792 "critcl::iassoc"\&. Equivalent to a bug in "critcl::class" fixed
793 for critcl 3\&.1\&.1, critcl::class 1\&.0\&.1\&.
794 Note: "literals", "enum", "emap", and "bitmap" do not require
795 a fix as they are all built on top of "iassoc"\&.
796 .PP
797 .SH "CHANGES FOR VERSION 3\&.1\&.12"
798 .IP [1]
799 Fixed issue 42\&. Clear ::errorInfo immediately after startup to
800 prevent leakage of irrelevant (caught) errors into our script
801 and confusing the usage code\&.
802 .IP [2]
803 Fixed issue 40\&. Keep the order of libraries, and allow
804 duplicates\&. Both are things which are occasionally required for
805 proper linking\&.
806 .IP [3]
807 Extended the utility package \fBcritcl::literals\fR to
808 declare a cproc result-type for a pool\&.
809 .sp
810 Further fixed the generated header to handle multiple inclusion\&.
811 .sp
812 Bumped version to 1\&.1\&.
813 .IP [4]
814 Fixed issue with utility package \fBcritcl::bitmap\fR\&.
815 .sp
816 Fixed the generated header to handle multiple inclusion\&.
817 .sp
818 Bumped version to 1\&.0\&.1\&.
819 .IP [5]
820 Created new utility package \fBcritcl::enum\fR for the
821 quick and easy setup and use of mappings between C values
822 and Tcl strings\&.
823 Built on top of \fBcritcl::literals\fR\&.
824 .IP [6]
825 Added examples demonstrating the use of the utility packages
826 \fBcritcl::literals\fR,
827 \fBcritcl::bitmap\fR, and
828 \fBcritcl::enum\fR
829 .PP
830 .SH "CHANGES FOR VERSION 3\&.1\&.11"
831 .IP [1]
832 Fixed issue #37, via pull request #38, with thanks to
833 Jos DeCoster\&. Information was stored into the v::delproc
834 and v::clientdata arrays using a different key than when
835 retrieving the same information, thus failing the latter\&.
836 .IP [2]
837 New convenience command \fBcritcl::include\fR for easy
838 inclusion of headers and other C files\&.
839 .IP [3]
840 New command \fBcritcl::make\fR to generate a local header of
841 other C files for use by other parts of a package through
842 inclusion\&.
843 .IP [4]
844 New utility package \fBcritcl::literals\fR for quick and
845 easy setup of and access to pools of fixed Tcl_Obj* strings\&.
846 Built on top of \fBcritcl::iassoc\fR\&.
847 .IP [5]
848 New utility package \fBcritcl::bitmap\fR for quick and easy
849 setup and use of mappings between C bitsets and Tcl lists whose
850 string elements represent that set\&.
851 Built on top of \fBcritcl::iassoc\fR\&.
852 .PP
853 .SH "CHANGES FOR VERSION 3\&.1\&.10"
854 .IP [1]
855 Fixed code version numbering forgotten with 3\&.1\&.9\&.
856 .IP [2]
857 Fixed issue #35\&. In package mode (-pkg) the object cache
858 directory is unique to the process, thus we do not need
859 content-hashing to generate unique file names\&. A simple
860 counter is sufficient and much faster\&.
861 .sp
862 Note that mode "compile & run" is not as blessed and still
863 uses content-hasing with md5 to ensure unique file names
864 in its per-user object cache\&.
865 .IP [3]
866 Fixed issue where the \fBccommand\fR forgot to use its body as
867 input for the UUID generation\&. Thus ignoring changes to it in
868 mode compile & run, and not rebuilding a library for changed
869 sources\&. Bug and fix reported by Peter Spjuth\&.
870 .PP
871 .SH "CHANGES FOR VERSION 3\&.1\&.9"
872 .IP [1]
873 Fixed issue #27\&. Added missing platform definitions for
874 various alternate linux and OS X targets\&.
875 .IP [2]
876 Fixed issue #28\&. Added missing -mXX flags for linking at the
877 linux-{32,64}-* targets\&.
878 .IP [3]
879 Fixed issue #29\&. Replaced the use of raw "cheaders"
880 information in the processing of "cdefines" with the proper
881 include directives derived from it\&.
882 .IP [4]
883 Fixed the issue behind rejected pull request #30 by Andrew
884 Shadura\&. Dynamically extract the stubs variable declarations
885 from the Tcl header files and generate matching variable
886 definitions for use in the package code\&. The generated code
887 will now be always consistent with the headers, even when
888 critcl's own copy of them is replaced by system headers\&.
889 .IP [5]
890 Fixed issue #31\&. Accepted patch by Andrew Shadura, with
891 changes (comments), for easier integration of critcl with
892 OS package systems, replacing critcl's copies of Tcl headers
893 with their own\&.
894 .IP [6]
895 Fixed issue #32\&. Merged pull request by Andrew Shadura\&.
896 Various typos in documentation and comments\&.
897 .IP [7]
898 Fixed issue #34\&. Handle files starting with a dot better\&.
899 .PP
900 .SH "CHANGES FOR VERSION 3\&.1\&.8"
901 .IP [1]
902 Fixed issue with package indices generated for Tcl 8\&.4\&.
903 Join the list of commands with semi-colon, not newline\&.
904 .IP [2]
905 Fixed issue #26 which brought up use-cases I had forgotten to
906 consider while fixing bug #21 (see critcl 3\&.1\&.6)\&.
907 .PP
908 .SH "CHANGES FOR VERSION 3\&.1\&.7"
909 .IP [1]
910 Fixed issue #24\&. Extract and unconditionally display compiler
911 warnings found in the build log\&. Prevents users from missing
912 warnings which, while not causing the build to fail, may
913 still indicate problems\&.
914 .IP [2]
915 New feature\&. Output hook\&. All non-messaging user output is now
916 routed through the command \fBcritcl::print\fR, and users are
917 allowed to override it when using the critcl application-as-package\&.
918 .IP [3]
919 New feature, by Ashok P\&. Nadkarni\&. Platform configurations can
920 inherit values from configurations defined before them\&.
921 .PP
922 .SH "CHANGES FOR VERSION 3\&.1\&.6"
923 .IP [1]
924 Fixed issue #21\&. While the multi-definition of the stub-table
925 pointer variables was ok with for all the C linkers seen so far
926 C++ linkers did not like this at all\&. Reworked the code to
927 ensure that this set of variables is generated only once, in
928 the wrapper around all the pieces to assemble\&.
929 .IP [2]
930 Fixed issue #22, the handling of the command identifier
931 arguments of \fBcritcl::ccommand\fR, \fBcritcl::cproc\fR, and
932 \fBcritcl::cdata\fR\&. We now properly allow any Tcl identifier
933 and generate proper internal C identifiers from them\&.
934 .sp
935 As part of this the signature of command \fBcritcl::name2c\fR
936 changed\&. The command now delivers a list of four values instead
937 of three\&. The new value was added at the end\&.
938 .sp
939 Further adapted the implementation of package
940 \fBcritcl::class\fR, a user of \fBcritcl::name2c\fR\&.
941 This package is now at version 1\&.0\&.6 and requires critcl 3\&.1\&.6
942 .sp
943 Lastly fixed the mis-handling of option \fB-cname\fR in
944 \fBcritcl::ccommand\fR, and \fBcritcl::cproc\fR\&.
945 .IP [3]
946 Fixed issue #23\&.
947 .PP
948 .SH "CHANGES FOR VERSION 3\&.1\&.5"
949 .IP [1]
950 Fixed issue #19\&. Made the regular expression extracting the
951 MSVC version number more general to make it work on german
952 language systems\&. This may have to be revisited in the future,
953 for other Windows locales\&.
954 .IP [2]
955 Fixed issue #20\&. Made option -tea work on windows, at least in
956 a unix emulation environment like msys/mingw\&.
957 .PP
958 .SH "CHANGES FOR VERSION 3\&.1\&.4"
959 .IP [1]
960 Bugfix in package \fBcritcl::class\fR\&. Generate a dummy
961 field in the class structure if the class has no class
962 variables\&. Without this change the structure would be empty,
963 and a number of compilers are not able to handle such a type\&.
964 .IP [2]
965 Fixed a typo which broke the win64 configuration\&.
966 .IP [3]
967 Fixed issue #16, a typo in the documentation of command
968 \fBcritcl::class\fR\&.
969 .PP
970 .SH "CHANGES FOR VERSION 3\&.1\&.3"
971 .IP [1]
972 Enhancement\&. In detail:
973 .IP [2]
974 Added new argument type "pstring", for "Pascal String", a
975 counted string, i\&.e\&. a combination of string pointer and string
976 length\&.
977 .IP [3]
978 Added new methods \fBcritcl::argtypesupport\fR and
979 \fB::critcl::argsupport\fR to define and use additional
980 supporting code for an argument type, here used by "pstring"
981 above to define the necessary structure\&.
982 .IP [4]
983 Semi-bugfixes in the packages \fBcritcl::class\fR and
984 \fBcritcl::iassoc\fR\&. Pragmas for the AS meta data scanner
985 to ensure that the template files are made part of the package\&.
986 Versions bumped to 1\&.0\&.4 and 1\&.0\&.1 respectively\&.
987 .PP
988 .SH "CHANGES FOR VERSION 3\&.1\&.2"
989 .IP [1]
990 Enhancement\&. In detail:
991 .IP [2]
992 Extended \fBcritcl::cproc\fR to be able to handle optional
993 arguments, in a limited way\&. This is automatically available to
994 \fBcritcl::class\fR cproc-based methods as well\&.
995 .IP [3]
996 Bugfix in \fBlassign\fR emulation for Tcl 8\&.4\&. Properly set
997 unused variables to the empty string\&. Bumped version of
998 emulation package \fBlassign84\fR to 1\&.0\&.1\&.
999 .PP
1000 .SH "CHANGES FOR VERSION 3\&.1\&.1"
1001 .IP [1]
1002 Bugfixes all around\&. In detail:
1003 .IP [2]
1004 Fixed the generation of wrong#args errors for
1005 \fBcritcl::cproc\fR and derived code (\fBcritcl::class\fR
1006 cproc-based methods)\&. Use NULL if there are no arguments, and
1007 take the offset into account\&.
1008 .IP [3]
1009 Fixed the handling of package names by
1010 \fBcritcl::class\fR\&. Forgot that they may contain namespace
1011 separators\&. Bumped to version 1\&.0\&.1\&.
1012 .IP [4]
1013 Extended a \fBcritcl::class\fR generated error message in
1014 instance creation for clarity\&. Bumped to version 1\&.0\&.2\&.
1015 .PP
1016 .SH "CHANGES FOR VERSION 3\&.1"
1017 .IP [1]
1018 Added a new higher-level package \fBcritcl::iassoc\fR\&.
1019 .sp
1020 This package simplifies the creation of code associating data
1021 with an interpreter via Tcl's \fBTcl_(Get|Set)AssocData()\fR APIs\&. The
1022 user can concentrate on his data while all the necessary boilerplate
1023 C code to support this is generated by the package\&.
1024 .sp
1025 This package uses several of the new features which were added
1026 to the core \fBcritcl\fR package, see below\&.
1027 .IP [2]
1028 Added the higher-level package \fBcritcl::class\fR\&.
1029 .sp
1030 This package simplifies the creation of C level objects with
1031 class and instance commands\&. The user can write a class definition
1032 with class- and instance-variables and -methods similar to a TclOO
1033 class, with all the necessary boilerplate C code to support this
1034 generated by the package\&.
1035 .sp
1036 This package uses several of the new features which were added
1037 to the core \fBcritcl\fR package, see below\&.
1038 .IP [3]
1039 Extended the API for handling TEApot metadata\&. Added the
1040 command \fBcritcl::meta?\fR to query the stored information\&. Main use
1041 currently envisioned is retrieval of the current package's name by
1042 utility commands, for use in constructed names\&. This particular
1043 information is always available due to the static scan of the package
1044 file on execution of the first critcl command\&.
1045 .sp
1046 The new packages \fBcritcl::iassoc\fR and
1047 \fBcritcl::class\fR (see above) are users of this command\&.
1048 .IP [4]
1049 Extended the API with a command, \fBcritcl::name2c\fR, exposing
1050 the process of converting a Tcl name into base name, namespace, and C
1051 namespace\&. This enables higher-level code generators to generate the same
1052 type of C identifiers as \fBcritcl\fR itself\&.
1053 .sp
1054 The new package \fBcritcl::class\fR (see above) is a user
1055 of this command\&.
1056 .IP [5]
1057 Extended the API with a command, \fBcritcl::source\fR,
1058 executing critcl commands found in a separate file in the context of
1059 the current file\&. This enables easier management of larger bodies of
1060 code as it allows the user to split such up into easier to digest
1061 smaller chunks without causing the generation of multiple packages\&.
1062 .IP [6]
1063 Related to the previous item, extended the API with commands to
1064 divert collection of generated C code into memory\&. This makes it
1065 easier to use the commands for embedded C code in higher-level code
1066 generators\&.
1067 .sp
1068 See the section \fBAdvanced: Diversions\fR for details of
1069 the provided commands\&.
1070 .sp
1071 The new package \fBcritcl::class\fR (see above) is a user
1072 of these facilities\&.
1073 .IP [7]
1074 Extended the API with commands helping developers with the
1075 generation of proper C \fI#line\fR directives\&. This allows
1076 higher-level code generators to generate and insert their own
1077 directives, ensuring that compile errors in their code are properly
1078 attributed\&.
1079 .sp
1080 See the section \fBAdvanced: Location management\fR for
1081 details of the provided commands\&.
1082 .sp
1083 The new packages \fBcritcl::iassoc\fR and
1084 \fBcritcl::class\fR (see above) are users of these facilities\&.
1085 .IP [8]
1086 Extended the API with commands giving users the ability to
1087 define custom argument and result types for \fB::critcl::cproc\fR\&.
1088 .sp
1089 See the section \fBCriTcl cproc Type Reference\fR for
1090 details of the provided commands\&.
1091 .PP
1092 .SH "CHANGES FOR VERSION 3\&.0\&.7"
1093 .IP [1]
1094 Fixed the code generated by \fBcritcl::c++command\fR\&.
1095 The emitted code handed a non-static string table to
1096 \fBTcl_GetIndexFromObj\fR, in violation of the contract, which
1097 requires the table to have a fixed address\&. This was a memory
1098 smash waiting to happen\&. Thanks to Brian Griffin for alrerting
1099 us to the general problem\&.
1100 .PP
1101 .SH "CHANGES FOR VERSION 3\&.0\&.6"
1102 .IP [1]
1103 Fixed github issue 10\&. The critcl application now delivers a
1104 proper exit code (1) on build failure, instead of always
1105 indicating success (status 0)\&.
1106 .IP [2]
1107 Fixed github issue 13\&. Handling of bufferoverflowU\&.lib for
1108 release builds was inconsistent with handling for debug
1109 builds\&. It is now identically handled (conditional) by
1110 both cases\&.
1111 .IP [3]
1112 Documentation cleanup, mainly in the installation guide, and
1113 the README\&.md shown by github
1114 .PP
1115 .SH "CHANGES FOR VERSION 3\&.0\&.5"
1116 .IP [1]
1117 Fixed bug in the new code for #line pragmas triggered when
1118 specifying C code without leading whitespace\&.
1119 .IP [2]
1120 Extended the documentation to have manpages for the license,
1121 source retrieval, installer, and developer's guides\&.
1122 .PP
1123 .SH "CHANGES FOR VERSION 3\&.0\&.4"
1124 .IP [1]
1125 Fixed generation of the package's initname when the incoming
1126 code is read from stdin and has no proper path\&.
1127 .IP [2]
1128 Fixed github issue 11\&. Now using /LIBPATH instead of -L
1129 on Windows (libinclude configuration setting)\&.
1130 .IP [3]
1131 Extended critcl to handle -l:path format of -l options\&.
1132 GNU ld 2\&.22+ handles this by searching for the path as
1133 is\&. Good when specifying static libraries, as plain -l looks
1134 for shared libraries in preference over static\&. critcl handles
1135 it now, as older GNU ld's do not understand it, nor the
1136 various vendor-specific linkers\&.
1137 .IP [4]
1138 Fixed github issue #12\&. CriTcl now determines the version of
1139 MSVC in use and uses it to switch between various link debug
1140 options\&. Simplified the handling of bufferoverflowU\&.lib also,
1141 making use of the same mechanism and collapsing the two
1142 configurations sections we had back into one\&.
1143 .IP [5]
1144 Reworked the insertion of #line pragmas into the generated C
1145 code to avoid limitations on the line number argument imposed
1146 by various compilers, and be more accurate\&.
1147 .IP [6]
1148 Modified argument processing\&. Option -libdir now also
1149 implies -L for its argument\&.
1150 .IP [7]
1151 Extended handling of option -show (\fBcritcl::showconfig\fR)
1152 to list the path of the configuration file the data is coming
1153 from\&. Good for debugging configuration processing\&.
1154 .IP [8]
1155 Extended the build script with targets to regenerate the
1156 embedded documentation, and diagrams, and to generate a
1157 release\&.
1158 .PP
1159 .SH "CHANGES FOR VERSION 3\&.0\&.3"
1160 .IP [1]
1161 Fixed github issues 5 and 8, for the example build\&.tcl
1162 scripts\&. Working around a missing variable ::errorInfo\&. It should
1163 always be present, however there seem to be revisions of Tcl around
1164 which violate this assumption\&.
1165 .PP
1166 .SH "CHANGES FOR VERSION 3\&.0\&.2"
1167 .IP [1]
1168 Fixed issue in compile-and-run mode where commands put into the
1169 auto_index are not found by Tcl's [unknown] command\&.
1170 .IP [2]
1171 Fixed an array key mismatch breaking usage of client data and
1172 delete function for procedure\&. Reported by Jos DeCoster, with patch\&.
1173 .IP [3]
1174 Implemented a command line option \fB-L\fR, an equivalent of
1175 option \fB-I\fR, just for library search paths\&.
1176 .IP [4]
1177 Fixed github issues 5 and 8\&. Working around a missing variable
1178 ::errorInfo\&. It should always be present, however there seem to be
1179 revisions of Tcl around which violate this assumption\&.
1180 .PP
1181 .SH "CHANGES FOR VERSION 3\&.0\&.1"
1182 .IP [1]
1183 Bugfixes all around\&. In detail:
1184 .IP [2]
1185 Fixed recording of Tcl version requirements\&. Keep package name
1186 and version together, unbreaking generated meta data and generated
1187 package load command\&.
1188 .IP [3]
1189 Fixed the build scripts: When installing, or wrapping for TEA,
1190 generate any missing directories
1191 .IP [4]
1192 Modified the build scripts to properly exit the application
1193 when the window of their GUI is closed through the (X) button\&.
1194 .IP [5]
1195 Removed an 8\&.5-ism (open wb) which had slipped into the main
1196 build script\&.
1197 .IP [6]
1198 Modified the example build scripts to separate the output for
1199 the different examples (and packages) by adding empty lines\&.
1200 .IP [7]
1201 stack::c example bugfix: Include API declarations for use in
1202 the companion files\&.
1203 .IP [8]
1204 Extended the documentation: Noted the need for a working
1205 installation of a C compiler\&.
1206 .IP [9]
1207 Extended the Windows target definitions and code to handle the
1208 manifest files used by modern MS development environments\&. Note that
1209 this code handles both possibilities, environment using manifests, and
1210 (old(er)) environments without\&.
1211 .IP [10]
1212 Extended the Windows 64bit target definitions and code to
1213 auto-detect the need for the helper library "bufferoverflowU\&.lib" and
1214 reconfigure the compile and link commands appropriately\&. We assume
1215 that the library must be linked when present\&. This should be no harm
1216 if the library is present, yet not needed\&. Just superfluous\&. We search
1217 for the library in the paths specified by the environment variable
1218 LIB\&.
1219 .PP
1220 .SH "CHANGES FOR VERSION 3"
1221 .IP [1]
1222 The command \fBcritcl::platform\fR was deprecated in version
1223 2\&.1, superceded by \fBcritcl::targetplatform\fR, yet kept for
1224 compatibility\&. Now it has been removed\&.
1225 .IP [2]
1226 The command \fBcritcl::compiled\fR was kept with in version 2\&.1
1227 with semantics in contradiction to its, for compatibility\&. This
1228 contradiction has been removed, changing the visible semantics of the
1229 command to be in line with its name\&.
1230 .IP [3]
1231 The change to version 3 became necessary because of the two
1232 incompatible visible changes above\&.
1233 .IP [4]
1234 Extended the application package with code handling a new
1235 option \fB-tea\fR\&. Specifying this option invokes a special mode
1236 where critcl generates a TEA package, i\&.e\&. wraps the input into a
1237 directory hierarchy and support files which provide it TEA-lookalike
1238 buildsystem\&.
1239 .sp
1240 This new option, and \fB-pkg\fR, exclude each other\&. If
1241 both are specified the last used option takes precedence\&.
1242 .sp
1243 The generated package directory hierarchy is mostly
1244 self-contained, but not fully\&. It requires not only a working
1245 installation of Tcl, but also working installations of the packages
1246 \fBmd5\fR and \fBcmdline\fR\&. Both of these are provided by the
1247 \fBTcllib\fR bundle\&. Not required, but recommended to have
1248 installed are any of the packages which can accelerate md5's
1249 operation, i\&.e\&. \fBcryptkit\fR, \fBtcllibc\fR, or
1250 \fBTrf\fR\&.
1251 .IP [5]
1252 Extended the critcl package with a new command
1253 \fBcritcl::scan\fR taking the path to a "\fI\&.critcl\fR" file,
1254 statically scanning it, and returning license, version, a list of its
1255 companion files, list of imported APIs, and list of
1256 developer-specified custom configuration options\&. This data is the
1257 foundation for the TEA wrapping described above\&.
1258 .sp
1259 Note that this is a \fIstatic\fR scan\&. While the other build
1260 modes can (must) execute the "\fI\&.critcl\fR" file and make
1261 platform-specific decisions regarding the assembled C code, companion
1262 files, etc\&. the TEA wrap mode is not in a position to make
1263 platform-specific decisions\&. It has to wrap everything which might
1264 conceivably be needed when actually building\&. Hence the static scan\&.
1265 This has however its own set of problems, namely the inability to
1266 figure out any dynamic construction of companion file paths, at least
1267 on its own\&. Thus:
1268 .IP [6]
1269 Extended the API used by critcl-based packages with the command
1270 \fBcritcl::owns\fR\&. While this command is ignored by the regular build
1271 modes the static scanner described above takes its arguments as the
1272 names of companion files which have to be wrapped into the TEA package
1273 and could not be figured by the scanner otherwise, like because of
1274 dynamic paths to \fBcritcl::tsources\fR, \fBcritcl::csources\fR,
1275 getting sourced directly, or simply being adjunct datafiles\&.
1276 .IP [7]
1277 Extended the API used by critcl-based packages with the command
1278 \fBcritcl::api\fR for the management of stubs tables, be it their use,
1279 and/or declaration and export\&.
1280 .sp
1281 Please see section \fIStubs Table Management\fR of the
1282 \fBcritcl\fR package documentation for details\&.
1283 .IP [8]
1284 Extended the API used by critcl-based packages with the command
1285 \fBcritcl::userconfig\fR for the management of developer-specified
1286 custom configuration options, be it their use and/or declaration\&.
1287 .sp
1288 Please see section \fICustom Build Configuration\fR of the
1289 \fBcritcl\fR package documentation for details\&.
1290 .IP [9]
1291 Extended the API used by critcl-based packages with the
1292 commands \fBcritcl::description\fR, \fBcritcl::summary\fR,
1293 \fBcritcl::subject\fR, \fBcritcl::meta\fR, and
1294 \fBcritcl::buildrequirement\fR for the declaration of TEApot meta data
1295 for/about the package\&.
1296 .sp
1297 Please see section \fIPackage Meta Data\fR of the
1298 \fBcritcl\fR package documentation for details\&.
1299 .PP
1300 .SH "CHANGES FOR VERSION 2\&.1"
1301 .IP [1]
1302 Fixed bug where \fBcritcl::tsources\fR interpreted relative
1303 paths as relative to the current working directory instead of
1304 relative to the "\fI\&.critcl\fR" file using the command, as all other
1305 commands of this type do\&.
1306 .IP [2]
1307 Fixed internals, preventing information collected for multiple
1308 "\fI\&.critcl\fR" files to leak between them\&. Notably, \fBcritcl::tk\fR
1309 is not a global configuration option anymore\&.
1310 .IP [3]
1311 Fixed the command \fBcritcl::license\fR to be a null-operation
1312 in mode "compile & run", instead of throwing an error\&.
1313 .IP [4]
1314 Fixed the critcl application's interference with the "compile &
1315 run" result cache in \fB-pkg\fR mode by having it use a wholly
1316 separate (and by default transient) directory for that mode\&.
1317 .IP [5]
1318 Fixed bug where changes to a "\fI\&.critcl\fR" file did not result
1319 in a rebuild for mode "compile & run"\&. All relevant API commands now
1320 ensure UUID changes\&.
1321 .IP [6]
1322 Fixed bug in the backend handling of \fBcritcl::debug\fR where
1323 the companion c-sources of a "\fI\&.critcl\fR" file were not compiled
1324 with debug options, although the "\fI\&.critcl\fR" file was\&.
1325 .IP [7]
1326 Fixed bug in \fBcritcl::debug\fR which prevented recognition of
1327 mode "all" when it was not the first argument to the command\&.
1328 .IP [8]
1329 Fixed bug in "\fIpreload\&.c\fR" preventing its compilation on
1330 non-windows platforms\&.
1331 .IP [9]
1332 Fixed long-standing bug in the handling of namespace qualifiers
1333 in the command name argument of \fBcritcl::cproc\fR and
1334 \fBcritcl::ccommand\fR\&. It is now possible to specify a fully
1335 qualified command name without issues\&.
1336 .IP [10]
1337 Extended/reworked \fBcritcl::tsources\fR to be the canonical
1338 way of declaring "\fI\&.tcl\fR" companion files even for mode "compile &
1339 run"\&.
1340 .IP [11]
1341 Extended/reworked \fBcritcl::tsources\fR to allow the use of a
1342 "\fI\&.critcl\fR" file as its own Tcl companion file\&.
1343 .IP [12]
1344 Extended \fBcritcl::framework\fR to internally check for OS X
1345 build target, and to ignore the declaration if its not\&.
1346 .IP [13]
1347 Extended \fBcritcl::failed\fR to be callable more than once in
1348 a "\fI\&.critcl\fR" file\&. The first call forces the build, if it was not
1349 done already, to get the result\&. Further calls return the cached
1350 result of the first call\&.
1351 .IP [14]
1352 Extended the handling of environment variable CC in the code
1353 determining the compiler to use to deal with (i\&.e\&. remove) paths to
1354 the compiler, compiler file extensions, and compiler options specified
1355 after the compiler itself, leaving only the bare name of the compiler\&.
1356 .IP [15]
1357 Extended the code handling the search for preloaded libraries
1358 to print the paths it searched, making debugging of a search failure
1359 easier\&.
1360 .IP [16]
1361 A new command \fBcritcl::tcl\fR can be used to declare the
1362 version of Tcl minimally needed to build and run the "\fI\&.critcl\fR"
1363 file and package\&. Defaults to 8\&.4 if not declared\&. Extended critcl to
1364 have the stubs and headers for all of Tcl 8\&.4, 8\&.5, and 8\&.6\&.
1365 .IP [17]
1366 A new command \fBcritcl::load\fR forces the build and load of a
1367 "\fI\&.critcl\fR" file\&. This is the official way for overriding critcl's
1368 default lazy-build-&-load-on-demand scheme for mode "compile & run"\&.
1369 .sp
1370 \fINote\fR that after using \fBcritcl::load\fR /
1371 \fBcritcl::failed\fR in a "\fI\&.critcl\fR" file it is not possible to
1372 use critcl commands in that file anymore\&. Doing so will throw an
1373 error\&.
1374 .IP [18]
1375 Extended the generation of '#line' pragmas to use
1376 \fBinfo frame\fR (if available) to provide the C compiler with exact
1377 line numbers into the "\fI\&.critcl\fR" file for the reporting of
1378 warnings and errors\&.
1379 .IP [19]
1380 Extended \fBcritcl::check\fR with logging to help with
1381 debugging build-time checks of the environment, plus an additional
1382 optional argument to provide labeling\&.
1383 .IP [20]
1384 Added a new command \fBcritcl::checklink\fR which not only
1385 tries to check the environment via compiling the code, but also
1386 its linkability\&.
1387 .IP [21]
1388 Added a new command \fBcritcl::msg\fR for messaging, like
1389 command \fBcritcl::error\fR is for error reporting\&. Likewise this is a
1390 hook a user of the package is allowed to override\&. The default
1391 implementation, used by mode \fIcompile & run\fR does nothing\&. The
1392 implementation for mode \fIgenerate package\fR prints the message
1393 to stdout\&.
1394 .sp
1395 Envisioned use is for the reporting of results determined by
1396 \fBcritcl::check\fR and \fBcritcl::checklink\fR during building, to
1397 help with debugging when something goes wrong with a check\&.
1398 .IP [22]
1399 Exposed the argument processing internals of \fBcritcl::proc\fR
1400 for use by advanced users\&. The new commands are
1401 .RS
1402 .IP [1]
1403 \fBcritcl::argnames\fR
1404 .IP [2]
1405 \fBcritcl::argcnames\fR
1406 .IP [3]
1407 \fBcritcl::argcsignature\fR
1408 .IP [4]
1409 \fBcritcl::argvardecls\fR
1410 .IP [5]
1411 \fBcritcl::argconversion\fR
1412 .RE
1413 .IP
1414 Please see section \fIAdvanced Embedded C Code\fR of the
1415 \fBcritcl\fR package documentation for details\&.
1416 .IP [23]
1417 Extended the critcl package to intercept \fBpackage
1418 provide\fR and record the file -> package name mapping\&. Plus other
1419 internal changes now allow the use of namespaced package names while
1420 still using proper path names and init function\&.
1421 .IP [24]
1422 Dropped the unused commands \fBcritcl::optimize\fR and
1423 \fBcritcl::include\fR\&.
1424 .IP [25]
1425 Dropped \fB-lib\fR mode from the critcl application\&.
1426 .IP [26]
1427 Dropped remnants of support for Tcl 8\&.3 and before\&.
1428 .PP
1429 .SH AUTHORS
1430 Jean Claude Wippler, Steve Landers, Andreas Kupries
1431 .SH "BUGS, IDEAS, FEEDBACK"
1432 This document, and the package it describes, will undoubtedly contain
1433 bugs and other problems\&.
1434 Please report them at \fIhttps://github\&.com/andreas-kupries/critcl/issues\fR\&.
1435 Ideas for enhancements you may have for either package, application,
1436 and/or the documentation are also very welcome and should be reported
1437 at \fIhttps://github\&.com/andreas-kupries/critcl/issues\fR as well\&.
1438 .SH KEYWORDS
1439 C code, Embedded C Code, calling C code from Tcl, code generator, compile & run, compiler, dynamic code generation, dynamic compilation, generate package, linker, on demand compilation, on-the-fly compilation
1440 .SH CATEGORY
1441 Glueing/Embedded C code
1442 .SH COPYRIGHT
1443 .nf
1444 Copyright (c) Jean-Claude Wippler
1445 Copyright (c) Steve Landers
1446 Copyright (c) 2011-2024 Andreas Kupries
1447
1448 .fi