mailinfo: get rid of function-local static states
commit269e239c48ac8f70248beb4539535af0ed930682
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Oct 2015 18:13:32 +0000 (13 11:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Oct 2015 22:36:37 +0000 (21 15:36 -0700)
tree34cd07a82057c5907b7a49c84358385cc71d8e2c
parentc1b40bd7b616792de5f307ecdfd8ac45573bc4f9
mailinfo: get rid of function-local static states

Two helper functions use "static int" in their scope to keep track
of the state while repeatedly getting called once for each input
line.  Move these state variables to their ultimate caller and pass
down pointers to them along the callchain, as a small step in
preparation for making this entire callchain more reentrant.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c