Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
38136323
Commit
38136323
authored
Jun 06, 2002
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
insertionsort() is no longer used directly; comment it out.
parent
ce3858af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/BTrees/sorters.c
src/BTrees/sorters.c
+7
-1
No files found.
src/BTrees/sorters.c
View file @
38136323
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
****************************************************************************/
****************************************************************************/
/* Revision information: $Id: sorters.c,v 1.
2 2002/05/31 00:21:54
tim_one Exp $ */
/* Revision information: $Id: sorters.c,v 1.
3 2002/06/06 19:30:42
tim_one Exp $ */
/* The only routine here intended to be used outside the file is
/* The only routine here intended to be used outside the file is
size_t sort_int4_nodups(int *p, size_t n)
size_t sort_int4_nodups(int *p, size_t n)
...
@@ -268,6 +268,11 @@ uniq(element_type *out, element_type *in, size_t n)
...
@@ -268,6 +268,11 @@ uniq(element_type *out, element_type *in, size_t n)
return
pout
-
out
;
return
pout
-
out
;
}
}
#if 0
/* insertionsort is no longer referenced directly, but I'd like to keep
* the code here just in case.
*/
/* Straight insertion sort of the n elements starting at 'in'. */
/* Straight insertion sort of the n elements starting at 'in'. */
static void
static void
insertionsort(element_type *in, size_t n)
insertionsort(element_type *in, size_t n)
...
@@ -306,6 +311,7 @@ insertionsort(element_type *in, size_t n)
...
@@ -306,6 +311,7 @@ insertionsort(element_type *in, size_t n)
}
}
}
}
}
}
#endif
/* The maximum number of elements in the pending-work stack quicksort
/* The maximum number of elements in the pending-work stack quicksort
maintains. The maximum stack depth is approximately log2(n), so
maintains. The maximum stack depth is approximately log2(n), so
...
...
Write
Preview
Markdown
is supported
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