* [PATCH] Git.xs: older perl do not know const char *
@ 2006-07-02 9:53 Johannes Schindelin
2006-07-02 21:52 ` Petr Baudis
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2006-07-02 9:53 UTC (permalink / raw)
To: Petr Baudis; +Cc: Junio C Hamano, git
Both of these casts _should_ be safe, since you do not want to muck around
with the version or the path anyway.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
---
perl/Git.xs | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/perl/Git.xs b/perl/Git.xs
index 51bfac3..c824210 100644
--- a/perl/Git.xs
+++ b/perl/Git.xs
@@ -59,7 +59,7 @@ BOOT:
# /* TODO: xs_call_gate(). See Git.pm. */
-const char *
+char *
xs_version()
CODE:
{
@@ -69,11 +69,11 @@ OUTPUT:
RETVAL
-const char *
+char *
xs_exec_path()
CODE:
{
- RETVAL = git_exec_path();
+ RETVAL = (char *)git_exec_path();
}
OUTPUT:
RETVAL
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Git.xs: older perl do not know const char *
2006-07-02 9:53 [PATCH] Git.xs: older perl do not know const char * Johannes Schindelin
@ 2006-07-02 21:52 ` Petr Baudis
2006-07-02 22:39 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Petr Baudis @ 2006-07-02 21:52 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: Junio C Hamano, git
Dear diary, on Sun, Jul 02, 2006 at 11:53:03AM CEST, I got a letter
where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...
> Both of these casts _should_ be safe, since you do not want to muck around
> with the version or the path anyway.
>
> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Acked-by: Petr Baudis <pasky@suse.cz>
It isn't all that great but it seems everything xs does with this is to
feed it to sv_setpv() which AFAIK copies it around.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Snow falling on Perl. White noise covering line noise.
Hides all the bugs too. -- J. Putnam
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Git.xs: older perl do not know const char *
2006-07-02 21:52 ` Petr Baudis
@ 2006-07-02 22:39 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2006-07-02 22:39 UTC (permalink / raw)
To: Petr Baudis; +Cc: Johannes Schindelin, git
Petr Baudis <pasky@suse.cz> writes:
> Dear diary, on Sun, Jul 02, 2006 at 11:53:03AM CEST, I got a letter
> where Johannes Schindelin <Johannes.Schindelin@gmx.de> said that...
>> Both of these casts _should_ be safe, since you do not want to muck around
>> with the version or the path anyway.
>>
>> Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
>
> Acked-by: Petr Baudis <pasky@suse.cz>
>
> It isn't all that great but it seems everything xs does with this is to
> feed it to sv_setpv() which AFAIK copies it around.
Thanks. Already applied but not pushed out yet (I am working on
tracking down unrelated breakage in tests).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-02 22:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-02 9:53 [PATCH] Git.xs: older perl do not know const char * Johannes Schindelin
2006-07-02 21:52 ` Petr Baudis
2006-07-02 22:39 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).