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.
int(* helper )(void *obj, yasm_valparam *vp, unsigned long line, void *data, uintptr_t arg)
 Helper callback function if name and parameter existence match.
size_t off
 Offset added to data pointer passed into yasm_dir_helper() before data pointer is given to yasm_dir_help.helper().
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 246 of file valparam.h.


Field Documentation

int yasm_dir_help::needsparam

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

Definition at line 253 of file valparam.h.

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:
obj obj passed into yasm_dir_helper()
vp value/parameter
line line passed into yasm_dir_helper()
data data passed into yasm_dir_helper() plus yasm_dir_help.off offset
arg yasm_dir_help.arg argument
Returns:
-1 on error, 0 otherwise.

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


The documentation for this struct was generated from the following file:
Generated on Fri Aug 29 01:23:16 2008 for libyasm by  doxygen 1.5.2