yasm_directive Struct Reference

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.
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.
enum yasm_directive::yasm_directive_flags flags
 Flags for pre-handler parameter checking.


Detailed Description

Directive list entry structure.

Definition at line 73 of file valparam.h.


Member Enumeration Documentation

enum yasm_directive::yasm_directive_flags

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 92 of file valparam.h.


Field Documentation

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 78 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.

Parameters:
object object
valparams value/parameters
objext_valparams object format-specific value/parameters
line virtual line (from yasm_linemap)

enum yasm_directive::yasm_directive_flags yasm_directive::flags

Flags for pre-handler parameter checking.


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