X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=diffcore.h;h=491bea0b44963461cfce30b07ec96a9005a3c910;hb=5bfd53629e93113a17fe7d6a7a24554dc3c17cdb;hp=fcd00bf27aee4e1f2823f05ab3dba1d3c70a509d;hpb=035bf8d7c484b82e3e278af8c91584ae724cb5d4;p=git.git diff --git a/diffcore.h b/diffcore.h index fcd00bf27..491bea0b4 100644 --- a/diffcore.h +++ b/diffcore.h @@ -91,7 +91,14 @@ struct diff_queue_struct { struct diff_filepair **queue; int alloc; int nr; + int run; }; +#define DIFF_QUEUE_CLEAR(q) \ + do { \ + (q)->queue = NULL; \ + (q)->nr = (q)->alloc = 0; \ + (q)->run = 0; \ + } while(0); extern struct diff_queue_struct diff_queued_diff; extern struct diff_filepair *diff_queue(struct diff_queue_struct *,