Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

frm_hook.c File Reference

#include "form.priv.h"

Go to the source code of this file.

Defines

#define GEN_HOOK_SET_FUNCTION(typ, name)
#define GEN_HOOK_GET_FUNCTION(typ, name)


Define Documentation

#define GEN_HOOK_GET_FUNCTION typ,
name   ) 
 

Value:

NCURSES_IMPEXP Form_Hook NCURSES_API typ ## _ ## name ( const FORM *form )\
{\
   T((T_CALLED(#typ "_" #name "(%p)"), form));\
   returnFormHook( Normalize_Form( form ) -> typ ## name );\
}

Definition at line 47 of file frm_hook.c.

#define GEN_HOOK_SET_FUNCTION typ,
name   ) 
 

Value:

NCURSES_IMPEXP int NCURSES_API set_ ## typ ## _ ## name (FORM *form, Form_Hook func)\
{\
   T((T_CALLED("set_" #typ"_"#name"(%p,%p)"), form, func));\
   (Normalize_Form( form ) -> typ ## name) = func ;\
   RETURN(E_OK);\
}

Definition at line 38 of file frm_hook.c.


© sourcejam.com 2005-2008