libyasm
Data Fields
yasm_preproc_module Struct Reference

YASM preprocesor module interface. More...

#include <preproc.h>

Data Fields

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

Detailed Description

YASM preprocesor module interface.

Definition at line 44 of file preproc.h.

Field Documentation

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.

Definition at line 88 of file preproc.h.

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.

Definition at line 108 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_filenameinitial starting filename, or "-" to read from stdin
symtabsymbol table (may be NULL if none)
lmline mapping repository
errwarnserror/warnning set.
Returns
New preprocessor.
Note
Any preprocessor errors and warnings are stored into errwarns.

Definition at line 64 of file preproc.h.

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.

Definition at line 103 of file preproc.h.

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

Module-level implementation of yasm_preproc_destroy().

Call yasm_preproc_destroy() instead of calling this function.

Definition at line 72 of file preproc.h.

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.

Definition at line 82 of file preproc.h.

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.

Definition at line 77 of file preproc.h.

const char* yasm_preproc_module::keyword

Keyword used to select preprocessor on the command line.

Definition at line 49 of file preproc.h.

const char* yasm_preproc_module::name

One-line description of the preprocessor.

Definition at line 46 of file preproc.h.

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.

Definition at line 93 of file preproc.h.

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.

Definition at line 98 of file preproc.h.


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