File: second.inc

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 (35 lines) | stat: -rw-r--r-- 1,004 bytes parent folder | download
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
33
34
35
[comment {-*- mode: tcl ; fill-column: 90 -*-}]

To create a minimal package wrapping an external library

[list_begin enumerated]

[enum] Choose a directory to develop in and make it the working directory.

This should not be a checkout of [vset critcl] itself.

[enum] Save the following example to a file. In the following it is assumed that the file
was named [file example.tcl].

[example_begin]
[include second_pkg.inc]
[example_end]

[enum] Build the package. See the [sectref {The First Package - Basics} Basics], if necessary.

[enum] Load the package and invoke the commands.

[para] [emph Attention]. The commands take and return binary data.

This may look very bad in the terminal.

[enum] To test the commands enter
[example {
    set a [compress {hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhello wwwwwwwworld}]

    decompress $a
}] in the interactive [syscmd tclsh]

[list_end]

[para] New commands: [term critcl::cheaders], [term critcl::clibraries], [term critcl::include].