1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * perlapi.c 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * Copyright (C) 1999, 2000, 2001, by Larry Wall and others 5*0Sstevel@tonic-gate * 6*0Sstevel@tonic-gate * You may distribute under the terms of either the GNU General Public 7*0Sstevel@tonic-gate * License or the Artistic License, as specified in the README file. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! 10*0Sstevel@tonic-gate * This file is built by embed.pl from data in embed.fnc, embed.pl, 11*0Sstevel@tonic-gate * pp.sym, intrpvar.h, perlvars.h and thrdvar.h. 12*0Sstevel@tonic-gate * Any changes made here will be lost! 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * Edit those files and run 'make regen_headers' to effect changes. 15*0Sstevel@tonic-gate * 16*0Sstevel@tonic-gate * 17*0Sstevel@tonic-gate * Up to the threshold of the door there mounted a flight of twenty-seven 18*0Sstevel@tonic-gate * broad stairs, hewn by some unknown art of the same black stone. This 19*0Sstevel@tonic-gate * was the only entrance to the tower. 20*0Sstevel@tonic-gate * 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate 23*0Sstevel@tonic-gate #include "EXTERN.h" 24*0Sstevel@tonic-gate #include "perl.h" 25*0Sstevel@tonic-gate #include "perlapi.h" 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate #if defined (MULTIPLICITY) 28*0Sstevel@tonic-gate 29*0Sstevel@tonic-gate /* accessor functions for Perl variables (provides binary compatibility) */ 30*0Sstevel@tonic-gate START_EXTERN_C 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate #undef PERLVAR 33*0Sstevel@tonic-gate #undef PERLVARA 34*0Sstevel@tonic-gate #undef PERLVARI 35*0Sstevel@tonic-gate #undef PERLVARIC 36*0Sstevel@tonic-gate 37*0Sstevel@tonic-gate #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \ 38*0Sstevel@tonic-gate { return &(aTHX->v); } 39*0Sstevel@tonic-gate #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \ 40*0Sstevel@tonic-gate { return &(aTHX->v); } 41*0Sstevel@tonic-gate 42*0Sstevel@tonic-gate #define PERLVARI(v,t,i) PERLVAR(v,t) 43*0Sstevel@tonic-gate #define PERLVARIC(v,t,i) PERLVAR(v, const t) 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gate #include "thrdvar.h" 46*0Sstevel@tonic-gate #include "intrpvar.h" 47*0Sstevel@tonic-gate 48*0Sstevel@tonic-gate #undef PERLVAR 49*0Sstevel@tonic-gate #undef PERLVARA 50*0Sstevel@tonic-gate #define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \ 51*0Sstevel@tonic-gate { return &(PL_##v); } 52*0Sstevel@tonic-gate #define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \ 53*0Sstevel@tonic-gate { return &(PL_##v); } 54*0Sstevel@tonic-gate #undef PERLVARIC 55*0Sstevel@tonic-gate #define PERLVARIC(v,t,i) const t* Perl_##v##_ptr(pTHX) \ 56*0Sstevel@tonic-gate { return (const t *)&(PL_##v); } 57*0Sstevel@tonic-gate #include "perlvars.h" 58*0Sstevel@tonic-gate 59*0Sstevel@tonic-gate #undef PERLVAR 60*0Sstevel@tonic-gate #undef PERLVARA 61*0Sstevel@tonic-gate #undef PERLVARI 62*0Sstevel@tonic-gate #undef PERLVARIC 63*0Sstevel@tonic-gate 64*0Sstevel@tonic-gate END_EXTERN_C 65*0Sstevel@tonic-gate 66*0Sstevel@tonic-gate #endif /* MULTIPLICITY */ 67