1N/A/*
1N/A * perlapi.c
1N/A *
1N/A * Copyright (C) 1999, 2000, 2001, by Larry Wall and others
1N/A *
1N/A * You may distribute under the terms of either the GNU General Public
1N/A * License or the Artistic License, as specified in the README file.
1N/A *
1N/A * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
1N/A * This file is built by embed.pl from data in embed.fnc, embed.pl,
1N/A * pp.sym, intrpvar.h, perlvars.h and thrdvar.h.
1N/A * Any changes made here will be lost!
1N/A *
1N/A * Edit those files and run 'make regen_headers' to effect changes.
1N/A *
1N/A *
1N/A * Up to the threshold of the door there mounted a flight of twenty-seven
1N/A * broad stairs, hewn by some unknown art of the same black stone. This
1N/A * was the only entrance to the tower.
1N/A *
1N/A */
1N/A
1N/A#include "EXTERN.h"
1N/A#include "perl.h"
1N/A#include "perlapi.h"
1N/A
1N/A#if defined (MULTIPLICITY)
1N/A
1N/A/* accessor functions for Perl variables (provides binary compatibility) */
1N/ASTART_EXTERN_C
1N/A
1N/A#undef PERLVAR
1N/A#undef PERLVARA
1N/A#undef PERLVARI
1N/A#undef PERLVARIC
1N/A
1N/A#define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
1N/A { return &(aTHX->v); }
1N/A#define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
1N/A { return &(aTHX->v); }
1N/A
1N/A#define PERLVARI(v,t,i) PERLVAR(v,t)
1N/A#define PERLVARIC(v,t,i) PERLVAR(v, const t)
1N/A
1N/A#include "thrdvar.h"
1N/A#include "intrpvar.h"
1N/A
1N/A#undef PERLVAR
1N/A#undef PERLVARA
1N/A#define PERLVAR(v,t) t* Perl_##v##_ptr(pTHX) \
1N/A { return &(PL_##v); }
1N/A#define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX) \
1N/A { return &(PL_##v); }
1N/A#undef PERLVARIC
1N/A#define PERLVARIC(v,t,i) const t* Perl_##v##_ptr(pTHX) \
1N/A { return (const t *)&(PL_##v); }
1N/A#include "perlvars.h"
1N/A
1N/A#undef PERLVAR
1N/A#undef PERLVARA
1N/A#undef PERLVARI
1N/A#undef PERLVARIC
1N/A
1N/AEND_EXTERN_C
1N/A
1N/A#endif /* MULTIPLICITY */