TITLE
TclLibrary.pir - NCI interface to Tcl language (http://www.tcl.tk)
DESCRIPTION
This module implements Tcl/Tk interface for Parrot.
TODO
- Tcl_GetStringFromObj - check its declaration and usage
func = dlfunc libtcl, "Tcl_GetStringFromObj", "tpp" # should be "tp3"
- _init Performs the initialization of Tcl bridge, namely instantiates TclLibrary class
- _init_tclobj
- pmc _pmc_from_tclobj(pmc interp, pmc tclobj) This is a (static) funciton that will convert Tcl object to pmc
- _load_lib_with_fallbacks(string friendly_name, pmc fallback_list) This function is more generally useful than just for this module -- it implements the search for a particular libary that may appear under any of several different filenames. The
- creates a helper for Tcl_Obj struct # do the tcl.h adoptations
fallback_list
should be a simple array of strings, each naming one of the possible filenames, without the trailing shared library extension (e.g. .dll
or .so
). The friendly_name
is only used to fill in the error message in case no match can be found on the system.BORROWED from OpenGL.pir - keep an eye on it (e.g. if it will be organized elsewhere - reuse it from there)SEE ALSO
AUTHORS
TBD
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
- Around line 116: '=item' outside of any '=over'
- Around line 239: Unknown directive: =comment
- Around line 408: You forgot a '=back' before '=head1'