Skip to content
Snippets Groups Projects
Commit 36edd68a authored by Oliver Sander's avatar Oliver Sander
Browse files

Use enum type BTreeConstant instead of int for variables that store only such enum values

It makes the code and the debugger output easier to read.
parent 6aed9d17
No related branches found
No related tags found
No related merge requests found
...@@ -652,11 +652,12 @@ static void Method(FreeIndex) (ParamThis, int idx) ...@@ -652,11 +652,12 @@ static void Method(FreeIndex) (ParamThis, int idx)
} }
static int Method(Insert) (ParamThis, static BTreeConstant Method(Insert) (ParamThis,
/*Compare_Method cmp_func,*/ /*Compare_Method cmp_func,*/
CN(BTreeOf) *item) CN(BTreeOf) *item)
{ {
int i, ret, nData = This->nSons-1; int i, nData = This->nSons-1;
BTreeConstant ret;
/* find position in node */ /* find position in node */
if (nData < 4) if (nData < 4)
...@@ -887,7 +888,7 @@ void Method(Reset) (ParamThis) ...@@ -887,7 +888,7 @@ void Method(Reset) (ParamThis)
int Method(Insert) (ParamThis, CN(BTreeOf) *item) int Method(Insert) (ParamThis, CN(BTreeOf) *item)
{ {
int ret; BTreeConstant ret;
if (This->root==NULL) if (This->root==NULL)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment