Code and spelling improvements
This commit is contained in:
parent
e739305f46
commit
f2b02c0c1f
@ -182,7 +182,7 @@ static double gds_convert_double(const char *data)
|
|||||||
if (data[i] != 0)
|
if (data[i] != 0)
|
||||||
break;
|
break;
|
||||||
if (i == 7) {
|
if (i == 7) {
|
||||||
/* 7 bytes all 0 */
|
/* All 8 bytes are 0 */
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -376,9 +376,9 @@ static GList *append_cell_ref(GList *curr_list, struct gds_cell_instance **insta
|
|||||||
if (inst) {
|
if (inst) {
|
||||||
inst->cell_ref = NULL;
|
inst->cell_ref = NULL;
|
||||||
inst->ref_name[0] = 0;
|
inst->ref_name[0] = 0;
|
||||||
inst->magnification = 1;
|
inst->magnification = 1.0;
|
||||||
inst->flipped = 0;
|
inst->flipped = 0;
|
||||||
inst->angle = 0;
|
inst->angle = 0.0;
|
||||||
} else
|
} else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
@ -733,7 +733,7 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
|
|
||||||
current_cell->parent_library = current_lib;
|
current_cell->parent_library = current_lib;
|
||||||
|
|
||||||
GDS_INF("Entering Cell\n");
|
GDS_INF("Entering cell\n");
|
||||||
break;
|
break;
|
||||||
case ENDSTR:
|
case ENDSTR:
|
||||||
if (current_cell == NULL) {
|
if (current_cell == NULL) {
|
||||||
@ -800,7 +800,6 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
break;
|
break;
|
||||||
case ENDEL:
|
case ENDEL:
|
||||||
if (current_graphics != NULL) {
|
if (current_graphics != NULL) {
|
||||||
|
|
||||||
GDS_INF("\tLeaving %s\n", (current_graphics->gfx_type == GRAPHIC_POLYGON ? "boundary" : "path"));
|
GDS_INF("\tLeaving %s\n", (current_graphics->gfx_type == GRAPHIC_POLYGON ? "boundary" : "path"));
|
||||||
current_graphics = NULL;
|
current_graphics = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user