aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i960-dis.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-02-06 12:10:20 -0700
committerTom Tromey <tom@tromey.com>2018-02-08 11:46:56 -0700
commit1739cf248ff21b21271d1e9d5f77a12589c3856c (patch)
tree57ff7a5b756c0eda46d092ce2ddd941dd7a3a643 /opcodes/i960-dis.c
parentf6c2623eb8ac7296b6d7a76657394272a71f5aee (diff)
downloadgdb-1739cf248ff21b21271d1e9d5f77a12589c3856c.zip
gdb-1739cf248ff21b21271d1e9d5f77a12589c3856c.tar.gz
gdb-1739cf248ff21b21271d1e9d5f77a12589c3856c.tar.bz2
Class-ify macro_buffer
This patch changes macro_buffer to be a bit more of a C++ class, adding constructors, a destructor, and some members. Then this is used to remove various cleanups in macroexp.c. 2018-02-08 Tom Tromey <tom@tromey.com> * macroexp.c (struct macro_buffer): Add initializers for some members. (init_buffer, init_shared_buffer, free_buffer) (free_buffer_return_text): Remove. (macro_buffer): New constructors. (~macro_buffer): New destructor. (macro_buffer::set_shared): New method. (macro_buffer::resize_buffer, macro_buffer::appendc) (macro_buffer::appendmem): Now methods, not free functions. (set_token, append_tokens_without_splicing, stringify) (macro_stringify): Update. (gather_arguments): Change return type. Remove argc_p argument, add args_ptr argument. Use std::vector. (substitute_args): Remove argc argument. Accept std::vector. (expand): Update. Use std::vector. (scan, macro_expand, macro_expand_next): Update.
Diffstat (limited to 'opcodes/i960-dis.c')
0 files changed, 0 insertions, 0 deletions