Index: rats_patch.h =================================================================== --- rats_patch.h (revision 927) +++ rats_patch.h (revision 928) @@ -1,6 +1,12 @@ #include "global.h" + +/* Allocate and append a patch line to the patch list */ void rats_patch_append(PCBTypePtr pcb, rats_patch_op_t op, const char *id, const char *a1, const char *a2); +/* Same as rats_patch_append() but also optimize previous entries so that + redundant entries are removed */ +void rats_patch_append_optimize(PCBTypePtr pcb, rats_patch_op_t op, const char *id, const char *a1, const char *a2); + /* Create [NETLIST_EDITED] from [NETLIST_INPUT] applying the patch */ void rats_patch_make_edited(PCBTypePtr pcb);