summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-11-24 11:40:28 +0000
committerNicholas Clark <nick@ccl4.org>2007-11-24 11:40:28 +0000
commit16815324371ba58b10695db6d57346a07b27a2e5 (patch)
tree6a590229d5bcac78a1445130b5f61387a28f60fe /gv.c
parentb1233c72f2dabb53e03a3ecd66d79abc753b42e0 (diff)
downloadperl-16815324371ba58b10695db6d57346a07b27a2e5.tar.gz
Eliminating the duplicate logic in S_method_common() and
Perl_gv_fetchmethod_autoload() is clearly TODO. Move the paragraph "strcat(), strcpy(), strncat(), strncpy(), sprintf(), vsprintf()" to the section "Tasks that need a little C knowledge" as it doesn't need any XS knowledge. p4raw-id: //depot/perl@32478
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gv.c b/gv.c
index 9ab582d38d..88e9993b00 100644
--- a/gv.c
+++ b/gv.c
@@ -575,6 +575,17 @@ S_gv_get_super_pkg(pTHX_ const char* name, I32 namelen)
return stash;
}
+/* FIXME. If changing this function note the comment in pp_hot's
+ S_method_common:
+
+ This code tries to figure out just what went wrong with
+ gv_fetchmethod. It therefore needs to duplicate a lot of
+ the internals of that function. ...
+
+ I'd guess that with one more flag bit that could all be moved inside
+ here.
+*/
+
GV *
Perl_gv_fetchmethod_autoload(pTHX_ HV *stash, const char *name, I32 autoload)
{