Re: [PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:52:23

Johannes Sixt [off-list ref] writes:
Commit f696543d (Add strtoimax() compatibility function) introduced an
implementation of the function, but forgot to add a declaration.

Signed-off-by: Johannes Sixt <redacted>
---
Thanks, but I think f696543d is v1.7.6 and not that patch.  I hope you do
not mind if I just squashed this in, instead of leaving it as a separate
patch.
quoted hunk
 git-compat-util.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/git-compat-util.h b/git-compat-util.h
index feb6f8e..4efef46 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -354,6 +354,8 @@ extern size_t gitstrlcpy(char *, const char *, size_t);
 #ifdef NO_STRTOUMAX
 #define strtoumax gitstrtoumax
 extern uintmax_t gitstrtoumax(const char *, char **, int);
+#define strtoimax gitstrtoimax
+extern intmax_t gitstrtoimax(const char *, char **, int);
 #endif
 
 #ifdef NO_STRTOK_R

Re: [PATCH na/strtoimax] Compatibility: declare strtoimax() under NO_STRTOUMAX

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:52:23

Am 06.11.2011 07:10, schrieb Junio C Hamano:
Johannes Sixt [off-list ref] writes:
quoted
Commit f696543d (Add strtoimax() compatibility function) introduced an
implementation of the function, but forgot to add a declaration.

Signed-off-by: Johannes Sixt <redacted>
---
Thanks, but I think f696543d is v1.7.6 and not that patch.
Oops, sorry for that.
 I hope you do
not mind if I just squashed this in, instead of leaving it as a separate
patch.
I do not mind at all.

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help