Compare commits
No commits in common. "e7bf59aa8c517ac5a5d01948f4e9de5d99a295d0" and "8f788e262faa02ed189313dbc1ce1ee09c358b7a" have entirely different histories.
e7bf59aa8c
...
8f788e262f
@ -90,8 +90,7 @@ int gds_tree_check_cell_references(struct gds_library *lib)
|
|||||||
* @param cell Cell to check for
|
* @param cell Cell to check for
|
||||||
* @return 0 if cell is not in list. 1 if cell is in list
|
* @return 0 if cell is not in list. 1 if cell is in list
|
||||||
*/
|
*/
|
||||||
static int gds_tree_check_list_contains_cell(GList *list, struct gds_cell *cell)
|
static int gds_tree_check_list_contains_cell(GList *list, struct gds_cell *cell) {
|
||||||
{
|
|
||||||
GList *iter;
|
GList *iter;
|
||||||
|
|
||||||
for (iter = list; iter != NULL; iter = g_list_next(iter)) {
|
for (iter = list; iter != NULL; iter = g_list_next(iter)) {
|
||||||
@ -178,14 +177,12 @@ int gds_tree_check_reference_loops(struct gds_library *lib)
|
|||||||
res = gds_tree_check_iterate_ref_and_check(cell_to_check, &visited_cells);
|
res = gds_tree_check_iterate_ref_and_check(cell_to_check, &visited_cells);
|
||||||
|
|
||||||
if (visited_cells) {
|
if (visited_cells) {
|
||||||
/*
|
/* If cell contains no loop, print error when list not empty.
|
||||||
* If cell contains no loop, print error when list not empty.
|
|
||||||
* In case of a loop, it is completely normal that the list is not empty,
|
* In case of a loop, it is completely normal that the list is not empty,
|
||||||
* due to the instant return from gds_tree_check_iterate_ref_and_check()
|
* due to the instant return from gds_tree_check_iterate_ref_and_check()
|
||||||
*/
|
*/
|
||||||
if (res == 0)
|
if (res == 0)
|
||||||
fprintf(stderr,
|
fprintf(stderr, "Visited cell list should be empty. This is a bug. Please report this.\n");
|
||||||
"Visited cell list should be empty. This is a bug. Please report this.\n");
|
|
||||||
g_list_free(visited_cells);
|
g_list_free(visited_cells);
|
||||||
visited_cells = NULL;
|
visited_cells = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user