Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Modify TH1/Tcl integration macros to avoid using a generic variable name. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
63a9998ca1b42db409f08bca3a8d3146 |
| User & Date: | mistachkin 2013-10-27 04:48:09.427 |
Context
|
2013-10-27
| ||
| 09:44 | Added fx_* to the glob of tables which are _not_ dropped by a rebuild, per ML discussion. The intention is to give 3rd-party extensions a safe place to put their data. check-in: dbec64585a user: stephan tags: trunk | |
| 04:48 | Modify TH1/Tcl integration macros to avoid using a generic variable name. check-in: 63a9998ca1 user: mistachkin tags: trunk | |
| 01:18 | Prevent incorrect attachment links from appearing on the timeline. Reported via the mailing list. check-in: 359399307e user: mistachkin tags: trunk | |
Changes
Changes to src/th_tcl.c.
| ︙ | ︙ | |||
28 29 30 31 32 33 34 | /* ** These macros are designed to reduce the redundant code required to marshal ** arguments from TH1 to Tcl. */ #define USE_ARGV_TO_OBJV() \ int objc; \ Tcl_Obj **objv; \ | | | | | | | | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
/*
** These macros are designed to reduce the redundant code required to marshal
** arguments from TH1 to Tcl.
*/
#define USE_ARGV_TO_OBJV() \
int objc; \
Tcl_Obj **objv; \
int obji;
#define COPY_ARGV_TO_OBJV() \
objc = argc-1; \
objv = (Tcl_Obj **)ckalloc((unsigned)(objc * sizeof(Tcl_Obj *))); \
for(obji=1; obji<argc; obji++){ \
objv[obji-1] = Tcl_NewStringObj(argv[obji], argl[obji]); \
Tcl_IncrRefCount(objv[obji-1]); \
}
#define FREE_ARGV_TO_OBJV() \
for(obji=1; obji<argc; obji++){ \
Tcl_DecrRefCount(objv[obji-1]); \
} \
ckfree((char *)objv);
/*
** Fetch the Tcl interpreter from the specified void pointer, cast to a Tcl
** context.
*/
#define GET_CTX_TCL_INTERP(ctx) \
|
| ︙ | ︙ |