summaryrefslogtreecommitdiff
path: root/mg_vtable.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-15 16:33:02 +0100
committerNicholas Clark <nick@ccl4.org>2011-06-11 10:40:00 +0200
commit23cfd2fcc891e2298c078e093010af5bdb902cc6 (patch)
tree6bef879b1327a93bb53e0ca3d4d8718870ba7834 /mg_vtable.h
parent52f4950575a77c74948f90dd3e24ac66b684eb4a (diff)
downloadperl-23cfd2fcc891e2298c078e093010af5bdb902cc6.tar.gz
Sort magic and magic vtable names in files generated by mg_vtable.pl
Magic is sorted case insensitively, with upper case before lower case. vtable names are all lowercase letters.
Diffstat (limited to 'mg_vtable.h')
-rw-r--r--mg_vtable.h146
1 files changed, 73 insertions, 73 deletions
diff --git a/mg_vtable.h b/mg_vtable.h
index 45ee1ae389..8846262ebe 100644
--- a/mg_vtable.h
+++ b/mg_vtable.h
@@ -13,10 +13,16 @@
*/
#define PERL_MAGIC_sv '\0' /* Special scalar variable */
+#define PERL_MAGIC_arylen '#' /* Array length ($#ary) */
+#define PERL_MAGIC_rhash '%' /* extra data for restricted hashes */
+#define PERL_MAGIC_pos '.' /* pos() lvalue */
+#define PERL_MAGIC_symtab ':' /* extra data for symbol tables */
+#define PERL_MAGIC_backref '<' /* for weak ref data */
+#define PERL_MAGIC_arylen_p '@' /* to move arylen out of XPVAV */
#define PERL_MAGIC_overload 'A' /* %OVERLOAD hash */
#define PERL_MAGIC_overload_elem 'a' /* %OVERLOAD hash element */
-#define PERL_MAGIC_overload_table 'c' /* Holds overload table (AMT) on stash */
#define PERL_MAGIC_bm 'B' /* Boyer-Moore (fast string search) */
+#define PERL_MAGIC_overload_table 'c' /* Holds overload table (AMT) on stash */
#define PERL_MAGIC_regdata 'D' /* Regex match position data
(@+ and @- vars) */
#define PERL_MAGIC_regdatum 'd' /* Regex match position data element */
@@ -43,87 +49,81 @@
#define PERL_MAGIC_taint 't' /* Taintedness */
#define PERL_MAGIC_uvar 'U' /* Available for use by extensions */
#define PERL_MAGIC_uvar_elem 'u' /* Reserved for use by extensions */
-#define PERL_MAGIC_vec 'v' /* vec() lvalue */
#define PERL_MAGIC_vstring 'V' /* SV was vstring literal */
+#define PERL_MAGIC_vec 'v' /* vec() lvalue */
#define PERL_MAGIC_utf8 'w' /* Cached UTF-8 information */
#define PERL_MAGIC_substr 'x' /* substr() lvalue */
#define PERL_MAGIC_defelem 'y' /* Shadow "foreach" iterator variable /
smart parameter vivification */
-#define PERL_MAGIC_arylen '#' /* Array length ($#ary) */
-#define PERL_MAGIC_pos '.' /* pos() lvalue */
-#define PERL_MAGIC_backref '<' /* for weak ref data */
-#define PERL_MAGIC_symtab ':' /* extra data for symbol tables */
-#define PERL_MAGIC_rhash '%' /* extra data for restricted hashes */
-#define PERL_MAGIC_arylen_p '@' /* to move arylen out of XPVAV */
-#define PERL_MAGIC_ext '~' /* Available for use by extensions */
#define PERL_MAGIC_checkcall ']' /* inlining/mutation of call to this CV */
+#define PERL_MAGIC_ext '~' /* Available for use by extensions */
enum { /* pass one of these to get_vtbl */
- want_vtbl_sv,
+ want_vtbl_amagic,
+ want_vtbl_amagicelem,
+ want_vtbl_arylen,
+ want_vtbl_arylen_p,
+ want_vtbl_backref,
+ want_vtbl_collxfrm,
+ want_vtbl_dbline,
+ want_vtbl_defelem,
want_vtbl_env,
want_vtbl_envelem,
- want_vtbl_sigelem,
- want_vtbl_pack,
- want_vtbl_packelem,
- want_vtbl_dbline,
+ want_vtbl_hints,
+ want_vtbl_hintselem,
want_vtbl_isa,
want_vtbl_isaelem,
- want_vtbl_arylen,
- want_vtbl_arylen_p,
want_vtbl_mglob,
want_vtbl_nkeys,
- want_vtbl_taint,
- want_vtbl_substr,
- want_vtbl_vec,
+ want_vtbl_ovrld,
+ want_vtbl_pack,
+ want_vtbl_packelem,
want_vtbl_pos,
- want_vtbl_uvar,
- want_vtbl_defelem,
- want_vtbl_regexp,
want_vtbl_regdata,
want_vtbl_regdatum,
- want_vtbl_amagic,
- want_vtbl_amagicelem,
- want_vtbl_backref,
- want_vtbl_ovrld,
+ want_vtbl_regexp,
+ want_vtbl_sigelem,
+ want_vtbl_substr,
+ want_vtbl_sv,
+ want_vtbl_taint,
want_vtbl_utf8,
- want_vtbl_collxfrm,
- want_vtbl_hintselem,
- want_vtbl_hints,
+ want_vtbl_uvar,
+ want_vtbl_vec,
magic_vtable_max
};
#ifdef DOINIT
EXTCONST char *PL_magic_vtable_names[magic_vtable_max] = {
- "sv",
+ "amagic",
+ "amagicelem",
+ "arylen",
+ "arylen_p",
+ "backref",
+ "collxfrm",
+ "dbline",
+ "defelem",
"env",
"envelem",
- "sigelem",
- "pack",
- "packelem",
- "dbline",
+ "hints",
+ "hintselem",
"isa",
"isaelem",
- "arylen",
- "arylen_p",
"mglob",
"nkeys",
- "taint",
- "substr",
- "vec",
+ "ovrld",
+ "pack",
+ "packelem",
"pos",
- "uvar",
- "defelem",
- "regexp",
"regdata",
"regdatum",
- "amagic",
- "amagicelem",
- "backref",
- "ovrld",
+ "regexp",
+ "sigelem",
+ "substr",
+ "sv",
+ "taint",
"utf8",
- "collxfrm",
- "hintselem",
- "hints"
+ "uvar",
+ "vec"
};
#else
EXTCONST char *PL_magic_vtable_names[magic_vtable_max];
@@ -148,44 +148,44 @@ EXTCONST char *PL_magic_vtable_names[magic_vtable_max];
#ifdef DOINIT
EXT_MGVTBL PL_magic_vtables[magic_vtable_max] = {
- { Perl_magic_get, Perl_magic_set, Perl_magic_len, 0, 0, 0, 0, 0 },
- { 0, Perl_magic_set_all_env, 0, Perl_magic_clear_all_env, 0, 0, 0, 0 },
- { 0, Perl_magic_setenv, 0, Perl_magic_clearenv, 0, 0, 0, 0 },
-#ifndef PERL_MICRO
- { Perl_magic_getsig, Perl_magic_setsig, 0, Perl_magic_clearsig, 0, 0, 0, 0 },
+ { 0, Perl_magic_setamagic, 0, 0, Perl_magic_setamagic, 0, 0, 0 },
+ { 0, Perl_magic_setamagic, 0, 0, Perl_magic_setamagic, 0, 0, 0 },
+ { (int (*)(pTHX_ SV *, MAGIC *))Perl_magic_getarylen, Perl_magic_setarylen, 0, 0, 0, 0, 0, 0 },
+ { 0, 0, 0, 0, Perl_magic_freearylen_p, 0, 0, 0 },
+ { 0, 0, 0, 0, Perl_magic_killbackrefs, 0, 0, 0 },
+#ifdef USE_LOCALE_COLLATE
+ { 0, Perl_magic_setcollxfrm, 0, 0, 0, 0, 0, 0 },
#else
{ 0, 0, 0, 0, 0, 0, 0, 0 },
#endif
- { 0, 0, Perl_magic_sizepack, Perl_magic_wipepack, 0, 0, 0, 0 },
- { Perl_magic_getpack, Perl_magic_setpack, 0, Perl_magic_clearpack, 0, 0, 0, 0 },
{ 0, Perl_magic_setdbline, 0, 0, 0, 0, 0, 0 },
+ { Perl_magic_getdefelem, Perl_magic_setdefelem, 0, 0, 0, 0, 0, 0 },
+ { 0, Perl_magic_set_all_env, 0, Perl_magic_clear_all_env, 0, 0, 0, 0 },
+ { 0, Perl_magic_setenv, 0, Perl_magic_clearenv, 0, 0, 0, 0 },
+ { 0, 0, 0, Perl_magic_clearhints, 0, 0, 0, 0 },
+ { 0, Perl_magic_sethint, 0, Perl_magic_clearhint, 0, 0, 0, 0 },
{ 0, Perl_magic_setisa, 0, Perl_magic_clearisa, 0, 0, 0, 0 },
{ 0, Perl_magic_setisa, 0, 0, 0, 0, 0, 0 },
- { (int (*)(pTHX_ SV *, MAGIC *))Perl_magic_getarylen, Perl_magic_setarylen, 0, 0, 0, 0, 0, 0 },
- { 0, 0, 0, 0, Perl_magic_freearylen_p, 0, 0, 0 },
{ 0, Perl_magic_setmglob, 0, 0, 0, 0, 0, 0 },
{ Perl_magic_getnkeys, Perl_magic_setnkeys, 0, 0, 0, 0, 0, 0 },
- { Perl_magic_gettaint, Perl_magic_settaint, 0, 0, 0, 0, 0, 0 },
- { Perl_magic_getsubstr, Perl_magic_setsubstr, 0, 0, 0, 0, 0, 0 },
- { Perl_magic_getvec, Perl_magic_setvec, 0, 0, 0, 0, 0, 0 },
+ { 0, 0, 0, 0, Perl_magic_freeovrld, 0, 0, 0 },
+ { 0, 0, Perl_magic_sizepack, Perl_magic_wipepack, 0, 0, 0, 0 },
+ { Perl_magic_getpack, Perl_magic_setpack, 0, Perl_magic_clearpack, 0, 0, 0, 0 },
{ Perl_magic_getpos, Perl_magic_setpos, 0, 0, 0, 0, 0, 0 },
- { Perl_magic_getuvar, Perl_magic_setuvar, 0, 0, 0, 0, 0, 0 },
- { Perl_magic_getdefelem, Perl_magic_setdefelem, 0, 0, 0, 0, 0, 0 },
- { 0, Perl_magic_setregexp, 0, 0, 0, 0, 0, 0 },
{ 0, 0, Perl_magic_regdata_cnt, 0, 0, 0, 0, 0 },
{ Perl_magic_regdatum_get, Perl_magic_regdatum_set, 0, 0, 0, 0, 0, 0 },
- { 0, Perl_magic_setamagic, 0, 0, Perl_magic_setamagic, 0, 0, 0 },
- { 0, Perl_magic_setamagic, 0, 0, Perl_magic_setamagic, 0, 0, 0 },
- { 0, 0, 0, 0, Perl_magic_killbackrefs, 0, 0, 0 },
- { 0, 0, 0, 0, Perl_magic_freeovrld, 0, 0, 0 },
- { 0, Perl_magic_setutf8, 0, 0, 0, 0, 0, 0 },
-#ifdef USE_LOCALE_COLLATE
- { 0, Perl_magic_setcollxfrm, 0, 0, 0, 0, 0, 0 },
+ { 0, Perl_magic_setregexp, 0, 0, 0, 0, 0, 0 },
+#ifndef PERL_MICRO
+ { Perl_magic_getsig, Perl_magic_setsig, 0, Perl_magic_clearsig, 0, 0, 0, 0 },
#else
{ 0, 0, 0, 0, 0, 0, 0, 0 },
#endif
- { 0, Perl_magic_sethint, 0, Perl_magic_clearhint, 0, 0, 0, 0 },
- { 0, 0, 0, Perl_magic_clearhints, 0, 0, 0, 0 }
+ { Perl_magic_getsubstr, Perl_magic_setsubstr, 0, 0, 0, 0, 0, 0 },
+ { Perl_magic_get, Perl_magic_set, Perl_magic_len, 0, 0, 0, 0, 0 },
+ { Perl_magic_gettaint, Perl_magic_settaint, 0, 0, 0, 0, 0, 0 },
+ { 0, Perl_magic_setutf8, 0, 0, 0, 0, 0, 0 },
+ { Perl_magic_getuvar, Perl_magic_setuvar, 0, 0, 0, 0, 0, 0 },
+ { Perl_magic_getvec, Perl_magic_setvec, 0, 0, 0, 0, 0, 0 }
};
#else
EXT_MGVTBL PL_magic_vtables[magic_vtable_max];