redesigned lists to GLists

This commit is contained in:
2018-05-07 15:57:47 +02:00
parent bc28446ce4
commit f20a59eb30
4 changed files with 79 additions and 78 deletions

9
main.c
View File

@@ -1,17 +1,14 @@
#include <stdio.h>
#include "gdsparse.h"
int main()
{
struct gds_library *libs;
GList *libs = NULL;
unsigned int count = 0;
int i = 0;
parse_gds_from_file("/home/mari/Desktop/test.gds", &libs, &count);
parse_gds_from_file("/home/mari/Desktop/test.gds", &libs);
printf("Lib count: %u\n", count);
for (i = 0; i < count; i++) {
printf("Lib %s: %d cells\n", libs[i].name, libs[i].cells_count);
}
return 0;
}