Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 23338) +++ trunk/src/plug_io.c (revision 23339) @@ -812,11 +812,10 @@ /* --------------------------------------------------------------------------- * writes the quoted string created by another subroutine */ -void pcb_print_quoted_string(FILE * FP, const char *S) +void pcb_print_quoted_string_(FILE * FP, const char *S) { const char *start; - fputc('"', FP); for(start = S; *S != '\0'; S++) { if (*S == '"' || *S == '\\') { if (start != S) @@ -829,8 +828,13 @@ if (start != S) fwrite(start, S-start, 1, FP); +} +void pcb_print_quoted_string(FILE *FP, const char *S) +{ fputc('"', FP); + pcb_print_quoted_string_(FP, S); + fputc('"', FP); } /* --------------------------------------------------------------------------- Index: trunk/src/plug_io.h =================================================================== --- trunk/src/plug_io.h (revision 23338) +++ trunk/src/plug_io.h (revision 23339) @@ -128,7 +128,8 @@ int pcb_revert_pcb(void); int pcb_save_buffer_elements(const char *, const char *fmt); void pcb_sort_netlist(void); -void pcb_print_quoted_string(FILE *, const char *); +void pcb_print_quoted_string_(FILE *, const char *); /* without wrapping in "" */ +void pcb_print_quoted_string(FILE *, const char *); /* with wrapping in "" */ void pcb_library_sort(pcb_lib_t *lib); void pcb_set_some_route_style(); int pcb_write_pcb_file(const char *Filename, pcb_bool thePcb, const char *fmt, pcb_bool emergency, pcb_bool elem_only);