Motr  M0
test_gccxml_simple_xc.c File Reference
Include dependency graph for test_gccxml_simple_xc.c:

Go to the source code of this file.

Data Structures

struct  _optfid_s
 
struct  _optfidarray_s
 
struct  _fixarray_s
 
struct  _testtypes_s
 
struct  _inlinearray_s
 
struct  _enumfield_s
 

Functions

 M0_BASSERT (offsetof(struct _optfid_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _optfidarray_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _fixarray_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _testtypes_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _inlinearray_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _enumfield_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct optfid)==24U)
 
 M0_BASSERT (sizeof((struct optfid *) 0) ->o_flag==1U)
 
 M0_BASSERT (offsetof(struct optfid, o_flag)==0U)
 
 M0_BASSERT (sizeof((struct optfid *) 0) ->u.o_fid==16U)
 
 M0_BASSERT (offsetof(struct optfid, u.o_fid)==8U)
 
 M0_BASSERT (offsetof(struct optfid, u.o_short)==8U)
 
 M0_BASSERT (sizeof(struct optfidarray)==16U)
 
 M0_BASSERT (sizeof((struct optfidarray *) 0) ->ofa_nr==8U)
 
 M0_BASSERT (offsetof(struct optfidarray, ofa_nr)==0U)
 
 M0_BASSERT (offsetof(struct optfidarray, ofa_data)==8U)
 
 M0_BASSERT (sizeof(struct fixarray)==8U)
 
 M0_BASSERT (sizeof((struct fixarray *) 0) ->fa_none==0U)
 
 M0_BASSERT (offsetof(struct fixarray, fa_none)==0U)
 
 M0_BASSERT (offsetof(struct fixarray, fa_data)==0U)
 
 M0_BASSERT (sizeof(struct testtypes)==56U)
 
 M0_BASSERT (sizeof((struct testtypes *) 0) ->tt_char==1U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_char)==0U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_pchar)==8U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_cpchar)==16U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_int)==24U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_ll)==32U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_ui)==40U)
 
 M0_BASSERT (offsetof(struct testtypes, tt_buf)==48U)
 
 M0_BASSERT (sizeof(struct inlinearray)==280U)
 
 M0_BASSERT (sizeof((struct inlinearray *) 0) ->ia_bugs==280U)
 
 M0_BASSERT (offsetof(struct inlinearray, ia_bugs)==0U)
 
 M0_BASSERT (sizeof(struct enumfield)==32U)
 
 M0_BASSERT (sizeof((struct enumfield *) 0) ->ef_0==8U)
 
 M0_BASSERT (offsetof(struct enumfield, ef_0)==0U)
 
 M0_BASSERT (offsetof(struct enumfield, ef_enum)==8U)
 
 M0_BASSERT (offsetof(struct enumfield, ef_bitm)==16U)
 
 M0_BASSERT (offsetof(struct enumfield, ef_1)==24U)
 
M0_INTERNAL void m0_xc_optfid_struct_init (void)
 
M0_INTERNAL void m0_xc_optfidarray_struct_init (void)
 
M0_INTERNAL void m0_xc_fixarray_struct_init (void)
 
M0_INTERNAL void m0_xc_testtypes_struct_init (void)
 
M0_INTERNAL void m0_xc_inlinearray_struct_init (void)
 
M0_INTERNAL void m0_xc_enumfield_struct_init (void)
 
M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_simple_init (void)
 
M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_simple_fini (void)
 

Variables

struct m0_xcode_typeoptfid_xc = &_optfid._type
 
struct m0_xcode_typeoptfidarray_xc = &_optfidarray._type
 
struct m0_xcode_typefixarray_xc = &_fixarray._type
 
struct m0_xcode_typetesttypes_xc = &_testtypes._type
 
struct m0_xcode_typeinlinearray_xc = &_inlinearray._type
 
struct m0_xcode_typeenumfield_xc = &_enumfield._type
 
static struct _optfid_s _optfid
 
static struct _optfidarray_s _optfidarray
 
static struct _fixarray_s _fixarray
 
static struct _testtypes_s _testtypes
 
static struct _inlinearray_s _inlinearray
 
static struct _enumfield_s _enumfield
 
const struct m0_xcode_enum_val testenum_data []
 
struct m0_xcode_enum m0_xc_testenum_enum
 
const struct m0_xcode_enum_val testbitmask_data []
 
struct m0_xcode_enum m0_xc_testbitmask_enum
 

Function Documentation

◆ M0_BASSERT() [1/38]

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

◆ M0_BASSERT() [2/38]

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

◆ M0_BASSERT() [3/38]

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

◆ M0_BASSERT() [4/38]

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

◆ M0_BASSERT() [5/38]

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

◆ M0_BASSERT() [6/38]

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

◆ M0_BASSERT() [7/38]

