yasm_preproc_module Struct Reference

YASM preprocesor module interface. More...

#include <preproc.h>


Data Fields

const char * name
 One-line description of the preprocessor.
const char * keyword
 Keyword used to select preprocessor on the command line.
yasm_preproc *(* create )(const char *in_filename, yasm_symtab *symtab, yasm_linemap *lm, yasm_errwarns *errwarns)
 Create preprocessor.
void(* destroy )(yasm_preproc *preproc)
 Module-level implementation of yasm_preproc_destroy().
char *(* get_line )(yasm_preproc *preproc)
 Module-level implementation of yasm_preproc_get_line().
size_t(* get_included_file )(yasm_preproc *preproc, char *buf, size_t max_size)
 Module-level implementation of yasm_preproc_get_included_file().
void(* add_include_file )(yasm_preproc *preproc, const char *filename)
 Module-level implementation of yasm_preproc_add_include_file().
void(* predefine_macro )(yasm_preproc *preproc, const char *macronameval)
 Module-level implementation of yasm_preproc_predefine_macro().
void(* undefine_macro )(yasm_preproc *preproc, const char *macroname)
 Module-level implementation of yasm_preproc_undefine_macro().
void(* define_builtin )(yasm_preproc *preproc, const char *macronameval)
 Module-level implementation of yasm_preproc_builtin_define().
void(* add_standard )(yasm_preproc *preproc, const char **macros)
 Module-level implementation of yasm_preproc_add_standard().


Detailed Description

YASM preprocesor module interface.

Definition at line 48 of file preproc.h.


Field Documentation

const char* yasm_preproc_module::name

One-line description of the preprocessor.

Definition at line 50 of file preproc.h.

const char* yasm_preproc_module::keyword

Keyword used to select preprocessor on the command line.

Definition at line 53 of file preproc.h.

yasm_preproc*(* yasm_preproc_module::create)(const char *in_filename, yasm_symtab *symtab, yasm_linemap *lm, yasm_errwarns *errwarns)

Create preprocessor.

Module-level implementation of yasm_preproc_create(). Call yasm_preproc_create() instead of calling this function.

Parameters:
in_filename initial starting filename, or "-" to read from stdin
symtab symbol table (may be NULL if none)
lm line mapping repository
errwarns error/warnning set.
Returns:
New preprocessor.
Note:
Any preprocessor errors and warnings are stored into errwarns.

void(* yasm_preproc_module::destroy)(yasm_preproc *preproc)

Module-level implementation of yasm_preproc_destroy().

Call yasm_preproc_destroy() instead of calling this function.

char*(* yasm_preproc_module::get_line)(yasm_preproc *preproc)

Module-level implementation of yasm_preproc_get_line().

Call yasm_preproc_get_line() instead of calling this function.

size_t(* yasm_preproc_module::get_included_file)(yasm_preproc *preproc,char *buf, size_t max_size)

Module-level implementation of yasm_preproc_get_included_file().

Call yasm_preproc_get_included_file() instead of calling this function.

void(* yasm_preproc_module::add_include_file)(yasm_preproc *preproc, const char *filename)

Module-level implementation of yasm_preproc_add_include_file().

Call yasm_preproc_add_include_file() instead of calling this function.

void(* yasm_preproc_module::predefine_macro)(yasm_preproc *preproc, const char *macronameval)

Module-level implementation of yasm_preproc_predefine_macro().

Call yasm_preproc_predefine_macro() instead of calling this function.

void(* yasm_preproc_module::undefine_macro)(yasm_preproc *preproc, const char *macroname)

Module-level implementation of yasm_preproc_undefine_macro().

Call yasm_preproc_undefine_macro() instead of calling this function.

void(* yasm_preproc_module::define_builtin)(yasm_preproc *preproc, const char *macronameval)

Module-level implementation of yasm_preproc_builtin_define().

Call yasm_preproc_builtin_define() instead of calling this function.

void(* yasm_preproc_module::add_standard)(yasm_preproc *preproc, const char **macros)

Module-level implementation of yasm_preproc_add_standard().

Call yasm_preproc_add_standard() instead of calling this function.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 28 01:23:55 2008 for libyasm by  doxygen 1.5.2