X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Fmisc.h;h=9733d391ccbc0b9996d067b84a4938795ba11d53;hb=be8c57c7e1de5962913f849b862faae01bead264;hp=bde51e679afeea5beef4276d1c3e562f5f88ac7f;hpb=1c20e240bb704cddfa80b60dfa20863218edc6d8;p=plomrogue diff --git a/src/client/misc.h b/src/client/misc.h index bde51e6..9733d39 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -7,28 +7,20 @@ #ifndef MISC_H #define MISC_H -#include /* for uint16_t */ +#include /* size_t */ +#include /* uint32_t */ -/* Save / load (init) / unload (free/dissolve) / reload interface configuration - * data, world.wmeta.pad (initialized before opening any windows to the height - * of the terminal screen and a width of 1) and window chains. - * - * Note that reload_interface_conf() also calls map_center(). - */ -extern void save_interface_conf(); -extern void load_interface_conf(); -extern void unload_interface_conf(); -extern void reload_interface_conf(); - -/* Return offset into center map of "mapsize" on "position" in "framesize". */ -extern uint16_t center_offset(uint16_t position, - uint16_t mapsize, uint16_t framesize); - /* Move world.inventory_sel up ("dir"="u") or down (else) as far as possible. */ extern void nav_inventory(char dir); +/* Append to array pointed to by "ptr_old_array" of "old_n" elements of + * "region_size" "new region". + */ +extern void array_append(uint32_t old_n, size_t region_size, void * new_region, + void ** ptr_old_array); + #endif