Skip to content

Commit

Permalink
Git.pm: Don't #define around die
Browse files Browse the repository at this point in the history
Back in the old days, we called Git's die() from the .xs code, but we had to
hijack Perl's die() for that. Now we don't call Git's die() so no need to do
the hijacking and it silences a compiler warning.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed Jul 3, 2006
1 parent d78f099 commit 65a4e98
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions perl/Git.xs
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@
#include "../cache.h"
#include "../exec_cmd.h"

#define die perlyshadow_die__

/* XS and Perl interface */
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"

#undef die


static char *
report_xs(const char *prefix, const char *err, va_list params)
Expand Down

0 comments on commit 65a4e98

Please sign in to comment.