src/mess/device.h
| r3573 | r3574 | |
| 82 | 82 | MESS_DEVINFO_STR_DEV_SPECIFIC = 0x28000, /* R/W: Device-specific values start here */ |
| 83 | 83 | }; |
| 84 | 84 | |
| 85 | #define TEMP_STRING_POOL_ENTRIES 16 |
| 86 | static char temp_string_pool[TEMP_STRING_POOL_ENTRIES][256]; |
| 87 | static int temp_string_pool_index; |
| 85 | 88 | |
| 86 | 89 | typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable); |
| 87 | 90 | |
| r3573 | r3574 | |
| 163 | 166 | |
| 164 | 167 | INLINE char *device_temp_str(void) |
| 165 | 168 | { |
| 166 | | extern char *cpuintrf_temp_str(void); |
| 167 | | return cpuintrf_temp_str(); |
| 169 | char *string = &temp_string_pool[temp_string_pool_index++ % TEMP_STRING_POOL_ENTRIES][0]; |
| 170 | string[0] = 0; |
| 171 | return string; |
| 168 | 172 | } |
| 169 | 173 | |
| 170 | 174 | |