summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-10-06 23:58:13 +0000
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-10-06 23:58:13 +0000
commitf6aff53ad72449dfefc5f6d9d303886bbb4ae545 (patch)
treecd85b258408b83f3ec2e3a02c989d3f58f4a76af /gv.c
parent85581909df34d9ffca6c85cafeb2595c4cb89ffb (diff)
downloadperl-f6aff53ad72449dfefc5f6d9d303886bbb4ae545.tar.gz
perl 5.003_06: dump.c embed.h gv.c run.c
Restore the 5.003 gv_fullname() and gv_efullname() functions. Provide new 3-arg forms gv_fullname3() and gv_efullname3().
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c24
1 files changed, 21 insertions, 3 deletions
diff --git a/gv.c b/gv.c
index 455e785e1b..69fc013bae 100644
--- a/gv.c
+++ b/gv.c
@@ -687,7 +687,7 @@ I32 sv_type;
}
void
-gv_fullname(sv, gv, prefix)
+gv_fullname3(sv, gv, prefix)
SV *sv;
GV *gv;
char *prefix;
@@ -704,7 +704,7 @@ char *prefix;
}
void
-gv_efullname(sv, gv, prefix)
+gv_efullname3(sv, gv, prefix)
SV *sv;
GV *gv;
char *prefix;
@@ -712,7 +712,25 @@ char *prefix;
GV *egv = GvEGV(gv);
if (!egv)
egv = gv;
- gv_fullname(sv, egv, prefix);
+ gv_fullname3(sv, egv, prefix);
+}
+
+/* XXX compatibility with versions <= 5.003. */
+void
+gv_fullname(sv,gv)
+SV *sv;
+GV *gv;
+{
+ gv_fullname3(sv, gv, sv == (SV*)gv ? "*" : "");
+}
+
+/* XXX compatibility with versions <= 5.003. */
+void
+gv_efullname(sv,gv)
+SV *sv;
+GV *gv;
+{
+ gv_efullname3(sv, gv, sv == (SV*)gv ? "*" : "");
}
IO *