This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # IMPORTANT: | |
| # note to get correct results you should warm up Tcl and Python, | |
| # so better execute it 3 times before you take results for | |
| # the comparison | |
| ## ============================================================ | |
| ## Tcl | |
| ## ============================================================ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## ------------------------------------------------------------------------------- | |
| ## ::uuid -- Generate UUID | |
| ## | |
| ## Example illustrating how simple one can create C-binding within tcl using ffidl | |
| ## ------------------------------------------------------------------------------- | |
| # ::uuid creator (with on demand binding): | |
| proc ::uuid {args} { | |
| # create _fdl_uuid binding to UuidCreate : | |
| ffidl::callout ::_fdl_uuid {pointer-var} int [ffidl::symbol rpcrt4.dll UuidCreate] stdcall |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * json-encode.c -- | |
| * | |
| * Small module to get native json escape in tcl. | |
| * | |
| * Compile: | |
| * mingw: gcc -O2 -DUSE_TCL_STUBS=1 -I$tcl/win -I$tcl/generic json-encode.c -shared -o json.dll libtclstub87.a | |
| * *nix: gcc -O2 -DUSE_TCL_STUBS=1 -I$tcl/unix -I$tcl/generic json-encode.c -shared -o json.so libtclstub87.a | |
| * | |
| * Usage: |
NewerOlder