Previous 199869 Revisions Next

r41677 Wednesday 11th November, 2015 at 12:25:45 UTC by Miodrag Milanović
removed unused code (nw)
[src/emu]device.cpp

trunk/src/emu/device.cpp
r250188r250189
1414#include "debug/debugcpu.h"
1515
1616
17
1817//**************************************************************************
19//  CONSTANTS
20//**************************************************************************
21
22#define TEMP_STRING_POOL_ENTRIES        16
23#define MAX_STRING_LENGTH               256
24
25
26
27//**************************************************************************
28//  GLOBAL VARIABLES
29//**************************************************************************
30
31static char temp_string_pool[TEMP_STRING_POOL_ENTRIES][MAX_STRING_LENGTH];
32static int temp_string_pool_index;
33
34
35
36//**************************************************************************
37//  INLINE FUNCTIONS
38//**************************************************************************
39
40//-------------------------------------------------
41//  get_temp_string_buffer - return a pointer to
42//  a temporary string buffer
43//-------------------------------------------------
44
45char *get_temp_string_buffer(void)
46{
47   char *string = &temp_string_pool[temp_string_pool_index++ % TEMP_STRING_POOL_ENTRIES][0];
48   string[0] = 0;
49   return string;
50}
51
52
53resource_pool &machine_get_pool(running_machine &machine)
54{
55   // temporary to get around include dependencies, until CPUs
56   // get a proper device class
57   return machine.respool();
58}
59
60
61
62//**************************************************************************
6318//  LIVE DEVICE MANAGEMENT
6419//**************************************************************************
6520


Previous 199869 Revisions Next


© 1997-2024 The MAME Team