libyasm
Data Fields
yasm_dir_help Struct Reference

Directive valparam parse helper structure. More...

#include <valparam.h>

Data Fields

const char * name
 Value portion of val=param (if needsparam=1), or standalone identifier (if needsparam=0).
 
int needsparam
 1 if value requires parameter, 0 if it must not have a parameter. More...
 
int(* helper )(void *obj, yasm_valparam *vp, unsigned long line, void *data, uintptr_t arg)
 Helper callback function if name and parameter existence match. More...
 
size_t off
 Offset added to data pointer passed into yasm_dir_helper() before data pointer is given to yasm_dir_help.helper(). More...
 
uintptr_t arg
 Argument to pass in as the arg parameter to yasm_dir_help.helper().
 

Detailed Description

Directive valparam parse helper structure.

Definition at line 242 of file valparam.h.

Field Documentation

int(* yasm_dir_help::helper)(void *obj, yasm_valparam *vp, unsigned long line, void *data, uintptr_t arg)

Helper callback function if name and parameter existence match.

Parameters
objobj passed into yasm_dir_helper()
vpvalue/parameter
lineline passed into yasm_dir_helper()
datadata passed into yasm_dir_helper() plus yasm_dir_help.off offset
argyasm_dir_help.arg argument
Returns
-1 on error, 0 otherwise.

Definition at line 260 of file valparam.h.

int yasm_dir_help::needsparam

1 if value requires parameter, 0 if it must not have a parameter.

Definition at line 249 of file valparam.h.

size_t yasm_dir_help::off

Offset added to data pointer passed into yasm_dir_helper() before data pointer is given to yasm_dir_help.helper().

This is so that a structure can be passed into yasm_dir_helper() and this can be an offsetof() to point the helper function to a specific structure member.

Definition at line 269 of file valparam.h.


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