Add defualt value for check results
This commit is contained in:
parent
0ef6d2f40f
commit
0b17c25ecc
@ -299,6 +299,8 @@ static GList *append_cell(GList *curr_list, struct gds_cell **cell_ptr)
|
|||||||
cell->graphic_objs = NULL;
|
cell->graphic_objs = NULL;
|
||||||
cell->name[0] = 0;
|
cell->name[0] = 0;
|
||||||
cell->parent_library = NULL;
|
cell->parent_library = NULL;
|
||||||
|
cell->checks.unresolved_child_count = GDS_CELL_CHECK_NOT_RUN;
|
||||||
|
cell->checks.affected_by_reference_loop = GDS_CELL_CHECK_NOT_RUN;
|
||||||
} else
|
} else
|
||||||
return NULL;
|
return NULL;
|
||||||
/* return cell */
|
/* return cell */
|
||||||
|
@ -40,6 +40,10 @@
|
|||||||
#define MIN(a,b) (((a) < (b)) ? (a) : (b)) /**< @brief Return smaller number */
|
#define MIN(a,b) (((a) < (b)) ? (a) : (b)) /**< @brief Return smaller number */
|
||||||
#define MAX(a,b) (((a) > (b)) ? (a) : (b)) /**< @brief Return bigger number */
|
#define MAX(a,b) (((a) > (b)) ? (a) : (b)) /**< @brief Return bigger number */
|
||||||
|
|
||||||
|
/** @brief Defintion of check counter default value
|
||||||
|
* that indicates that the corresponding check has not yet been executed */
|
||||||
|
enum {GDS_CELL_CHECK_NOT_RUN = -1};
|
||||||
|
|
||||||
/** @brief Types of graphic objects */
|
/** @brief Types of graphic objects */
|
||||||
enum graphics_type
|
enum graphics_type
|
||||||
{
|
{
|
||||||
@ -65,8 +69,8 @@ struct gds_point {
|
|||||||
* @brief Stores the result of the cell checks.
|
* @brief Stores the result of the cell checks.
|
||||||
*/
|
*/
|
||||||
struct gds_cell_checks {
|
struct gds_cell_checks {
|
||||||
int unresolved_child_count; /**< @brief Number of unresolved cell instances inside this cell */
|
int unresolved_child_count; /**< @brief Number of unresolved cell instances inside this cell. Default: GDS_CELL_CHECK_NOT_RUN */
|
||||||
int affected_by_reference_loop; /**< @brief 1 if the cell is affected by a reference loop and therefore not renderable */
|
int affected_by_reference_loop; /**< @brief 1 if the cell is affected by a reference loop and therefore not renderable. Default: GDS_CELL_CHECK_NOT_RUN*/
|
||||||
/**
|
/**
|
||||||
* @brief For the internal use of the checker.
|
* @brief For the internal use of the checker.
|
||||||
* @warning Do not use this structure and its contents!
|
* @warning Do not use this structure and its contents!
|
||||||
|
Loading…
Reference in New Issue
Block a user