Fossil SCM
Change the name of a new TH1 function to help clarify its purpose.
Commit
22b3d0b6ab7b60568d49e3075f2e57ef22328eb7
Parent
810e6c1e687c161…
1 file changed
+4
-4
M
src/th.c
+4
-4
| --- src/th.c | ||
| +++ src/th.c | ||
| @@ -92,11 +92,11 @@ | ||
| 92 | 92 | }; |
| 93 | 93 | |
| 94 | 94 | /* |
| 95 | 95 | ** This structure is used to pass complete context information to the |
| 96 | 96 | ** hash iteration callback functions that need a Th_Interp and a list |
| 97 | -** to operate on, e.g. thListAppend(). | |
| 97 | +** to operate on, e.g. thListAppendHashKey(). | |
| 98 | 98 | */ |
| 99 | 99 | struct Th_InterpAndList { |
| 100 | 100 | Th_Interp *interp; /* Associated interpreter context */ |
| 101 | 101 | char **pzList; /* IN/OUT: Ptr to ptr to list */ |
| 102 | 102 | int *pnList; /* IN/OUT: Current length of *pzList */ |
| @@ -319,11 +319,11 @@ | ||
| 319 | 319 | ** |
| 320 | 320 | ** Argument pContext is a pointer to the Th_InterpAndList structure. |
| 321 | 321 | ** |
| 322 | 322 | ** Always returns non-zero. |
| 323 | 323 | */ |
| 324 | -static int thListAppend(Th_HashEntry *pEntry, void *pContext){ | |
| 324 | +static int thListAppendHashKey(Th_HashEntry *pEntry, void *pContext){ | |
| 325 | 325 | Th_InterpAndList *pInterpAndList = (Th_InterpAndList *)pContext; |
| 326 | 326 | Th_ListAppend(pInterpAndList->interp, pInterpAndList->pzList, |
| 327 | 327 | pInterpAndList->pnList, pEntry->zKey, pEntry->nKey); |
| 328 | 328 | return 1; |
| 329 | 329 | } |
| @@ -2872,11 +2872,11 @@ | ||
| 2872 | 2872 | interp, sizeof(Th_InterpAndList) |
| 2873 | 2873 | ); |
| 2874 | 2874 | p->interp = interp; |
| 2875 | 2875 | p->pzList = pzList; |
| 2876 | 2876 | p->pnList = pnList; |
| 2877 | - Th_HashIterate(interp, interp->paCmd, thListAppend, p); | |
| 2877 | + Th_HashIterate(interp, interp->paCmd, thListAppendHashKey, p); | |
| 2878 | 2878 | Th_Free(interp, p); |
| 2879 | 2879 | return TH_OK; |
| 2880 | 2880 | } |
| 2881 | 2881 | |
| 2882 | 2882 | /* |
| @@ -2891,12 +2891,12 @@ | ||
| 2891 | 2891 | interp, sizeof(Th_InterpAndList) |
| 2892 | 2892 | ); |
| 2893 | 2893 | p->interp = interp; |
| 2894 | 2894 | p->pzList = pzList; |
| 2895 | 2895 | p->pnList = pnList; |
| 2896 | - Th_HashIterate(interp, pFrame->paVar, thListAppend, p); | |
| 2896 | + Th_HashIterate(interp, pFrame->paVar, thListAppendHashKey, p); | |
| 2897 | 2897 | Th_Free(interp, p); |
| 2898 | 2898 | return TH_OK; |
| 2899 | 2899 | }else{ |
| 2900 | 2900 | return TH_ERROR; |
| 2901 | 2901 | } |
| 2902 | 2902 | } |
| 2903 | 2903 |
| --- src/th.c | |
| +++ src/th.c | |
| @@ -92,11 +92,11 @@ | |
| 92 | }; |
| 93 | |
| 94 | /* |
| 95 | ** This structure is used to pass complete context information to the |
| 96 | ** hash iteration callback functions that need a Th_Interp and a list |
| 97 | ** to operate on, e.g. thListAppend(). |
| 98 | */ |
| 99 | struct Th_InterpAndList { |
| 100 | Th_Interp *interp; /* Associated interpreter context */ |
| 101 | char **pzList; /* IN/OUT: Ptr to ptr to list */ |
| 102 | int *pnList; /* IN/OUT: Current length of *pzList */ |
| @@ -319,11 +319,11 @@ | |
| 319 | ** |
| 320 | ** Argument pContext is a pointer to the Th_InterpAndList structure. |
| 321 | ** |
| 322 | ** Always returns non-zero. |
| 323 | */ |
| 324 | static int thListAppend(Th_HashEntry *pEntry, void *pContext){ |
| 325 | Th_InterpAndList *pInterpAndList = (Th_InterpAndList *)pContext; |
| 326 | Th_ListAppend(pInterpAndList->interp, pInterpAndList->pzList, |
| 327 | pInterpAndList->pnList, pEntry->zKey, pEntry->nKey); |
| 328 | return 1; |
| 329 | } |
| @@ -2872,11 +2872,11 @@ | |
| 2872 | interp, sizeof(Th_InterpAndList) |
| 2873 | ); |
| 2874 | p->interp = interp; |
| 2875 | p->pzList = pzList; |
| 2876 | p->pnList = pnList; |
| 2877 | Th_HashIterate(interp, interp->paCmd, thListAppend, p); |
| 2878 | Th_Free(interp, p); |
| 2879 | return TH_OK; |
| 2880 | } |
| 2881 | |
| 2882 | /* |
| @@ -2891,12 +2891,12 @@ | |
| 2891 | interp, sizeof(Th_InterpAndList) |
| 2892 | ); |
| 2893 | p->interp = interp; |
| 2894 | p->pzList = pzList; |
| 2895 | p->pnList = pnList; |
| 2896 | Th_HashIterate(interp, pFrame->paVar, thListAppend, p); |
| 2897 | Th_Free(interp, p); |
| 2898 | return TH_OK; |
| 2899 | }else{ |
| 2900 | return TH_ERROR; |
| 2901 | } |
| 2902 | } |
| 2903 |
| --- src/th.c | |
| +++ src/th.c | |
| @@ -92,11 +92,11 @@ | |
| 92 | }; |
| 93 | |
| 94 | /* |
| 95 | ** This structure is used to pass complete context information to the |
| 96 | ** hash iteration callback functions that need a Th_Interp and a list |
| 97 | ** to operate on, e.g. thListAppendHashKey(). |
| 98 | */ |
| 99 | struct Th_InterpAndList { |
| 100 | Th_Interp *interp; /* Associated interpreter context */ |
| 101 | char **pzList; /* IN/OUT: Ptr to ptr to list */ |
| 102 | int *pnList; /* IN/OUT: Current length of *pzList */ |
| @@ -319,11 +319,11 @@ | |
| 319 | ** |
| 320 | ** Argument pContext is a pointer to the Th_InterpAndList structure. |
| 321 | ** |
| 322 | ** Always returns non-zero. |
| 323 | */ |
| 324 | static int thListAppendHashKey(Th_HashEntry *pEntry, void *pContext){ |
| 325 | Th_InterpAndList *pInterpAndList = (Th_InterpAndList *)pContext; |
| 326 | Th_ListAppend(pInterpAndList->interp, pInterpAndList->pzList, |
| 327 | pInterpAndList->pnList, pEntry->zKey, pEntry->nKey); |
| 328 | return 1; |
| 329 | } |
| @@ -2872,11 +2872,11 @@ | |
| 2872 | interp, sizeof(Th_InterpAndList) |
| 2873 | ); |
| 2874 | p->interp = interp; |
| 2875 | p->pzList = pzList; |
| 2876 | p->pnList = pnList; |
| 2877 | Th_HashIterate(interp, interp->paCmd, thListAppendHashKey, p); |
| 2878 | Th_Free(interp, p); |
| 2879 | return TH_OK; |
| 2880 | } |
| 2881 | |
| 2882 | /* |
| @@ -2891,12 +2891,12 @@ | |
| 2891 | interp, sizeof(Th_InterpAndList) |
| 2892 | ); |
| 2893 | p->interp = interp; |
| 2894 | p->pzList = pzList; |
| 2895 | p->pnList = pnList; |
| 2896 | Th_HashIterate(interp, pFrame->paVar, thListAppendHashKey, p); |
| 2897 | Th_Free(interp, p); |
| 2898 | return TH_OK; |
| 2899 | }else{ |
| 2900 | return TH_ERROR; |
| 2901 | } |
| 2902 | } |
| 2903 |