GDB (xrefs)
Typedefs | Functions
/tmp/gdb-8.1/gdb/macroexp.h File Reference

Go to the source code of this file.

Typedefs

typedef struct macro_definition *() macro_lookup_ftype(const char *name, void *baton)
 

Functions

char * macro_expand (const char *source, macro_lookup_ftype *lookup_func, void *lookup_func_baton)
 
char * macro_expand_once (const char *source, macro_lookup_ftype *lookup_func, void *lookup_func_baton)
 
char * macro_expand_next (const char **lexptr, macro_lookup_ftype *lookup_func, void *lookup_baton)
 
int macro_is_whitespace (int c)
 
int macro_is_identifier_nondigit (int c)
 
int macro_is_digit (int c)
 
char * macro_stringify (const char *str)
 

Typedef Documentation

◆ macro_lookup_ftype

typedef struct macro_definition*() macro_lookup_ftype(const char *name, void *baton)

Definition at line 31 of file macroexp.h.

Function Documentation

◆ macro_expand()

char* macro_expand ( const char *  source,
macro_lookup_ftype lookup_func,
void *  lookup_func_baton 
)

◆ macro_expand_next()

char* macro_expand_next ( const char **  lexptr,
macro_lookup_ftype lookup_func,
void *  lookup_baton 
)

◆ macro_expand_once()

char* macro_expand_once ( const char *  source,
macro_lookup_ftype lookup_func,
void *  lookup_func_baton 
)

Definition at line 1512 of file macroexp.c.

References _, and error().

Referenced by macro_expand_once_command().

◆ macro_is_digit()

int macro_is_digit ( int  c)

Definition at line 201 of file macroexp.c.

Referenced by extract_identifier(), get_identifier(), and get_pp_number().

◆ macro_is_identifier_nondigit()

int macro_is_identifier_nondigit ( int  c)

Definition at line 208 of file macroexp.c.

Referenced by extract_identifier(), get_identifier(), and get_pp_number().

◆ macro_is_whitespace()

int macro_is_whitespace ( int  c)

Definition at line 190 of file macroexp.c.

Referenced by get_token(), skip_ws(), and stringify().

◆ macro_stringify()

char* macro_stringify ( const char *  str)

Definition at line 706 of file macroexp.c.

References appendc(), free_buffer_return_text(), init_buffer(), macro_buffer::len, and stringify().

Referenced by fixup_definition().