X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=src%2Fclient%2Fmisc.h;h=928d8db86e70193cb01fb93434319cc7e9de7e2d;hb=6f98f0b029c3e84f1df0f2f3642f88e91b17cf33;hp=01e248804029a9102be50dafebbd84774f051034;hpb=fb9b40f0535b28b37b64983240c4b78e74ee9a2c;p=plomrogue diff --git a/src/client/misc.h b/src/client/misc.h index 01e2488..928d8db 100644 --- a/src/client/misc.h +++ b/src/client/misc.h @@ -7,7 +7,8 @@ #ifndef MISC_H #define MISC_H -#include /* for uint16_t */ +#include /* size_t */ +#include /* uint32_t */ @@ -25,20 +26,15 @@ extern void load_interface_conf(); extern void unload_interface_conf(); extern void reload_interface_conf(); -/* The SIGWINCH handler winch_called() merely sets world.winch to 1. This info - * is used by io_loop() to call reset_windows(), which adapts the currently - * loaded interface configuration to the new screen size. - */ -extern void winch_called(); -extern void reset_windows(); - -/* 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