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

Go to the source code of this file.

Data Structures

struct  _package_s
 
struct  _package_p_name_s
 

Functions

int m0_package_cred_get (const struct m0_xcode_obj *par, const struct m0_xcode_type **out)
 
 M0_BASSERT (offsetof(struct _package_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (offsetof(struct _package_p_name_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
 
 M0_BASSERT (sizeof(struct package)==56U)
 
 M0_BASSERT (sizeof((struct package *) 0) ->p_fid==16U)
 
 M0_BASSERT (offsetof(struct package, p_fid)==0U)
 
 M0_BASSERT (offsetof(struct package, p_vec)==16U)
 
 M0_BASSERT (offsetof(struct package, p_cred)==32U)
 
 M0_BASSERT (offsetof(struct package, p_name)==40U)
 
 M0_BASSERT (sizeof(struct package_p_name)==16U)
 
 M0_BASSERT (sizeof((struct package_p_name *) 0) ->s_nr==4U)
 
 M0_BASSERT (offsetof(struct package_p_name, s_nr)==0U)
 
 M0_BASSERT (offsetof(struct package_p_name, s_data)==8U)
 
M0_INTERNAL void m0_xc_package_struct_init (void)
 
M0_INTERNAL void m0_xc_package_p_name_struct_init (void)
 
M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_init (void)
 
M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_fini (void)
 

Variables

struct m0_xcode_typepackage_xc = &_package._type
 
struct m0_xcode_typepackage_p_name_xc = &_package_p_name._type
 
static struct _package_s _package
 
static struct _package_p_name_s _package_p_name
 

Function Documentation

◆ M0_BASSERT() [1/12]

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

◆ M0_BASSERT() [2/12]

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

◆ M0_BASSERT() [3/12]

M0_BASSERT ( sizeof(struct package = =56U)

◆ M0_BASSERT() [4/12]

M0_BASSERT ( sizeof((struct package *) 0) ->  p_fid = =16U)

◆ M0_BASSERT() [5/12]

M0_BASSERT ( offsetof(struct package, p_fid = =0U)

◆ M0_BASSERT() [6/12]

M0_BASSERT ( offsetof(struct package, p_vec)  = =16U)

◆ M0_BASSERT() [7/12]

M0_BASSERT ( offsetof(struct package, p_cred)  = =32U)

◆ M0_BASSERT() [8/12]

M0_BASSERT ( offsetof(struct package, p_name)  = =40U)

◆ M0_BASSERT() [9/12]

M0_BASSERT ( sizeof(struct package_p_name)  = =16U)

◆ M0_BASSERT() [10/12]

M0_BASSERT ( sizeof((struct package_p_name *) 0) ->  s_nr = =4U)

◆ M0_BASSERT() [11/12]

M0_BASSERT ( offsetof(struct package_p_name, s_nr)  = =0U)

◆ M0_BASSERT() [12/12]

M0_BASSERT ( offsetof(struct package_p_name, s_data)  = =8U)

◆ m0_package_cred_get()

int m0_package_cred_get ( const struct m0_xcode_obj par,
const struct m0_xcode_type **  out 
)

Definition at line 1267 of file xcode.c.

Here is the caller graph for this function:

◆ m0_xc_package_p_name_struct_init()

M0_INTERNAL void m0_xc_package_p_name_struct_init ( void  )

Definition at line 135 of file test_gccxml_xc.c.

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

◆ m0_xc_package_struct_init()

M0_INTERNAL void m0_xc_package_struct_init ( void  )

Definition at line 70 of file test_gccxml_xc.c.

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

◆ m0_xc_xcode_ut_test_gccxml_fini()

M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_fini ( void  )

Definition at line 176 of file test_gccxml_xc.c.

◆ m0_xc_xcode_ut_test_gccxml_init()

M0_INTERNAL void m0_xc_xcode_ut_test_gccxml_init ( void  )

Definition at line 170 of file test_gccxml_xc.c.

Here is the call graph for this function:

Variable Documentation

◆ _package

struct _package_s _package
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_RECORD,
.xct_name = "package",
.xct_sizeof = sizeof (struct package),
.xct_nr = 4,
.xct_flags = 0,
}
}

◆ _package_p_name

struct _package_p_name_s _package_p_name
static
Initial value:
= {
._type = {
.xct_aggr = M0_XA_SEQUENCE,
.xct_name = "package_p_name",
.xct_sizeof = sizeof (struct package_p_name),
.xct_nr = 2,
.xct_flags = 0,
}
}

◆ package_p_name_xc

struct m0_xcode_type * package_p_name_xc = &_package_p_name._type

Definition at line 11 of file test_gccxml_xc.c.

◆ package_xc

struct m0_xcode_type * package_xc = &_package._type

Definition at line 10 of file test_gccxml_xc.c.