Motr  M0
iterator_test_xc.c File Reference
#include "lib/misc.h"
#include "lib/assert.h"
#include "xcode/xcode.h"
#include "fop/ut/iterator_test.h"
#include "fop/ut/iterator_test_xc.h"
Include dependency graph for iterator_test_xc.c:

Go to the source code of this file.

Data Structures

struct  _m0_fop_seg_s
 
struct  _m0_fop_vec_s
 
struct  _m0_fop_optfid_s
 
struct  _m0_fop_recursive1_s
 
struct  _m0_fop_recursive2_s
 
struct  _m0_fop_iterator_test_s
 

Functions

 M0_BASSERT (offsetof(struct _m0_fop_seg_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_vec_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_optfid_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_recursive1_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_recursive2_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _m0_fop_iterator_test_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct m0_fop_seg)==16U)
 
 M0_BASSERT (sizeof((struct m0_fop_seg *) 0) ->fs_offset==8U)
 
 M0_BASSERT (offsetof(struct m0_fop_seg, fs_offset)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_seg, fs_count)==8U)
 
 M0_BASSERT (sizeof(struct m0_fop_vec)==16U)
 
 M0_BASSERT (sizeof((struct m0_fop_vec *) 0) ->fv_count==4U)
 
 M0_BASSERT (offsetof(struct m0_fop_vec, fv_count)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_vec, fv_seg)==8U)
 
 M0_BASSERT (sizeof(struct m0_fop_optfid)==16U)
 
 M0_BASSERT (sizeof((struct m0_fop_optfid *) 0) ->fo_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_optfid, fo_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_optfid, fo_none)==16U)
 
 M0_BASSERT (sizeof(struct m0_fop_recursive1)==48U)
 
 M0_BASSERT (sizeof((struct m0_fop_recursive1 *) 0) ->fr_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_recursive1, fr_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_recursive1, fr_seq)==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_recursive1, fr_unn)==32U)
 
 M0_BASSERT (sizeof(struct m0_fop_recursive2)==64U)
 
 M0_BASSERT (sizeof((struct m0_fop_recursive2 *) 0) ->fr_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_recursive2, fr_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_recursive2, fr_seq)==16U)
 
 M0_BASSERT (sizeof(struct m0_fop_iterator_test)==144U)
 
 M0_BASSERT (sizeof((struct m0_fop_iterator_test *) 0) ->fit_fid==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_fid)==0U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_vec)==16U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_opt0)==32U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_opt1)==48U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_topt)==64U)
 
 M0_BASSERT (offsetof(struct m0_fop_iterator_test, fit_rec)==80U)
 
M0_INTERNAL void m0_xc_m0_fop_seg_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_vec_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_optfid_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_recursive1_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_recursive2_struct_init (void)
 
M0_INTERNAL void m0_xc_m0_fop_iterator_test_struct_init (void)
 
M0_INTERNAL void m0_xc_fop_ut_iterator_test_init (void)
 
M0_INTERNAL void m0_xc_fop_ut_iterator_test_fini (void)
 

Variables

struct m0_xcode_typem0_fop_seg_xc = &_m0_fop_seg._type
 
struct m0_xcode_typem0_fop_vec_xc = &_m0_fop_vec._type
 
struct m0_xcode_typem0_fop_optfid_xc = &_m0_fop_optfid._type
 
struct m0_xcode_typem0_fop_recursive1_xc = &_m0_fop_recursive1._type
 
struct m0_xcode_typem0_fop_recursive2_xc = &_m0_fop_recursive2._type
 
struct m0_xcode_typem0_fop_iterator_test_xc = &_m0_fop_iterator_test._type
 
static struct _m0_fop_seg_s _m0_fop_seg
 
static struct _m0_fop_vec_s _m0_fop_vec
 
static struct _m0_fop_optfid_s _m0_fop_optfid
 
static struct _m0_fop_recursive1_s _m0_fop_recursive1
 
static struct _m0_fop_recursive2_s _m0_fop_recursive2
 
static struct _m0_fop_iterator_test_s _m0_fop_iterator_test
 

Function Documentation

