git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/5] rev-list: make "estimate_bisect_steps" non static

From
Christian Couder <chriscool@tuxfamily.org>
Date
Apr 19, 2009, 09:55 UTC
Message-ID
<20090419115538.2c8aae2a.chriscool@tuxfamily.org>
Because it will be used from "bisect.c" too.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
 bisect.h           |    2 ++
 builtin-rev-list.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/bisect.h b/bisect.h
index fdba913..cb37ddf 100644
--- a/bisect.h
+++ b/bisect.h
@@ -26,4 +26,6 @@ extern int show_bisect_vars(struct rev_list_info *info, int reaches, int all);
 
 extern int bisect_next_vars(const char *prefix);
 
+extern int estimate_bisect_steps(int all);
+
 #endif
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 38a8f23..4c5f5ee 100644
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
@@ -211,7 +211,7 @@ static inline int exp2i(int n)
  *
  * and P(2^n + x) < 0.5 means 2^n < 3x
  */
-static int estimate_bisect_steps(int all)
+int estimate_bisect_steps(int all)
 {
 	int n, x, e;
 
-- 
1.6.2.2.537.g3b83b
Message 1 of 1 in “rev-list: make "estimate_bisect_steps" non static”
  1. 1/5 rev-list: make "estimate_bisect_steps" non staticChristian Couder, Apr 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.