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 */
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*/
static void FDECL(stripspe, (struct obj *));
static void FDECL(p_glow1, (struct obj *));
static void FDECL(p_glow2, (struct obj *, const char *));
-static void FDECL(randomize, (int *, int));
static void FDECL(forget, (int));
static int FDECL(maybe_tame, (struct monst *, struct obj *));
static boolean FDECL(get_valid_stinking_cloud_pos, (int, int));
}
}
-/* randomize the given list of numbers 0 <= i < count */
-static void
-randomize(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;
- }
-}
-
/*
* Forget some things (e.g. after reading a scroll of amnesia). When called,
* the following are always forgotten: