Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
5f682934
Commit
5f682934
authored
Sep 10, 2011
by
Hallvard Furuseth
Browse files
explain mdl_midl_sort() istack size
parent
2d1f3b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/midl.c
View file @
5f682934
...
...
@@ -15,6 +15,7 @@
* <http://www.OpenLDAP.org/license.html>.
*/
#include
<limits.h>
#include
<string.h>
#include
<sys/types.h>
#include
<assert.h>
...
...
@@ -134,7 +135,8 @@ int mdb_midl_append( IDL ids, ID id )
void
mdb_midl_sort
(
ID
*
ids
)
{
int
istack
[
16
*
sizeof
(
int
)];
/* Max possible depth of int-indexed tree * 2 items/level */
int
istack
[
sizeof
(
int
)
*
CHAR_BIT
*
2
];
int
i
,
j
,
k
,
l
,
ir
,
jstack
;
ID
a
,
itmp
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment