Differences From Artifact [7be7436122]:
- File
kitdll/buildsrc/kitdll-0.0/vfs_kitdll_data.c
— part of check-in
[a85a20ac7a]
at
2010-09-26 04:51:22
on branch trunk
— Implemented vfs::kitdll::data::getData
Fixed references to Tcl_SetResult() to use TCL_STATIC as freeProc (user: rkeene, size: 7387) [annotate] [blame] [check-ins using]
To Artifact [78ff5be79c]:
- File kitdll/buildsrc/kitdll-0.0/vfs_kitdll_data.c — part of check-in [e4de9a2934] at 2010-09-26 04:51:35 on branch trunk — Updated to create loadable filesystem by including C-Tcl interface when creating C version of directory tree (dir2c) (user: rkeene, size: 6378) [annotate] [blame] [check-ins using]
|
| < < < < < > | < < < < < < < < | < < < | | < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include <tcl.h> #include <stdlib.h> typedef struct kitdll_data *(cmd_getData_t)(const char *, unsigned long); typedef unsigned long (cmd_getChildren_t)(const char *, unsigned long *, unsigned long); /* Your implementation must provide these */ static cmd_getData_t *getCmdData(const char *hashkey); static cmd_getChildren_t *getCmdChildren(const char *hashkey); /* Tcl Commands */ static int getMetadata(ClientData cd, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[]) { cmd_getData_t *cmd_getData; cmd_getChildren_t *cmd_getChildren; struct kitdll_data *finfo = NULL; Tcl_Obj *ret_list, *ret_list_items[20]; unsigned long num_children; const char *hashkey; |
︙ | ︙ | |||
279 280 281 282 283 284 285 | free(children); Tcl_SetObjResult(interp, ret_list); return(TCL_OK); } | < < < < < < < < < < < < < < < < < < < < < < < < | 261 262 263 264 265 266 267 | free(children); Tcl_SetObjResult(interp, ret_list); return(TCL_OK); } |