Creating glue code for the LibWWW
The glue code itself follows a standard format:
int function_name_tcl(ClientData clientData, Tcl_Interp *interp,
int argc, char **argv) {
if (argc == 2) {
char *str = argv[1];
....variable initialization....
....function calls...
Tcl_AppendResult(interp, result, NULL);
return TCL_OK;
}
else {
....alert user to improper function call - wrong number of arguments?
return TCL_ERROR;
}
}
The tcl function can be broken up into a number of possible parts:
This is only used if there are data structures that can't
be represented by the siable in ./usr/share/doc/libwww-doc/html/Library/Test/ 0040755 0000000 0000000 00000000000 07503632551 017750 5 ustar root root ./usr/share/doc/libwww-doc/html/Library/Test/User/ 0040755 0000000 0000000 00000000000 07503632551 020666 5 ustar root root ./usr/share/doc/libwww-doc/html/Library/Test/User/running.html 0100644 0000000 0000000 00000001602 07503632574 023235 0 ustar root root
We use the GNU standard setup with Automake and DejaGnu. If you have installed
dejagnu into the path, you're set. Otherwise, make sure you set the proper
environment variables.
Installing and Running the
Tests
If you want to specify a module, edit the makefile and replace the TEST_FILES
variable to the specific script.
Running the Function Testing
alian@mit.edu (neon@w3.org) Alexander Lian. August 20.1996
./usr/share/doc/libwww-doc/html/Library/Test/User/tests.html 0100644 0000000 0000000 00000011571 07503632574 022725 0 ustar root root
Creating glue code for the LibWWW