Move, rename, and comment out unused function

This commit is contained in:
Pasi Kallinen
2020-03-16 11:46:08 +02:00
parent 9862d2c934
commit 712f545119
3 changed files with 20 additions and 19 deletions

View File

@@ -73,6 +73,7 @@
void strbuf_nl_to_crlf (strbuf_t *)
char * nonconst (const char *, char *)
int swapbits (int, int, int)
UNUSED void shuffle_int_array (int *, int)
=*/
#ifdef LINT
#define Static /* pacify lint */
@@ -1301,4 +1302,23 @@ int val, bita, bitb;
return (val ^ ((tmp << bita) | (tmp << bitb)));
}
#if 0
/* randomize the given list of numbers 0 <= i < count */
static void
shuffle_int_array(indices, count)
int *indices;
int count;
{
int i, iswap, temp;
for (i = count - 1; i > 0; i--) {
if ((iswap = rn2(i + 1)) == i)
continue;
temp = indices[i];
indices[i] = indices[iswap];
indices[iswap] = temp;
}
}
#endif
/*hacklib.c*/