Fossil SCM

Change the name of a new TH1 function to help clarify its purpose.

mistachkin 2015-04-05 19:37 UTC trunk
Commit 22b3d0b6ab7b60568d49e3075f2e57ef22328eb7
1 file changed +4 -4
+4 -4
--- src/th.c
+++ src/th.c
@@ -92,11 +92,11 @@
9292
};
9393
9494
/*
9595
** This structure is used to pass complete context information to the
9696
** 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().
9898
*/
9999
struct Th_InterpAndList {
100100
Th_Interp *interp; /* Associated interpreter context */
101101
char **pzList; /* IN/OUT: Ptr to ptr to list */
102102
int *pnList; /* IN/OUT: Current length of *pzList */
@@ -319,11 +319,11 @@
319319
**
320320
** Argument pContext is a pointer to the Th_InterpAndList structure.
321321
**
322322
** Always returns non-zero.
323323
*/
324
-static int thListAppend(Th_HashEntry *pEntry, void *pContext){
324
+static int thListAppendHashKey(Th_HashEntry *pEntry, void *pContext){
325325
Th_InterpAndList *pInterpAndList = (Th_InterpAndList *)pContext;
326326
Th_ListAppend(pInterpAndList->interp, pInterpAndList->pzList,
327327
pInterpAndList->pnList, pEntry->zKey, pEntry->nKey);
328328
return 1;
329329
}
@@ -2872,11 +2872,11 @@
28722872
interp, sizeof(Th_InterpAndList)
28732873
);
28742874
p->interp = interp;
28752875
p->pzList = pzList;
28762876
p->pnList = pnList;
2877
- Th_HashIterate(interp, interp->paCmd, thListAppend, p);
2877
+ Th_HashIterate(interp, interp->paCmd, thListAppendHashKey, p);
28782878
Th_Free(interp, p);
28792879
return TH_OK;
28802880
}
28812881
28822882
/*
@@ -2891,12 +2891,12 @@
28912891
interp, sizeof(Th_InterpAndList)
28922892
);
28932893
p->interp = interp;
28942894
p->pzList = pzList;
28952895
p->pnList = pnList;
2896
- Th_HashIterate(interp, pFrame->paVar, thListAppend, p);
2896
+ Th_HashIterate(interp, pFrame->paVar, thListAppendHashKey, p);
28972897
Th_Free(interp, p);
28982898
return TH_OK;
28992899
}else{
29002900
return TH_ERROR;
29012901
}
29022902
}
29032903
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button