This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Move 2 property defns to mktables
[perl5.git] / perlapi.h
CommitLineData
78102347 1/* -*- buffer-read-only: t -*-
37442d52 2 *
eb1102fc
NIS
3 * perlapi.h
4 *
78102347
NC
5 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
6 * 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others
eb1102fc
NIS
7 *
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.
10 *
eb1102fc 11 * !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
d7cb65f2 12 * This file is built by regen/embed.pl from data in embed.fnc,
78102347 13 * regen/embed.pl, regen/opcodes, intrpvar.h and perlvars.h.
f5e3445d
RGS
14 * Any changes made here will be lost!
15 *
16 * Edit those files and run 'make regen_headers' to effect changes.
eb1102fc 17 */
51371543 18
51371543 19/* declare accessor functions for Perl variables */
6f4183fe
GS
20#ifndef __perlapi_h__
21#define __perlapi_h__
51371543 22
87b9e160 23#if defined (MULTIPLICITY) && defined (PERL_GLOBAL_STRUCT)
c5be433b 24
51371543
GS
25START_EXTERN_C
26
27#undef PERLVAR
28#undef PERLVARA
29#undef PERLVARI
30#undef PERLVARIC
115ff745
NC
31#define PERLVAR(p,v,t) EXTERN_C t* Perl_##p##v##_ptr(pTHX);
32#define PERLVARA(p,v,n,t) typedef t PL_##v##_t[n]; \
33 EXTERN_C PL_##v##_t* Perl_##p##v##_ptr(pTHX);
34#define PERLVARI(p,v,t,i) PERLVAR(p,v,t)
35#define PERLVARIC(p,v,t,i) PERLVAR(p,v, const t)
51371543 36
51371543
GS
37#include "perlvars.h"
38
39#undef PERLVAR
40#undef PERLVARA
41#undef PERLVARI
42#undef PERLVARIC
27da23d5 43
51371543
GS
44END_EXTERN_C
45
682fc664 46#if defined(PERL_CORE)
6f4183fe 47
87b9e160 48/* accessor functions for Perl "global" variables */
682fc664
GS
49
50/* these need to be mentioned here, or most linkers won't put them in
51 the perl executable */
52
53#ifndef PERL_NO_FORCE_LINK
54
55START_EXTERN_C
56
57#ifndef DOINIT
27da23d5 58EXTCONST void * const PL_force_link_funcs[];
682fc664 59#else
27da23d5 60EXTCONST void * const PL_force_link_funcs[] = {
682fc664
GS
61#undef PERLVAR
62#undef PERLVARA
63#undef PERLVARI
64#undef PERLVARIC
115ff745
NC
65#define PERLVAR(p,v,t) (void*)Perl_##p##v##_ptr,
66#define PERLVARA(p,v,n,t) PERLVAR(p,v,t)
67#define PERLVARI(p,v,t,i) PERLVAR(p,v,t)
68#define PERLVARIC(p,v,t,i) PERLVAR(p,v,t)
682fc664 69
b6f9b097
MB
70/* In Tru64 (__DEC && __osf__) the cc option -std1 causes that one
71 * cannot cast between void pointers and function pointers without
72 * info level warnings. The PL_force_link_funcs[] would cause a few
73 * hundred of those warnings. In code one can circumnavigate this by using
74 * unions that overlay the different pointers, but in declarations one
75 * cannot use this trick. Therefore we just disable the warning here
76 * for the duration of the PL_force_link_funcs[] declaration. */
77
78#if defined(__DECC) && defined(__osf__)
79#pragma message save
80#pragma message disable (nonstandcast)
81#endif
82
682fc664
GS
83#include "perlvars.h"
84
b6f9b097
MB
85#if defined(__DECC) && defined(__osf__)
86#pragma message restore
87#endif
88
682fc664
GS
89#undef PERLVAR
90#undef PERLVARA
91#undef PERLVARI
92#undef PERLVARIC
93};
94#endif /* DOINIT */
95
acfe0abc 96END_EXTERN_C
682fc664
GS
97
98#endif /* PERL_NO_FORCE_LINK */
99
100#else /* !PERL_CORE */
6f4183fe 101
744ebf52
KW
102#undef PL_AboveLatin1
103#define PL_AboveLatin1 (*Perl_GAboveLatin1_ptr(NULL))
104#undef PL_Assigned_invlist
105#define PL_Assigned_invlist (*Perl_GAssigned_invlist_ptr(NULL))
6ebbc862
KW
106#undef PL_C_locale_obj
107#define PL_C_locale_obj (*Perl_GC_locale_obj_ptr(NULL))
744ebf52
KW
108#undef PL_GCB_invlist
109#define PL_GCB_invlist (*Perl_GGCB_invlist_ptr(NULL))
110#undef PL_HasMultiCharFold
111#define PL_HasMultiCharFold (*Perl_GHasMultiCharFold_ptr(NULL))
7258295b
KW
112#undef PL_InBitmap
113#define PL_InBitmap (*Perl_GInBitmap_ptr(NULL))
3601832e
KW
114#undef PL_InMultiCharFold
115#define PL_InMultiCharFold (*Perl_GInMultiCharFold_ptr(NULL))
744ebf52
KW
116#undef PL_LB_invlist
117#define PL_LB_invlist (*Perl_GLB_invlist_ptr(NULL))
118#undef PL_Latin1
119#define PL_Latin1 (*Perl_GLatin1_ptr(NULL))
120#undef PL_NonL1NonFinalFold
121#define PL_NonL1NonFinalFold (*Perl_GNonL1NonFinalFold_ptr(NULL))
a74bb78e
KW
122#undef PL_Posix_ptrs
123#define PL_Posix_ptrs (*Perl_GPosix_ptrs_ptr(NULL))
744ebf52
KW
124#undef PL_SB_invlist
125#define PL_SB_invlist (*Perl_GSB_invlist_ptr(NULL))
126#undef PL_SCX_invlist
127#define PL_SCX_invlist (*Perl_GSCX_invlist_ptr(NULL))
128#undef PL_UpperLatin1
129#define PL_UpperLatin1 (*Perl_GUpperLatin1_ptr(NULL))
130#undef PL_WB_invlist
131#define PL_WB_invlist (*Perl_GWB_invlist_ptr(NULL))
132#undef PL_XPosix_ptrs
133#define PL_XPosix_ptrs (*Perl_GXPosix_ptrs_ptr(NULL))
27da23d5
JH
134#undef PL_appctx
135#define PL_appctx (*Perl_Gappctx_ptr(NULL))
136#undef PL_check
137#define PL_check (*Perl_Gcheck_ptr(NULL))
e8570548
Z
138#undef PL_check_mutex
139#define PL_check_mutex (*Perl_Gcheck_mutex_ptr(NULL))
5c1546dc
JH
140#undef PL_csighandlerp
141#define PL_csighandlerp (*Perl_Gcsighandlerp_ptr(NULL))
6f4183fe
GS
142#undef PL_curinterp
143#define PL_curinterp (*Perl_Gcurinterp_ptr(NULL))
144#undef PL_do_undump
145#define PL_do_undump (*Perl_Gdo_undump_ptr(NULL))
d90a703e
JH
146#undef PL_dollarzero_mutex
147#define PL_dollarzero_mutex (*Perl_Gdollarzero_mutex_ptr(NULL))
27da23d5
JH
148#undef PL_fold_locale
149#define PL_fold_locale (*Perl_Gfold_locale_ptr(NULL))
9d5e3f1a
YO
150#undef PL_hash_chars
151#define PL_hash_chars (*Perl_Ghash_chars_ptr(NULL))
7dc86639
YO
152#undef PL_hash_seed
153#define PL_hash_seed (*Perl_Ghash_seed_ptr(NULL))
154#undef PL_hash_seed_set
155#define PL_hash_seed_set (*Perl_Ghash_seed_set_ptr(NULL))
9d5e3f1a
YO
156#undef PL_hash_state
157#define PL_hash_state (*Perl_Ghash_state_ptr(NULL))
71ad1b0c
NC
158#undef PL_hints_mutex
159#define PL_hints_mutex (*Perl_Ghints_mutex_ptr(NULL))
ac7b6cfc
KW
160#undef PL_in_some_fold
161#define PL_in_some_fold (*Perl_Gin_some_fold_ptr(NULL))
4098b6bb
JV
162#undef PL_keyword_plugin
163#define PL_keyword_plugin (*Perl_Gkeyword_plugin_ptr(NULL))
1e5c5f69
LM
164#undef PL_keyword_plugin_mutex
165#define PL_keyword_plugin_mutex (*Perl_Gkeyword_plugin_mutex_ptr(NULL))
49d7d366
KW
166#undef PL_lc_numeric_mutex
167#define PL_lc_numeric_mutex (*Perl_Glc_numeric_mutex_ptr(NULL))
929e1213
KW
168#undef PL_locale_mutex
169#define PL_locale_mutex (*Perl_Glocale_mutex_ptr(NULL))
6f4183fe
GS
170#undef PL_malloc_mutex
171#define PL_malloc_mutex (*Perl_Gmalloc_mutex_ptr(NULL))
27da23d5
JH
172#undef PL_mmap_page_size
173#define PL_mmap_page_size (*Perl_Gmmap_page_size_ptr(NULL))
f16dd614
DM
174#undef PL_my_ctx_mutex
175#define PL_my_ctx_mutex (*Perl_Gmy_ctx_mutex_ptr(NULL))
176#undef PL_my_cxt_index
177#define PL_my_cxt_index (*Perl_Gmy_cxt_index_ptr(NULL))
534825c4
GS
178#undef PL_op_mutex
179#define PL_op_mutex (*Perl_Gop_mutex_ptr(NULL))
27da23d5
JH
180#undef PL_op_seq
181#define PL_op_seq (*Perl_Gop_seq_ptr(NULL))
182#undef PL_op_sequence
183#define PL_op_sequence (*Perl_Gop_sequence_ptr(NULL))
27da23d5
JH
184#undef PL_perlio_debug_fd
185#define PL_perlio_debug_fd (*Perl_Gperlio_debug_fd_ptr(NULL))
186#undef PL_perlio_fd_refcnt
187#define PL_perlio_fd_refcnt (*Perl_Gperlio_fd_refcnt_ptr(NULL))
22c96fc1
NC
188#undef PL_perlio_fd_refcnt_size
189#define PL_perlio_fd_refcnt_size (*Perl_Gperlio_fd_refcnt_size_ptr(NULL))
fa36c1f0
RGS
190#undef PL_perlio_mutex
191#define PL_perlio_mutex (*Perl_Gperlio_mutex_ptr(NULL))
483efd0a
CB
192#undef PL_perllib_sep
193#define PL_perllib_sep (*Perl_Gperllib_sep_ptr(NULL))
27da23d5
JH
194#undef PL_ppaddr
195#define PL_ppaddr (*Perl_Gppaddr_ptr(NULL))
5c728af0
IZ
196#undef PL_sh_path
197#define PL_sh_path (*Perl_Gsh_path_ptr(NULL))
27da23d5
JH
198#undef PL_sig_defaulting
199#define PL_sig_defaulting (*Perl_Gsig_defaulting_ptr(NULL))
200#undef PL_sig_handlers_initted
201#define PL_sig_handlers_initted (*Perl_Gsig_handlers_initted_ptr(NULL))
202#undef PL_sig_ignoring
203#define PL_sig_ignoring (*Perl_Gsig_ignoring_ptr(NULL))
27da23d5
JH
204#undef PL_sig_trapped
205#define PL_sig_trapped (*Perl_Gsig_trapped_ptr(NULL))
b35112e7
CS
206#undef PL_sigfpe_saved
207#define PL_sigfpe_saved (*Perl_Gsigfpe_saved_ptr(NULL))
643157af
JH
208#undef PL_sv_placeholder
209#define PL_sv_placeholder (*Perl_Gsv_placeholder_ptr(NULL))
ba869deb
GS
210#undef PL_thr_key
211#define PL_thr_key (*Perl_Gthr_key_ptr(NULL))
27da23d5
JH
212#undef PL_timesbase
213#define PL_timesbase (*Perl_Gtimesbase_ptr(NULL))
50acdf95
MS
214#undef PL_use_safe_putenv
215#define PL_use_safe_putenv (*Perl_Guse_safe_putenv_ptr(NULL))
f1bcae08
KW
216#undef PL_utf8_charname_begin
217#define PL_utf8_charname_begin (*Perl_Gutf8_charname_begin_ptr(NULL))
218#undef PL_utf8_charname_continue
219#define PL_utf8_charname_continue (*Perl_Gutf8_charname_continue_ptr(NULL))
b74fe592
KW
220#undef PL_utf8_foldclosures
221#define PL_utf8_foldclosures (*Perl_Gutf8_foldclosures_ptr(NULL))
744ebf52
KW
222#undef PL_utf8_idcont
223#define PL_utf8_idcont (*Perl_Gutf8_idcont_ptr(NULL))
224#undef PL_utf8_idstart
225#define PL_utf8_idstart (*Perl_Gutf8_idstart_ptr(NULL))
7258295b
KW
226#undef PL_utf8_mark
227#define PL_utf8_mark (*Perl_Gutf8_mark_ptr(NULL))
744ebf52
KW
228#undef PL_utf8_perl_idcont
229#define PL_utf8_perl_idcont (*Perl_Gutf8_perl_idcont_ptr(NULL))
230#undef PL_utf8_perl_idstart
231#define PL_utf8_perl_idstart (*Perl_Gutf8_perl_idstart_ptr(NULL))
e80a0113
KW
232#undef PL_utf8_tofold
233#define PL_utf8_tofold (*Perl_Gutf8_tofold_ptr(NULL))
234#undef PL_utf8_tolower
235#define PL_utf8_tolower (*Perl_Gutf8_tolower_ptr(NULL))
236#undef PL_utf8_tosimplefold
237#define PL_utf8_tosimplefold (*Perl_Gutf8_tosimplefold_ptr(NULL))
238#undef PL_utf8_totitle
239#define PL_utf8_totitle (*Perl_Gutf8_totitle_ptr(NULL))
240#undef PL_utf8_toupper
241#define PL_utf8_toupper (*Perl_Gutf8_toupper_ptr(NULL))
744ebf52
KW
242#undef PL_utf8_xidcont
243#define PL_utf8_xidcont (*Perl_Gutf8_xidcont_ptr(NULL))
244#undef PL_utf8_xidstart
245#define PL_utf8_xidstart (*Perl_Gutf8_xidstart_ptr(NULL))
c301d606
DM
246#undef PL_veto_cleanup
247#define PL_veto_cleanup (*Perl_Gveto_cleanup_ptr(NULL))
27da23d5
JH
248#undef PL_watch_pvx
249#define PL_watch_pvx (*Perl_Gwatch_pvx_ptr(NULL))
6f4183fe
GS
250
251#endif /* !PERL_CORE */
87b9e160 252#endif /* MULTIPLICITY && PERL_GLOBAL_STRUCT */
6f4183fe
GS
253
254#endif /* __perlapi_h__ */
51371543 255
37442d52 256/* ex: set ro: */