◆ M0_BASSERT() [1/35]

M0_BASSERT ( offsetof(struct _m0_fop_seg_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [2/35]

M0_BASSERT ( offsetof(struct _m0_fop_vec_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [3/35]

M0_BASSERT ( offsetof(struct _m0_fop_optfid_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [4/35]

M0_BASSERT ( offsetof(struct _m0_fop_recursive1_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [5/35]

M0_BASSERT ( offsetof(struct _m0_fop_recursive2_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [6/35]

M0_BASSERT ( offsetof(struct _m0_fop_iterator_test_s, _child[0])  = =offsetof(struct m0_xcode_type, xct_child[0]))

◆ M0_BASSERT() [7/35]

M0_BASSERT ( sizeof(struct m0_fop_seg = =16U)

◆ M0_BASSERT() [8/35]

M0_BASSERT ( sizeof((struct m0_fop_seg *) 0) ->  fs_offset = =8U)

◆ M0_BASSERT() [9/35]

M0_BASSERT ( offsetof(struct m0_fop_seg, fs_offset)  = =0U)

◆ M0_BASSERT() [10/35]

M0_BASSERT ( offsetof(struct m0_fop_seg, fs_count)  = =8U)

◆ M0_BASSERT() [11/35]

M0_BASSERT ( sizeof(struct m0_fop_vec = =16U)

◆ M0_BASSERT() [12/35]

M0_BASSERT ( sizeof((struct m0_fop_vec *) 0) ->  fv_count = =4U)

◆ M0_BASSERT() [13/35]

M0_BASSERT ( offsetof(struct m0_fop_vec, fv_count)  = =0U)

◆ M0_BASSERT() [14/35]

M0_BASSERT ( offsetof(struct m0_fop_vec, fv_seg)  = =8U)

◆ M0_BASSERT() [15/35]

M0_BASSERT ( sizeof(struct m0_fop_optfid = =16U)

◆ M0_BASSERT() [16/35]

M0_BASSERT ( sizeof((struct m0_fop_optfid *) 0) ->  fo_fid = =16U)

◆ M0_BASSERT() [17/35]

M0_BASSERT ( offsetof(struct m0_fop_optfid, fo_fid)  = =0U)

◆ M0_BASSERT() [18/35]

M0_BASSERT ( offsetof(struct m0_fop_optfid, fo_none)  = =16U)

◆ M0_BASSERT() [19/35]

M0_BASSERT ( sizeof(struct m0_fop_recursive1 = =48U)

◆ M0_BASSERT() [20/35]

M0_BASSERT ( sizeof((struct m0_fop_recursive1 *) 0) ->  fr_fid = =16U)

◆ M0_BASSERT() [21/35]

M0_BASSERT ( offsetof(struct m0_fop_recursive1, fr_fid)  = =0U)

◆ M0_BASSERT() [22/35]

M0_BASSERT ( offsetof(struct m0_fop_recursive1, fr_seq)  = =16U)

◆ M0_BASSERT() [23/35]

M0_BASSERT ( offsetof(struct m0_fop_recursive1, fr_unn)  = =32U)

◆ M0_BASSERT() [24/35]

M0_BASSERT ( sizeof(struct m0_fop_recursive2 = =64U)

◆ M0_BASSERT() [25/35]

M0_BASSERT ( sizeof((struct m0_fop_recursive2 *) 0) ->  fr_fid = =16U)

◆ M0_BASSERT() [26/35]

M0_BASSERT ( offsetof(struct m0_fop_recursive2, fr_fid)  = =0U)

◆ M0_BASSERT() [27/35]

M0_BASSERT ( offsetof(struct m0_fop_recursive2, fr_seq)  = =16U)

◆ M0_BASSERT() [28/35]

M0_BASSERT ( sizeof(struct m0_fop_iterator_test = =144U)

◆ M0_BASSERT() [29/35]

M0_BASSERT ( sizeof((struct m0_fop_iterator_test *) 0) ->  fit_fid = =16U)

◆ M0_BASSERT() [30/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_fid)  = =0U)

◆ M0_BASSERT() [31/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_vec)  = =16U)

◆ M0_BASSERT() [32/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_opt0)  = =32U)

◆ M0_BASSERT() [33/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_opt1)  = =48U)

◆ M0_BASSERT() [34/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_topt)  = =64U)

◆ M0_BASSERT() [35/35]

M0_BASSERT ( offsetof(struct m0_fop_iterator_test, fit_rec)  = =80U)

◆ m0_xc_fop_ut_iterator_test_fini()

M0_INTERNAL void m0_xc_fop_ut_iterator_test_fini ( void  )

Definition at line 469 of file iterator_test_xc.c.

Here is the caller graph for this function:

◆ m0_xc_fop_ut_iterator_test_init()

M0_INTERNAL void m0_xc_fop_ut_iterator_test_init ( void  )

Definition at line 459 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_iterator_test_struct_init()

M0_INTERNAL void m0_xc_m0_fop_iterator_test_struct_init ( void  )

Definition at line 364 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_optfid_struct_init()

M0_INTERNAL void m0_xc_m0_fop_optfid_struct_init ( void  )

Definition at line 244 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_recursive1_struct_init()

M0_INTERNAL void m0_xc_m0_fop_recursive1_struct_init ( void  )

Definition at line 279 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_recursive2_struct_init()

M0_INTERNAL void m0_xc_m0_fop_recursive2_struct_init ( void  )

Definition at line 329 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_seg_struct_init()

M0_INTERNAL void m0_xc_m0_fop_seg_struct_init ( void  )

Definition at line 174 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_xc_m0_fop_vec_struct_init()

M0_INTERNAL void m0_xc_m0_fop_vec_struct_init ( void  )

Definition at line 209 of file iterator_test_xc.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _m0_fop_iterator_test

struct _m0_fop_iterator_test_s _m0_fop_iterator_test
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_iterator_test",
.xct_sizeof = sizeof (struct m0_fop_iterator_test),
.xct_nr = 6,
.xct_flags = 0,
}
}

◆ _m0_fop_optfid

struct _m0_fop_optfid_s _m0_fop_optfid
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_optfid",
.xct_sizeof = sizeof (struct m0_fop_optfid),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _m0_fop_recursive1

struct _m0_fop_recursive1_s _m0_fop_recursive1
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_recursive1",
.xct_sizeof = sizeof (struct m0_fop_recursive1),
.xct_nr = 3,
.xct_flags = 0,
}
}

◆ _m0_fop_recursive2

struct _m0_fop_recursive2_s _m0_fop_recursive2
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_recursive2",
.xct_sizeof = sizeof (struct m0_fop_recursive2),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _m0_fop_seg

struct _m0_fop_seg_s _m0_fop_seg
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "m0_fop_seg",
.xct_sizeof = sizeof (struct m0_fop_seg),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _m0_fop_vec

struct _m0_fop_vec_s _m0_fop_vec
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "m0_fop_vec",
.xct_sizeof = sizeof (struct m0_fop_vec),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ m0_fop_iterator_test_xc

struct m0_xcode_type * m0_fop_iterator_test_xc = &_m0_fop_iterator_test._type

Definition at line 15 of file iterator_test_xc.c.

◆ m0_fop_optfid_xc

struct m0_xcode_type * m0_fop_optfid_xc = &_m0_fop_optfid._type

Definition at line 12 of file iterator_test_xc.c.

◆ m0_fop_recursive1_xc

struct m0_xcode_type * m0_fop_recursive1_xc = &_m0_fop_recursive1._type

Definition at line 13 of file iterator_test_xc.c.

◆ m0_fop_recursive2_xc

struct m0_xcode_type * m0_fop_recursive2_xc = &_m0_fop_recursive2._type

Definition at line 14 of file iterator_test_xc.c.

◆ m0_fop_seg_xc

struct m0_xcode_type * m0_fop_seg_xc = &_m0_fop_seg._type

Definition at line 10 of file iterator_test_xc.c.

◆ m0_fop_vec_xc

struct m0_xcode_type * m0_fop_vec_xc = &_m0_fop_vec._type

Definition at line 11 of file iterator_test_xc.c.