1 /* -*- buffer-read-only: t -*-
5 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6 * 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, by Larry Wall and others
8 * You may distribute under the terms of either the GNU General Public
9 * License or the Artistic License, as specified in the README file.
11 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
12 * This file is built by embed.pl from data in embed.fnc, embed.pl,
13 * pp.sym, intrpvar.h, and perlvars.h.
14 * Any changes made here will be lost!
16 * Edit those files and run 'make regen_headers' to effect changes.
19 * Up to the threshold of the door there mounted a flight of twenty-seven
20 * broad stairs, hewn by some unknown art of the same black stone. This
21 * was the only entrance to the tower.
29 #if defined (MULTIPLICITY)
31 /* accessor functions for Perl variables (provides binary compatibility) */
40 #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
41 { dVAR; PERL_UNUSED_CONTEXT; return &(aTHX->v); }
42 #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
43 { dVAR; PERL_UNUSED_CONTEXT; return &(aTHX->v); }
45 #define PERLVARI(v,t,i) PERLVAR(v,t)
46 #define PERLVARIC(v,t,i) PERLVAR(v, const t)
47 #define PERLVARISC(v,i) PL_##v##_t* Perl_##v##_ptr(pTHX) \
48 { dVAR; PERL_UNUSED_CONTEXT; return &(aTHX->v); }
54 #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
55 { dVAR; PERL_UNUSED_CONTEXT; return &(PL_##v); }
56 #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
57 { dVAR; PERL_UNUSED_CONTEXT; return &(PL_##v); }
60 #define PERLVARIC(v,t,i) \
61 const t* Perl_##v##_ptr(pTHX) \
62 { PERL_UNUSED_CONTEXT; return (const t *)&(PL_##v); }
63 #define PERLVARISC(v,i) PL_##v##_t* Perl_##v##_ptr(pTHX) \
64 { dVAR; PERL_UNUSED_CONTEXT; return &(PL_##v); }
73 #ifndef PERL_GLOBAL_STRUCT
74 /* A few evil special cases. Could probably macrofy this. */
78 Perl_ppaddr_t** Perl_Gppaddr_ptr(pTHX) {
79 static Perl_ppaddr_t* const ppaddr_ptr = PL_ppaddr;
81 return (Perl_ppaddr_t**)&ppaddr_ptr;
83 Perl_check_t** Perl_Gcheck_ptr(pTHX) {
84 static Perl_check_t* const check_ptr = PL_check;
86 return (Perl_check_t**)&check_ptr;
88 unsigned char** Perl_Gfold_locale_ptr(pTHX) {
89 static unsigned char* const fold_locale_ptr = PL_fold_locale;
91 return (unsigned char**)&fold_locale_ptr;
97 #endif /* MULTIPLICITY */