Compare commits

..

No commits in common. "0d6b2c7a36ea5745267f3a0cd79a2dd95a06644d" and "906225f47f42300f7ffce3ec2bea67b41a35833e" have entirely different histories.

4 changed files with 4 additions and 20 deletions

View File

@ -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);

View File

@ -53,8 +53,7 @@
#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
/**< @brief standard printf. But can be disabled in code. */ #define GDS_INF(fmt, ...) printf(fmt, ##__VA_ARGS__) /**< @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
@ -814,7 +813,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"); GDS_ERROR("reference name set outside of cell reference.\n");
} }
break; break;
case WIDTH: case WIDTH:

View File

@ -37,21 +37,7 @@
#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.

View File

@ -112,7 +112,6 @@ 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;
} }