Inline-Tcl
view release on metacpan or search on metacpan
PROTOTYPES: DISABLE
void
_Inline_parse_tcl_namespace()
PREINIT:
Tcl_Obj *listPtr, *elemObjPtr;
Tcl_Obj **objvPtr;
char *result;
int objc,i;
AV* functions = newAV();
PPCODE:
/*
* Get the pattern and find the "effective namespace" in which to
* list commands.
*/
if (TCL_ERROR == Tcl_Eval(interp, "info commands") ) {
PERROR("Namespace: Eval Error\n");
}
listPtr = Tcl_GetObjResult(interp);
_eval_tcl_function(PKG, FNAME...)
char* PKG;
char* FNAME;
PREINIT:
int i;
char *result;
SV* ret = NULL;
char *command;
int cmdlen;
int len;
PPCODE:
cmdlen = 0;
for (i=1; i<items; i++) {
result = Pl2Tcl(ST(i));
if (result) {
len = strlen(result);
cmdlen += len;
}
}
( run in 1.453 second using v1.01-cache-2.11-cpan-5511b514fd6 )