Index: work/alien_formats/altium_parser/pcbdoc_ascii.c =================================================================== --- work/alien_formats/altium_parser/pcbdoc_ascii.c (revision 35278) +++ work/alien_formats/altium_parser/pcbdoc_ascii.c (revision 35279) @@ -35,6 +35,13 @@ #define block_size 65536L +/* optional trace */ +#if 0 +# define tprintf printf +#else + static int tprintf(const char *fmt, ...) { return 0; } +#endif + int pcbdoc_ascii_test_parse(pcb_plug_io_t *ctx, pcb_plug_iot_t typ, const char *file_name, FILE *f) { char line[256], *s; @@ -127,7 +134,7 @@ for(blk = gdl_first(&tree->blocks); blk != NULL; blk = gdl_next(&tree->blocks, blk)) { char *s = blk->raw, *end; -printf("---blk---\n"); + tprintf("---blk---\n"); for(;;) { /* parse each line within the block */ int nl = 0; @@ -149,7 +156,7 @@ return -1; } *end = '\0'; -printf("rec='%s'\n", s); + tprintf("rec='%s'\n", s); s = end+1; /* parse fields */ @@ -180,7 +187,7 @@ else val = end; -printf(" %s=%s\n", key, val); + tprintf(" %s=%s\n", key, val); s = end+1; if (nl) break;