non-macro array, use _locate in _insert

This commit is contained in:
Gregory Burd 2024-03-20 12:18:46 -04:00
parent 66b2dda55c
commit 448aa42e6c
3 changed files with 529 additions and 484 deletions

View file

@ -99,10 +99,10 @@ IndentPPDirectives: None
Language: Cpp Language: Cpp
NamespaceIndentation: None NamespaceIndentation: None
PointerAlignment: Right PointerAlignment: Right
ContinuationIndentWidth: 2 ContinuationIndentWidth: 4
IndentWidth: 2 IndentWidth: 4
TabWidth: 2 TabWidth: 4
ColumnLimit: 80 ColumnLimit: 160
UseTab: Never UseTab: Never
SpaceAfterCStyleCast: false SpaceAfterCStyleCast: false
IncludeBlocks: Regroup IncludeBlocks: Regroup

View file

@ -4,7 +4,10 @@
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h>
#include <unistd.h>
#define SKIPLIST_MAX_HEIGHT 12
#include "../include/sl.h" #include "../include/sl.h"
/* /*
@ -99,7 +102,7 @@ main()
rc = ENOMEM; rc = ENOMEM;
goto fail; goto fail;
} }
rc = api_skip_init_slex(list, 12, 4, __slm_key_compare); rc = api_skip_init_slex(list, 12, __slm_key_compare);
if (rc) if (rc)
return rc; return rc;

File diff suppressed because it is too large Load diff