Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

t_evg_alloc.c File Reference


Detailed Description

For internal use only.

This test program is used to test the operation of event_gen_alloc() and event_gen_release().

Definition in file t_evg_alloc.c.

#include "event-test.h"

Include dependency graph for t_evg_alloc.c:

Go to the source code of this file.

Data Structures

struct  t_gen
 Test generator. More...

Defines

#define cnt(array)
 Count number of elements in a struct t_gen pointer array.

Functions

int main (int argc, char **argv)
 Generator allocation test program.


Define Documentation

#define cnt array   ) 
 

For internal use only.

This helper macro counts the number of elements in the named array.

Parameters:
[in] array Name of the array to count.
Returns:
Number of elements in the array.

Definition at line 59 of file t_evg_alloc.c.

Referenced by main().


Function Documentation

int main int  argc,
char **  argv
 

For internal use only.

This program is used for testing the event generator allocation functions.

Definition at line 68 of file t_evg_alloc.c.

References _ev_gen_lookup(), cnt, EGT_RESERVED, ev_lib_init, ev_prog_name, ev_test_init, event_destroy(), event_gen_alloc(), event_gen_register(), event_gen_release(), _ev_gendesc_s::gd_active, _ev_gendesc_s::gd_free, _ev_genlist_s::gl_count, prog, and t_gen::tg_seq.

Here is the call graph for this function:


Generated on Wed Dec 28 23:37:38 2005 for event by  doxygen 1.4.4