Compare commits
4 Commits
906225f47f
...
0d6b2c7a36
Author | SHA1 | Date | |
---|---|---|---|
0d6b2c7a36 | |||
583f01faae | |||
795d496949 | |||
6ebd05007e |
@ -325,13 +325,13 @@ ret_clear_layers:
|
|||||||
}
|
}
|
||||||
free(layers);
|
free(layers);
|
||||||
|
|
||||||
printf("cairo export finished. It might still be buggy!\n");
|
printf("Cairo export finished. It might still be buggy!\n");
|
||||||
|
|
||||||
/* If forked, suspend process */
|
/* If forked, suspend process */
|
||||||
if (process_id == 0)
|
if (process_id == 0)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
/* fork didn't work. Just return here */
|
/* Fork didn't work. Just return here */
|
||||||
return;
|
return;
|
||||||
ret_parent:
|
ret_parent:
|
||||||
waitpid(process_id, NULL, 0);
|
waitpid(process_id, NULL, 0);
|
||||||
|
@ -53,7 +53,8 @@
|
|||||||
#define GDS_WARN(fmt, ...) printf("[PARSE_WARNING] " fmt "\n", ##__VA_ARGS__) /**< @brief Print GDS warning */
|
#define GDS_WARN(fmt, ...) printf("[PARSE_WARNING] " fmt "\n", ##__VA_ARGS__) /**< @brief Print GDS warning */
|
||||||
|
|
||||||
#if GDS_PRINT_DEBUG_INFOS
|
#if GDS_PRINT_DEBUG_INFOS
|
||||||
#define GDS_INF(fmt, ...) printf(fmt, ##__VA_ARGS__) /**< @brief standard printf. But can be disabled in code */
|
/**< @brief standard printf. But can be disabled in code. */
|
||||||
|
#define GDS_INF(fmt, ...) printf(fmt, ##__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define GDS_INF(fmt, ...)
|
#define GDS_INF(fmt, ...)
|
||||||
#endif
|
#endif
|
||||||
@ -813,7 +814,7 @@ int parse_gds_from_file(const char *filename, GList **library_list)
|
|||||||
if (current_s_reference) {
|
if (current_s_reference) {
|
||||||
name_cell_ref(current_s_reference, (unsigned int)read, workbuff);
|
name_cell_ref(current_s_reference, (unsigned int)read, workbuff);
|
||||||
} else {
|
} else {
|
||||||
GDS_ERROR("reference name set outside of cell reference.\n");
|
GDS_ERROR("Reference name set outside of cell reference");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WIDTH:
|
case WIDTH:
|
||||||
|
@ -37,7 +37,21 @@
|
|||||||
|
|
||||||
#define GDS_PRINT_DEBUG_INFOS (0) /**< @brief 1: Print infos, 0: Don't print */
|
#define GDS_PRINT_DEBUG_INFOS (0) /**< @brief 1: Print infos, 0: Don't print */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Parse a GDS file
|
||||||
|
*
|
||||||
|
* This function parses a GDS File and creates a list of libraries,
|
||||||
|
* which then contain the different cells.
|
||||||
|
*
|
||||||
|
* The function appends The detected libraries to the \p library_array list.
|
||||||
|
* The library array may be empty, meaning *library_list may be NULL.
|
||||||
|
*
|
||||||
|
* @param filename[in] Path to the GDS file
|
||||||
|
* @param library_array[in] GList Pointer.
|
||||||
|
* @return 0 if successful
|
||||||
|
*/
|
||||||
int parse_gds_from_file(const char *filename, GList **library_array);
|
int parse_gds_from_file(const char *filename, GList **library_array);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Deletes all libraries including cells, references etc.
|
* @brief Deletes all libraries including cells, references etc.
|
||||||
* @param library_list Pointer to a list of #gds_library. Is set to NULL after completion.
|
* @param library_list Pointer to a list of #gds_library. Is set to NULL after completion.
|
||||||
|
@ -112,6 +112,7 @@ unsigned int color_palette_get_color_count(ColorPalette *palette)
|
|||||||
|
|
||||||
static void color_palette_class_init(ColorPaletteClass *klass)
|
static void color_palette_class_init(ColorPaletteClass *klass)
|
||||||
{
|
{
|
||||||
|
(void)klass;
|
||||||
/* Nothing to do for now */
|
/* Nothing to do for now */
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user