From 0177730e7e0c099d1250571eb39367a76e2d91eb Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Mon, 13 Jun 2011 16:24:23 +0200 Subject: Split out study magic from pos magic. study uses magic to call SvSCREAM_off() if the scalar is modified. Allocate it its own magic type ('G' for now - pos magic is 'g'). Share the same "set" routine and vtable as regexp/bm/fm (setregxp and vtbl_regexp). --- mg_raw.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mg_raw.h') diff --git a/mg_raw.h b/mg_raw.h index e698dcdf76..7a45e6de0f 100644 --- a/mg_raw.h +++ b/mg_raw.h @@ -38,8 +38,10 @@ "/* envelem 'e' %ENV hash element */" }, { 'f', "want_vtbl_regdata | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC", "/* fm 'f' Formline ('compiled' format) */" }, + { 'G', "want_vtbl_regexp | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC", + "/* study 'G' study()ed string */" }, { 'g', "want_vtbl_mglob | PERL_MAGIC_READONLY_ACCEPTABLE | PERL_MAGIC_VALUE_MAGIC", - "/* regex_global 'g' m//g target / study()ed string */" }, + "/* regex_global 'g' m//g target */" }, { 'H', "want_vtbl_hints", "/* hints 'H' %^H hash */" }, { 'h', "want_vtbl_hintselem", -- cgit v1.2.1