X-Git-Url: https://rtime.felk.cvut.cz/gitweb/git.git/blobdiff_plain/87b3c0117a340df61bdbac6794611c74696bd42a..57af58e888165db623925f25e290f1b9472fd5c9:/diffcore.h 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 *,