GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
growable_macro_buffer Struct Reference

Public Member Functions

 growable_macro_buffer (int n)
 
 DISABLE_COPY_AND_ASSIGN (growable_macro_buffer)
 
 ~growable_macro_buffer ()
 
gdb::unique_xmalloc_ptr< char > release ()
 
void resize_buffer (int n)
 
void appendc (int c)
 
void appendmem (const char *addr, int count)
 

Public Attributes

char * text
 
int len
 
int size
 
int last_token = -1
 

Detailed Description

Definition at line 81 of file macroexp.c.

Constructor & Destructor Documentation

◆ growable_macro_buffer()

growable_macro_buffer::growable_macro_buffer ( int n)
inlineexplicit

Definition at line 107 of file macroexp.c.

References text, and xmalloc().

◆ ~growable_macro_buffer()

growable_macro_buffer::~growable_macro_buffer ( )
inline

Definition at line 119 of file macroexp.c.

References text, and xfree().

Member Function Documentation

◆ appendc()

void growable_macro_buffer::appendc ( int c)
inline

◆ appendmem()

void growable_macro_buffer::appendmem ( const char * addr,
int count )
inline

Definition at line 158 of file macroexp.c.

References len, resize_buffer(), size, and text.

Referenced by append_tokens_without_splicing(), scan(), and substitute_args().

◆ DISABLE_COPY_AND_ASSIGN()

growable_macro_buffer::DISABLE_COPY_AND_ASSIGN ( growable_macro_buffer )

◆ release()

gdb::unique_xmalloc_ptr< char > growable_macro_buffer::release ( )
inline

Definition at line 125 of file macroexp.c.

References size, and text.

Referenced by macro_expand(), macro_expand_next(), and macro_stringify().

◆ resize_buffer()

void growable_macro_buffer::resize_buffer ( int n)
inline

Definition at line 134 of file macroexp.c.

References size, text, and xrealloc().

Referenced by appendc(), and appendmem().

Member Data Documentation

◆ last_token

int growable_macro_buffer::last_token = -1

◆ len

int growable_macro_buffer::len

◆ size

int growable_macro_buffer::size

Definition at line 91 of file macroexp.c.

Referenced by appendc(), appendmem(), release(), and resize_buffer().

◆ text

char* growable_macro_buffer::text

The documentation for this struct was generated from the following file: