You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2008/11/13 23:32:27 UTC
DO NOT REPLY [Bug 46205] New: Extend apr_array with a function to
shuffle members
https://issues.apache.org/bugzilla/show_bug.cgi?id=46205
Summary: Extend apr_array with a function to shuffle members
Product: APR
Version: HEAD
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: jacob.rief@gmail.com
Created an attachment (id=22862)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=22862)
Just a file with a short function
Since I had the need for a function, which shuffles members of an apr_array_t,
I have written one which conforms to the style of apr and which could be added
to a future version of the library. The prototype of this functions looks like:
/**
* Shuffle the content of an array.
* @param p The pool to allocate the copy of the array out of.
* @param sorted The sorted array.
* @return An array of the same size with its elements shuffled randomly.
**/
extern APR_DECLARE(apr_array_header_t *)
apr_array_shuffle_ext(apr_pool_t * p, const apr_array_header_t * sorted);
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46205] Extend apr_array with a function to shuffle
members
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46205
--- Comment #1 from Jacob Rief <ja...@gmail.com> 2009-03-31 14:41:45 PST ---
A newer version:
http://modicpquery.googlecode.com/svn/trunk/mod_icpquery/apr_ext.c
http://modicpquery.googlecode.com/svn/trunk/mod_icpquery/apr_ext.h
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 46205] Extend apr_array with a function to shuffle
members
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46205
Neil Conway <nr...@cs.berkeley.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org