Differences From Artifact [2abe3f3d6c]:
- File src/th.h — part of check-in [36f0e47b32] at 2017-10-04 05:35:42 on branch trunk — Improvement to TH_RETURN handling needed for TH1 hooks. Update and correct TH1 hook tests. Add draft documentation for TH1 hooks. (user: mistachkin size: 6067) [more...]
To Artifact [41356351a6]:
- File src/th.h — part of check-in [9b4f2d8e98] at 2021-01-27 13:32:29 on branch trunk — More TH1 performance optimizations: Go directly to malloc() rather than through the Th_Malloc() intermediary. (user: drh size: 6220) [more...]
| ︙ | ︙ | |||
19 20 21 22 23 24 25 | ** Opaque handle for interpeter. */ typedef struct Th_Interp Th_Interp; /* ** Create and delete interpreters. */ | | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ** Opaque handle for interpeter. */ typedef struct Th_Interp Th_Interp; /* ** Create and delete interpreters. */ Th_Interp * Th_CreateInterp(void); void Th_DeleteInterp(Th_Interp *); /* ** Evaluate an TH program in the stack frame identified by parameter ** iFrame, according to the following rules: ** ** * If iFrame is 0, this means the current frame. |
| ︙ | ︙ | |||
119 120 121 122 123 124 125 | */ int Th_ErrorMessage(Th_Interp *, const char *, const char *, int); /* ** Access the memory management functions associated with the specified ** interpreter. */ | > > > | > | | 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | */ int Th_ErrorMessage(Th_Interp *, const char *, const char *, int); /* ** Access the memory management functions associated with the specified ** interpreter. */ void *fossil_malloc_zero(size_t); void *fossil_realloc(void*,size_t); void fossil_free(void*); #define Th_Malloc(I,N) fossil_malloc_zero(N) #define Th_Realloc(I,P,N) fossil_realloc(P,N) #define Th_Free(I,P) fossil_free(P) /* ** Functions for handling TH lists. */ int Th_ListAppend(Th_Interp *, char **, int *, const char *, int); int Th_SplitList(Th_Interp *, const char *, int, char ***, int **, int *); |
| ︙ | ︙ |