diff options
author | 2010-01-08 17:18:54 +0000 | |
---|---|---|
committer | 2010-01-08 17:18:54 +0000 | |
commit | a92de5930cef847ffdafd1e6c8e9f2bf03375c39 (patch) | |
tree | e8e5887dfcf861cc77ed1675015267450fc6fc8a /src/emu/input.h | |
parent | a0a40f8815e5c16bd2ab8ee333d19bcfe1e6ee55 (diff) |
Extended the astring class wrapper into something useful, and
useable as a stack object. Also designed the interfaces to allow
for chaining operations. And added a casting operator to const
char * for seamless use in most functions that take plain old C
strings.
Changed all uses of astring to use the object directly on the
stack or embedded in objects instead of explicitly allocating
and deallocating it. Removed a lot of annoying memory management
code as a result.
Changed interfaces that accepted/returned an astring * to
use an astring & instead.
Removed auto_alloc_astring(machine). Use
auto_alloc(machine, astring) instead.
Diffstat (limited to 'src/emu/input.h')
-rw-r--r-- | src/emu/input.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emu/input.h b/src/emu/input.h index d1d5f55760c..1ef605396e2 100644 --- a/src/emu/input.h +++ b/src/emu/input.h @@ -631,10 +631,10 @@ input_code input_code_poll_axes(running_machine *machine, int reset); /* ----- strings and tokenization ----- */ /* generate the friendly name of an input code, returning the length (buffer can be NULL) */ -astring *input_code_name(running_machine *machine, astring *buffer, input_code code); +astring &input_code_name(running_machine *machine, astring &buffer, input_code code); /* convert an input code to a token, returning the length (buffer can be NULL) */ -astring *input_code_to_token(running_machine *machine, astring *buffer, input_code code); +astring &input_code_to_token(running_machine *machine, astring &buffer, input_code code); /* convert a token back to an input code */ input_code input_code_from_token(running_machine *machine, const char *_token); |