M0_BASSERT ( sizeof(struct optfid = =24U)

◆ M0_BASSERT() [8/38]

M0_BASSERT ( sizeof((struct optfid *) 0) ->  o_flag = =1U)

◆ M0_BASSERT() [9/38]

M0_BASSERT ( offsetof(struct optfid, o_flag)  = =0U)

◆ M0_BASSERT() [10/38]

M0_BASSERT ( sizeof((struct optfid *) 0) ->u.  o_fid = =16U)

◆ M0_BASSERT() [11/38]

M0_BASSERT ( offsetof(struct optfid, u.o_fid)  = =8U)

◆ M0_BASSERT() [12/38]

M0_BASSERT ( offsetof(struct optfid, u.o_short)  = =8U)

◆ M0_BASSERT() [13/38]

M0_BASSERT ( sizeof(struct optfidarray = =16U)

◆ M0_BASSERT() [14/38]

M0_BASSERT ( sizeof((struct optfidarray *) 0) ->  ofa_nr = =8U)

◆ M0_BASSERT() [15/38]

M0_BASSERT ( offsetof(struct optfidarray, ofa_nr)  = =0U)

◆ M0_BASSERT() [16/38]

M0_BASSERT ( offsetof(struct optfidarray, ofa_data)  = =8U)

◆ M0_BASSERT() [17/38]

M0_BASSERT ( sizeof(struct fixarray = =8U)

◆ M0_BASSERT() [18/38]

M0_BASSERT ( sizeof((struct fixarray *) 0) ->  fa_none = =0U)

◆ M0_BASSERT() [19/38]

M0_BASSERT ( offsetof(struct fixarray, fa_none)  = =0U)

◆ M0_BASSERT() [20/38]

M0_BASSERT ( offsetof(struct fixarray, fa_data)  = =0U)

◆ M0_BASSERT() [21/38]

M0_BASSERT ( sizeof(struct testtypes = =56U)

◆ M0_BASSERT() [22/38]

M0_BASSERT ( sizeof((struct testtypes *) 0) ->  tt_char = =1U)

◆ M0_BASSERT() [23/38]

M0_BASSERT ( offsetof(struct testtypes, tt_char)  = =0U)

◆ M0_BASSERT() [24/38]

M0_BASSERT ( offsetof(struct testtypes, tt_pchar)  = =8U)

◆ M0_BASSERT() [25/38]

M0_BASSERT ( offsetof(struct testtypes, tt_cpchar)  = =16U)

◆ M0_BASSERT() [26/38]

M0_BASSERT ( offsetof(struct testtypes, tt_int)  = =24U)

◆ M0_BASSERT() [27/38]

M0_BASSERT ( offsetof(struct testtypes, tt_ll)  = =32U)

◆ M0_BASSERT() [28/38]

M0_BASSERT ( offsetof(struct testtypes, tt_ui)  = =40U)

◆ M0_BASSERT() [29/38]

M0_BASSERT ( offsetof(struct testtypes, tt_buf)  = =48U)

◆ M0_BASSERT() [30/38]

M0_BASSERT ( sizeof(struct inlinearray = =280U)

◆ M0_BASSERT() [31/38]

M0_BASSERT ( sizeof((struct inlinearray *) 0) ->  ia_bugs = =280U)

◆ M0_BASSERT() [32/38]

M0_BASSERT ( offsetof(struct inlinearray, ia_bugs)  = =0U)

◆ M0_BASSERT() [33/38]

M0_BASSERT ( sizeof(struct enumfield = =32U)

◆ M0_BASSERT() [34/38]

M0_BASSERT ( sizeof((struct enumfield *) 0) ->  ef_0 = =8U)

◆ M0_BASSERT() [35/38]

M0_BASSERT ( offsetof(struct enumfield, ef_0)  = =0U)

◆ M0_BASSERT() [36/38]

M0_BASSERT ( offsetof(struct enumfield, ef_enum)  = =8U)

◆ M0_BASSERT() [37/38]

M0_BASSERT ( offsetof(struct enumfield, ef_bitm)  = =16U)

◆ M0_BASSERT() [38/38]

M0_BASSERT ( offsetof(struct enumfield, ef_1)  = =24U)

◆ m0_xc_enumfield_struct_init()

M0_INTERNAL void m0_xc_enumfield_struct_init ( void  )

Definition at line 457 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_fixarray_struct_init()

M0_INTERNAL void m0_xc_fixarray_struct_init ( void  )

Definition at line 292 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_inlinearray_struct_init()

M0_INTERNAL void m0_xc_inlinearray_struct_init ( void  )

Definition at line 437 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_optfid_struct_init()

M0_INTERNAL void m0_xc_optfid_struct_init ( void  )

Definition at line 207 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_optfidarray_struct_init()

M0_INTERNAL void m0_xc_optfidarray_struct_init ( void  )

Definition at line 257 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_testtypes_struct_init()

M0_INTERNAL void m0_xc_testtypes_struct_init ( void  )

Definition at line 327 of file test_gccxml_simple_xc.c.

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

◆ m0_xc_xcode_ut_test_gccxml_simple_fini()

M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_simple_fini ( void  )

Definition at line 532 of file test_gccxml_simple_xc.c.

◆ m0_xc_xcode_ut_test_gccxml_simple_init()

M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_simple_init ( void  )

Definition at line 522 of file test_gccxml_simple_xc.c.

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

Variable Documentation

◆ _enumfield

struct _enumfield_s _enumfield
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "enumfield",
.xct_sizeof = sizeof (struct enumfield),
.xct_nr = 4,
.xct_flags = 0,
}
}

◆ _fixarray

struct _fixarray_s _fixarray
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "fixarray",
.xct_sizeof = sizeof (struct fixarray),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _inlinearray

struct _inlinearray_s _inlinearray
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_ARRAY,
.xct_name = "inlinearray",
.xct_sizeof = sizeof (struct inlinearray),
.xct_nr = 1,
.xct_flags = 0,
}
}

◆ _optfid

struct _optfid_s _optfid
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_UNION,
.xct_name = "optfid",
.xct_sizeof = sizeof (struct optfid),
.xct_nr = 3,
.xct_flags = 0,
}
}

