libyasm
|
Directive list entry structure. More...
#include <valparam.h>
Public Types | |
enum | yasm_directive_flags { YASM_DIR_ANY = 0, YASM_DIR_ARG_REQUIRED = 1, YASM_DIR_ID_REQUIRED = 2 } |
Flags for pre-handler parameter checking. More... | |
Data Fields | |
const char * | name |
Directive name. More... | |
const char * | parser |
Parser keyword. | |
void(* | handler )(yasm_object *object, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line) |
Handler callback function for the directive. More... | |
enum yasm_directive::yasm_directive_flags | flags |
Directive list entry structure.
Definition at line 69 of file valparam.h.
Flags for pre-handler parameter checking.
Enumerator | |
---|---|
YASM_DIR_ANY |
Any valparams accepted. |
YASM_DIR_ARG_REQUIRED |
Require at least 1 valparam. |
YASM_DIR_ID_REQUIRED |
First valparam must be ID. |
Definition at line 88 of file valparam.h.
void(* yasm_directive::handler)(yasm_object *object, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line) |
Handler callback function for the directive.
object | object |
valparams | value/parameters |
objext_valparams | object format-specific value/parameters |
line | virtual line (from yasm_linemap) |
Definition at line 84 of file valparam.h.
const char* yasm_directive::name |
Directive name.
GAS directives should include the ".", NASM directives should just be the raw name (not including the []). NULL entry required to terminate list of directives.
Definition at line 74 of file valparam.h.