Index: rats_patch.h =================================================================== --- rats_patch.h (revision 935) +++ rats_patch.h (revision 936) @@ -49,3 +49,7 @@ /* find the net entry for a pin (slow) */ LibraryMenuTypePtr rats_patch_find_net4pin(PCBTypePtr pcb, const char *pin); + +/* save all patch lines as an ordered list of text lines + if fmt is non-zero, generate pcb savefile compatible lines, else generate a back annotation patch */ +int rats_patch_fexport(PCBTypePtr pcb, FILE *f, int fmt_pcb);