◆ _optfidarray

struct _optfidarray_s _optfidarray
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "optfidarray",
.xct_sizeof = sizeof (struct optfidarray),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ _testtypes

struct _testtypes_s _testtypes
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "testtypes",
.xct_sizeof = sizeof (struct testtypes),
.xct_nr = 7,
.xct_flags = 0,
}
}

◆ enumfield_xc

struct m0_xcode_type * enumfield_xc = &_enumfield._type

Definition at line 15 of file test_gccxml_simple_xc.c.

◆ fixarray_xc

struct m0_xcode_type * fixarray_xc = &_fixarray._type

Definition at line 12 of file test_gccxml_simple_xc.c.

◆ inlinearray_xc

struct m0_xcode_type * inlinearray_xc = &_inlinearray._type

Definition at line 14 of file test_gccxml_simple_xc.c.

◆ m0_xc_testbitmask_enum

struct m0_xcode_enum m0_xc_testbitmask_enum
Initial value:
= {
.xe_name = "testbitmask",
.xe_nr = 5,
.xe_val = testbitmask_data,
.xe_maxlen = 7
}
const struct m0_xcode_enum_val testbitmask_data[]

Definition at line 200 of file test_gccxml_simple_xc.c.

◆ m0_xc_testenum_enum

struct m0_xcode_enum m0_xc_testenum_enum
Initial value:
= {
.xe_name = "testenum",
.xe_nr = 4,
.xe_val = testenum_data,
.xe_maxlen = 5
}
const struct m0_xcode_enum_val testenum_data[]

Definition at line 185 of file test_gccxml_simple_xc.c.

◆ optfid_xc

struct m0_xcode_type * optfid_xc = &_optfid._type

Definition at line 10 of file test_gccxml_simple_xc.c.

◆ optfidarray_xc

struct m0_xcode_type * optfidarray_xc = &_optfidarray._type

Definition at line 11 of file test_gccxml_simple_xc.c.

◆ testbitmask_data

const struct m0_xcode_enum_val testbitmask_data[]
Initial value:
= {
{ .xev_idx = 0, .xev_name = "BM_ZERO", .xev_val = 1 },
{ .xev_idx = 1, .xev_name = "BM_SIX", .xev_val = 64 },
{ .xev_idx = 2, .xev_name = "BM_FOUR", .xev_val = 16 },
{ .xev_idx = 3, .xev_name = "BM_NINE", .xev_val = 512 },
{ .xev_idx = 4, .xev_name = "BM_FIVE", .xev_val = 32 },
{ .xev_idx = -1, .xev_name = "Invalid value of enum 'testbitmask'." }
}

Definition at line 191 of file test_gccxml_simple_xc.c.

◆ testenum_data

const struct m0_xcode_enum_val testenum_data[]
Initial value:
= {
{ .xev_idx = 0, .xev_name = "TE_0", .xev_val = 0 },
{ .xev_idx = 1, .xev_name = "TE_1", .xev_val = 1 },
{ .xev_idx = 2, .xev_name = "TE_5", .xev_val = 5 },
{ .xev_idx = 3, .xev_name = "TE_33", .xev_val = 33 },
{ .xev_idx = -1, .xev_name = "Invalid value of enum 'testenum'." }
}

Definition at line 177 of file test_gccxml_simple_xc.c.

◆ testtypes_xc

struct m0_xcode_type * testtypes_xc = &_testtypes._type

Definition at line 13 of file test_gccxml_simple_xc.c.