non-macro array, use _locate in _insert
This commit is contained in:
parent
66b2dda55c
commit
448aa42e6c
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
1000
include/sl.h
1000
include/sl.h
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue