source: trunk/third/perl/perlapi.c @ 18450

Revision 18450, 1.3 KB checked in by zacheiss, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18449, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 *    perlapi.c
3 *
4 *    Copyright (c) 1997-2002, Larry Wall
5 *
6 *    You may distribute under the terms of either the GNU General Public
7 *    License or the Artistic License, as specified in the README file.
8 *
9 *
10 * !!!!!!!   DO NOT EDIT THIS FILE   !!!!!!!
11 *  This file is built by embed.pl from data in embed.pl, pp.sym, intrpvar.h,
12 *  perlvars.h and thrdvar.h.  Any changes made here will be lost!
13 */
14
15#include "EXTERN.h"
16#include "perl.h"
17#include "perlapi.h"
18
19#if defined (MULTIPLICITY)
20
21/* accessor functions for Perl variables (provides binary compatibility) */
22START_EXTERN_C
23
24#undef PERLVAR
25#undef PERLVARA
26#undef PERLVARI
27#undef PERLVARIC
28
29#define PERLVAR(v,t)    t* Perl_##v##_ptr(pTHX)                         \
30                        { return &(aTHX->v); }
31#define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX)                \
32                        { return &(aTHX->v); }
33
34#define PERLVARI(v,t,i) PERLVAR(v,t)
35#define PERLVARIC(v,t,i) PERLVAR(v, const t)
36
37#include "thrdvar.h"
38#include "intrpvar.h"
39
40#undef PERLVAR
41#undef PERLVARA
42#define PERLVAR(v,t)    t* Perl_##v##_ptr(pTHX)                         \
43                        { return &(PL_##v); }
44#define PERLVARA(v,n,t) PL_##v##_t* Perl_##v##_ptr(pTHX)                \
45                        { return &(PL_##v); }
46#undef PERLVARIC
47#define PERLVARIC(v,t,i)        const t* Perl_##v##_ptr(pTHX)           \
48                        { return (const t *)&(PL_##v); }
49#include "perlvars.h"
50
51#undef PERLVAR
52#undef PERLVARA
53#undef PERLVARI
54#undef PERLVARIC
55
56END_EXTERN_C
57
58#endif /* MULTIPLICITY */
Note: See TracBrowser for help on using the repository browser.