OSDN Git Service

Uninline prefixcmp()
authorJunio C Hamano <gitster@pobox.com>
Thu, 3 Jan 2008 09:23:12 +0000 (01:23 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Jan 2008 09:23:12 +0000 (01:23 -0800)
commit698a68be7b0df6dd8d0880e0e2167cad8688a6ad
tree8cb9dc608f12b52288524e4f20c59faa1d131157
parent257f3020f69f3222cdefc1d84b148fb35b2c4f5b
Uninline prefixcmp()

Now the routine is an open-coded loop that avoids an extra
strlen() in the previous implementation, it got a bit too big to
be inlined.  Uninlining it makes code footprint smaller but the
result still retains the avoidance of strlen() cost.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
strbuf.c