Previous 15994 Revisions Next

r3574 Wednesday 26th November, 2008 at 09:55:36 UTC by Miodrag Milanović
[MESS] Fixed device_temp_str, now cassette/floppy works
[src/mess]device.h

src/mess/device.h
r3573r3574
8282   MESS_DEVINFO_STR_DEV_SPECIFIC = 0x28000,               /* R/W: Device-specific values start here */
8383};
8484
85#define TEMP_STRING_POOL_ENTRIES 16
86static char temp_string_pool[TEMP_STRING_POOL_ENTRIES][256];
87static int temp_string_pool_index;
8588
8689typedef void (*device_getdispositions_func)(int id, unsigned int *readable, unsigned int *writeable, unsigned int *creatable);
8790
r3573r3574
163166
164167INLINE char *device_temp_str(void)
165168{
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;
168172}
169173
170174

Previous 15994 Revisions Next


© 1998-2018 The MESS Team