GDB (API)
Classes | Typedefs | Enumerations | Functions
/home/stan/gdb/src/gdb/macrotab.h File Reference

Go to the source code of this file.

Classes

struct  macro_source_file
struct  macro_definition

Typedefs

typedef void(* macro_callback_fn )(const char *name, const struct macro_definition *definition, struct macro_source_file *source, int line, void *user_data)

Enumerations

enum  macro_kind { macro_object_like, macro_function_like }
enum  macro_special_kind { macro_ordinary, macro_FILE, macro_LINE }

Functions

struct macro_table * new_macro_table (struct obstack *obstack, struct bcache *bcache, const char *comp_dir)
void free_macro_table (struct macro_table *table)
struct macro_source_filemacro_set_main (struct macro_table *table, const char *filename)
struct macro_source_filemacro_main (struct macro_table *table)
void macro_allow_redefinitions (struct macro_table *table)
struct macro_source_filemacro_include (struct macro_source_file *source, int line, const char *included)
void macro_define_special (struct macro_table *table)
struct macro_source_filemacro_lookup_inclusion (struct macro_source_file *source, const char *name))
void macro_define_object (struct macro_source_file *source, int line, const char *name, const char *replacement)
void macro_define_function (struct macro_source_file *source, int line, const char *name, int argc, const char **argv, const char *replacement)
void macro_undef (struct macro_source_file *source, int line, const char *name)
struct macro_definitionmacro_lookup_definition (struct macro_source_file *source, int line, const char *name))
struct macro_source_filemacro_definition_location (struct macro_source_file *source, int line, const char *name, int *definition_line))
void macro_for_each (struct macro_table *table, macro_callback_fn fn, void *user_data)
void macro_for_each_in_scope (struct macro_source_file *file, int line, macro_callback_fn fn, void *user_data)
char * macro_source_fullname (struct macro_source_file *file)

Typedef Documentation

typedef void(* macro_callback_fn)(const char *name, const struct macro_definition *definition, struct macro_source_file *source, int line, void *user_data)

Definition at line 336 of file macrotab.h.


Enumeration Type Documentation

enum macro_kind
Enumerator:
macro_object_like 
macro_function_like 

Definition at line 266 of file macrotab.h.

Enumerator:
macro_ordinary 
macro_FILE 
macro_LINE 

Definition at line 274 of file macrotab.h.


Function Documentation

void free_macro_table ( struct macro_table *  table)

Definition at line 1082 of file macrotab.c.

void macro_allow_redefinitions ( struct macro_table *  table)

Definition at line 443 of file macrotab.c.

void macro_define_function ( struct macro_source_file source,
int  line,
const char *  name,
int  argc,
const char **  argv,
const char *  replacement 
)

Definition at line 802 of file macrotab.c.

void macro_define_object ( struct macro_source_file source,
int  line,
const char *  name,
const char *  replacement 
)

Definition at line 783 of file macrotab.c.

void macro_define_special ( struct macro_table *  table)

Definition at line 793 of file macrotab.c.

struct macro_source_file* macro_definition_location ( struct macro_source_file source,
int  line,
const char *  name,
int definition_line 
) [read]

Definition at line 943 of file macrotab.c.

void macro_for_each ( struct macro_table *  table,
macro_callback_fn  fn,
void *  user_data 
)

Definition at line 994 of file macrotab.c.

void macro_for_each_in_scope ( struct macro_source_file file,
int  line,
macro_callback_fn  fn,
void *  user_data 
)

Definition at line 1033 of file macrotab.c.

struct macro_source_file* macro_include ( struct macro_source_file source,
int  line,
const char *  included 
) [read]

Definition at line 451 of file macrotab.c.

struct macro_definition* macro_lookup_definition ( struct macro_source_file source,
int  line,
const char *  name 
) [read]

Definition at line 921 of file macrotab.c.

struct macro_source_file* macro_lookup_inclusion ( struct macro_source_file source,
const char *  name 
) [read]

Definition at line 512 of file macrotab.c.

struct macro_source_file* macro_main ( struct macro_table *  table) [read]

Definition at line 434 of file macrotab.c.

struct macro_source_file* macro_set_main ( struct macro_table *  table,
const char *  filename 
) [read]

Definition at line 420 of file macrotab.c.

char* macro_source_fullname ( struct macro_source_file file)

Definition at line 1094 of file macrotab.c.

void macro_undef ( struct macro_source_file source,
int  line,
const char *  name 
)

Definition at line 830 of file macrotab.c.

struct macro_table* new_macro_table ( struct obstack *  obstack,
struct bcache bcache,
const char *  comp_dir 
) [read]

Definition at line 1052 of file macrotab.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines