summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-11-26 18:54:13 +0000
committerNicholas Clark <nick@ccl4.org>2008-11-26 18:54:13 +0000
commite3cf49e2e2df78528afdd14c4a3219cf5059e6eb (patch)
tree7b2e596d469563427ab0b39305d402c3d7e020af
parent11cd919dc47cef55287cce0322d44e19aecf3127 (diff)
downloadperl-e3cf49e2e2df78528afdd14c4a3219cf5059e6eb.tar.gz
vdie() isn't used anywhere aside from util.c, so it can be static.
p4raw-id: //depot/perl@34923
-rw-r--r--embed.fnc2
-rw-r--r--embed.h4
-rw-r--r--proto.h2
-rw-r--r--util.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/embed.fnc b/embed.fnc
index 598deed59b..37b77564d9 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -197,7 +197,7 @@ pM |void |delete_eval_scope
p |void |deprecate |NN const char *const s
p |void |deprecate_old |NN const char *const s
Afp |OP* |die |NULLOK const char* pat|...
-p |OP* |vdie |NULLOK const char* pat|NULLOK va_list* args
+s |OP* |vdie |NULLOK const char* pat|NULLOK va_list* args
p |OP* |die_where |NULLOK const char* message|STRLEN msglen
Ap |void |dounwind |I32 cxix
pmb |bool |do_aexec |NULLOK SV* really|NN SV** mark|NN SV** sp
diff --git a/embed.h b/embed.h
index 88c241cb44..47ca12c430 100644
--- a/embed.h
+++ b/embed.h
@@ -160,7 +160,7 @@
#endif
#define die Perl_die
#ifdef PERL_CORE
-#define vdie Perl_vdie
+#define vdie S_vdie
#define die_where Perl_die_where
#endif
#define dounwind Perl_dounwind
@@ -2471,7 +2471,7 @@
#define deprecate_old(a) Perl_deprecate_old(aTHX_ a)
#endif
#ifdef PERL_CORE
-#define vdie(a,b) Perl_vdie(aTHX_ a,b)
+#define vdie(a,b) S_vdie(aTHX_ a,b)
#define die_where(a,b) Perl_die_where(aTHX_ a,b)
#endif
#define dounwind(a) Perl_dounwind(aTHX_ a)
diff --git a/proto.h b/proto.h
index b6c0e57241..8d25afb7e5 100644
--- a/proto.h
+++ b/proto.h
@@ -538,7 +538,7 @@ PERL_CALLCONV void Perl_deprecate_old(pTHX_ const char *const s)
PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...)
__attribute__format__null_ok__(__printf__,pTHX_1,pTHX_2);
-PERL_CALLCONV OP* Perl_vdie(pTHX_ const char* pat, va_list* args);
+STATIC OP* S_vdie(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV OP* Perl_die_where(pTHX_ const char* message, STRLEN msglen);
PERL_CALLCONV void Perl_dounwind(pTHX_ I32 cxix);
/* PERL_CALLCONV bool Perl_do_aexec(pTHX_ SV* really, SV** mark, SV** sp)
diff --git a/util.c b/util.c
index aebc8efa75..0c15c56c08 100644
--- a/util.c
+++ b/util.c
@@ -1363,7 +1363,7 @@ S_vdie_croak_common(pTHX_ const char* pat, va_list* args, STRLEN* msglen,
}
OP *
-Perl_vdie(pTHX_ const char* pat, va_list *args)
+S_vdie(pTHX_ const char* pat, va_list *args)
{
dVAR;
const char *message;