home · contact · privacy
9733d391ccbc0b9996d067b84a4938795ba11d53
[plomrogue] / src / client / misc.h
1 /* src/client/misc.h
2  *
3  * Miscellaneous routines that have not yet found a proper parent module. Having
4  * LOTS of stuff in here is a sure sign that better modularization is in order.
5  */
6
7 #ifndef MISC_H
8 #define MISC_H
9
10 #include <stddef.h> /* size_t */
11 #include <stdint.h> /* uint32_t */
12
13
14
15 /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */
16 extern void nav_inventory(char dir);
17
18 /* Append to array pointed to by "ptr_old_array" of "old_n" elements of
19  * "region_size" "new region".
20  */
21 extern void array_append(uint32_t old_n, size_t region_size, void * new_region,
22                          void ** ptr_old_array);
23
24
25
26 #endif