File: README.txt

package info (click to toggle)
critcl 3.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,680 kB
  • sloc: ansic: 41,058; tcl: 12,090; sh: 7,230; pascal: 3,456; asm: 3,058; ada: 1,681; cpp: 1,001; cs: 879; makefile: 333; perl: 104; xml: 95; f90: 10
file content (32 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Example of critcl-based packages.

A larger example written to demonstrate

	Export of an API as Tcl stubs table	(Package "cstack")
	Import of an API defined as stubs-table	(Package "stackc")

	Easy writing of C classes, with class and instances
	represented as commands, through the utility package
	critcl::class

Package "cstack" also demonstrate the export of a companion header
file containing declarations of package specific data structures and
macros which are not expressible in the basic .decls file and header
derived from it, plus, incidentally, the separation of public and
internal headers.

Package "stackc" incidentially also demonstrates the use of companion
.c and .h files in the implementation of a package.

Sources
	Package	"cstack":	cstack.tcl, cstack.c, cstack.h, cstackInt.h
	Package "stackc":	stackc.tcl, stackc/*.[ch]

Notes:

*	"cstack" implements an abstract stack data type and exports
	a C-level API for it, as a stubs table.

*	"stackc" wraps the abstract stack data type of "cstack" into
	a Tcl class/object system where stacks are objects, each
	represented as a Tcl command.