Save memory by storing strings in a global array, ensuring that each is only allocated once. More...
|Quark type. |
|quark_t||quark_add (const char *str)|
|Return a quark for the string 'str'. |
|const char *||quark_str (quark_t q)|
|Return the string corresponding to the quark. |
|Initialise the quarks package. |
|De-initialise the quarks package. |
Save memory by storing strings in a global array, ensuring that each is only allocated once.
Copyright (c) 1997 Ben Harrison Copyright (c) 2007 "Elly"
This work is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation, version 2, or
b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.
|typedef size_t quark_t|