libyasm
Public Types | Data Fields
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. 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
 

Detailed Description

Directive list entry structure.

Definition at line 69 of file valparam.h.

Member Enumeration Documentation

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.

Field Documentation

void(* yasm_directive::handler)(yasm_object *object, yasm_valparamhead *valparams, yasm_valparamhead *objext_valparams, unsigned long line)

Handler callback function for the directive.

Parameters
objectobject
valparamsvalue/parameters
objext_valparamsobject format-specific value/parameters
linevirtual 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.


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