TclLibrary.pir - NCI interface to Tcl language (http://www.tcl.tk)
This module implements Tcl/Tk interface for Parrot.
func = dlfunc libtcl, "Tcl_GetStringFromObj", "tpp" # should be "tp3"
Performs the initialization of Tcl bridge, namely instantiates TclLibrary class
- creates a helper for Tcl_Obj struct # do the tcl.h adaptations
This is a (static) function that will convert Tcl object to pmc
This function is more generally useful than just for this module -- it implements the search for a particular library that may appear under any of several different filenames. The
fallback_list should be a simple array of strings, each naming one of the possible filenames, without the trailing shared library extension (e.g.
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)