callback so that interface can get hunger index rather than trying to reconstruct that from the hunger string or dipping into core internals */
| 2143 | /* callback so that interface can get hunger index rather than trying to |
| 2144 | reconstruct that from the hunger string or dipping into core internals */ |
| 2145 | int |
| 2146 | stat_hunger_indx(void) |
| 2147 | { |
| 2148 | int uhs; |
| 2149 | |
| 2150 | #ifdef STATUS_HILITES |
| 2151 | uhs = gb.blstats[gn.now_or_before_idx][BL_HUNGER].a.a_int; |
| 2152 | #else |
| 2153 | uhs = (int) u.uhs; |
| 2154 | #endif |
| 2155 | return uhs; |
| 2156 | } |
| 2157 | |
| 2158 | /* used by X11 for "tty status" even when STATUS_HILITES is disabled */ |
| 2159 | const char * |
nothing calls this directly
no outgoing calls
no test coverage detected