1 /* -*- buffer-read-only: t -*-
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
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 regen/embed.pl from data in embed.fnc,
13 * regen/embed.pl, regen/opcodes, 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 /* declare accessor functions for Perl variables */
23 #if defined (MULTIPLICITY) && defined (PERL_GLOBAL_STRUCT)
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)
46 #if defined(PERL_CORE)
48 /* accessor functions for Perl "global" variables */
50 /* these need to be mentioned here, or most linkers won't put them in
51 the perl executable */
53 #ifndef PERL_NO_FORCE_LINK
58 EXTCONST void * const PL_force_link_funcs[];
60 EXTCONST void * const PL_force_link_funcs[] = {
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)
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. */
78 #if defined(__DECC) && defined(__osf__)
80 #pragma message disable (nonstandcast)
85 #if defined(__DECC) && defined(__osf__)
86 #pragma message restore
98 #endif /* PERL_NO_FORCE_LINK */
100 #else /* !PERL_CORE */
102 #undef PL_C_locale_obj
103 #define PL_C_locale_obj (*Perl_GC_locale_obj_ptr(NULL))
105 #define PL_appctx (*Perl_Gappctx_ptr(NULL))
107 #define PL_check (*Perl_Gcheck_ptr(NULL))
108 #undef PL_check_mutex
109 #define PL_check_mutex (*Perl_Gcheck_mutex_ptr(NULL))
110 #undef PL_csighandler1p
111 #define PL_csighandler1p (*Perl_Gcsighandler1p_ptr(NULL))
112 #undef PL_csighandler3p
113 #define PL_csighandler3p (*Perl_Gcsighandler3p_ptr(NULL))
114 #undef PL_csighandlerp
115 #define PL_csighandlerp (*Perl_Gcsighandlerp_ptr(NULL))
117 #define PL_curinterp (*Perl_Gcurinterp_ptr(NULL))
119 #define PL_do_undump (*Perl_Gdo_undump_ptr(NULL))
120 #undef PL_dollarzero_mutex
121 #define PL_dollarzero_mutex (*Perl_Gdollarzero_mutex_ptr(NULL))
122 #undef PL_fold_locale
123 #define PL_fold_locale (*Perl_Gfold_locale_ptr(NULL))
125 #define PL_hash_chars (*Perl_Ghash_chars_ptr(NULL))
127 #define PL_hash_seed (*Perl_Ghash_seed_ptr(NULL))
128 #undef PL_hash_seed_set
129 #define PL_hash_seed_set (*Perl_Ghash_seed_set_ptr(NULL))
131 #define PL_hash_state (*Perl_Ghash_state_ptr(NULL))
132 #undef PL_hints_mutex
133 #define PL_hints_mutex (*Perl_Ghints_mutex_ptr(NULL))
134 #undef PL_keyword_plugin
135 #define PL_keyword_plugin (*Perl_Gkeyword_plugin_ptr(NULL))
136 #undef PL_keyword_plugin_mutex
137 #define PL_keyword_plugin_mutex (*Perl_Gkeyword_plugin_mutex_ptr(NULL))
138 #undef PL_lc_numeric_mutex
139 #define PL_lc_numeric_mutex (*Perl_Glc_numeric_mutex_ptr(NULL))
140 #undef PL_locale_mutex
141 #define PL_locale_mutex (*Perl_Glocale_mutex_ptr(NULL))
142 #undef PL_malloc_mutex
143 #define PL_malloc_mutex (*Perl_Gmalloc_mutex_ptr(NULL))
144 #undef PL_mmap_page_size
145 #define PL_mmap_page_size (*Perl_Gmmap_page_size_ptr(NULL))
146 #undef PL_my_ctx_mutex
147 #define PL_my_ctx_mutex (*Perl_Gmy_ctx_mutex_ptr(NULL))
148 #undef PL_my_cxt_index
149 #define PL_my_cxt_index (*Perl_Gmy_cxt_index_ptr(NULL))
150 #undef PL_my_cxt_keys
151 #define PL_my_cxt_keys (*Perl_Gmy_cxt_keys_ptr(NULL))
152 #undef PL_my_cxt_keys_size
153 #define PL_my_cxt_keys_size (*Perl_Gmy_cxt_keys_size_ptr(NULL))
155 #define PL_op_mutex (*Perl_Gop_mutex_ptr(NULL))
157 #define PL_op_seq (*Perl_Gop_seq_ptr(NULL))
158 #undef PL_op_sequence
159 #define PL_op_sequence (*Perl_Gop_sequence_ptr(NULL))
160 #undef PL_perlio_debug_fd
161 #define PL_perlio_debug_fd (*Perl_Gperlio_debug_fd_ptr(NULL))
162 #undef PL_perlio_fd_refcnt
163 #define PL_perlio_fd_refcnt (*Perl_Gperlio_fd_refcnt_ptr(NULL))
164 #undef PL_perlio_fd_refcnt_size
165 #define PL_perlio_fd_refcnt_size (*Perl_Gperlio_fd_refcnt_size_ptr(NULL))
166 #undef PL_perlio_mutex
167 #define PL_perlio_mutex (*Perl_Gperlio_mutex_ptr(NULL))
168 #undef PL_perllib_sep
169 #define PL_perllib_sep (*Perl_Gperllib_sep_ptr(NULL))
171 #define PL_ppaddr (*Perl_Gppaddr_ptr(NULL))
173 #define PL_sh_path (*Perl_Gsh_path_ptr(NULL))
174 #undef PL_sig_defaulting
175 #define PL_sig_defaulting (*Perl_Gsig_defaulting_ptr(NULL))
176 #undef PL_sig_handlers_initted
177 #define PL_sig_handlers_initted (*Perl_Gsig_handlers_initted_ptr(NULL))
178 #undef PL_sig_ignoring
179 #define PL_sig_ignoring (*Perl_Gsig_ignoring_ptr(NULL))
180 #undef PL_sig_trapped
181 #define PL_sig_trapped (*Perl_Gsig_trapped_ptr(NULL))
182 #undef PL_sigfpe_saved
183 #define PL_sigfpe_saved (*Perl_Gsigfpe_saved_ptr(NULL))
184 #undef PL_strategy_accept
185 #define PL_strategy_accept (*Perl_Gstrategy_accept_ptr(NULL))
186 #undef PL_strategy_dup
187 #define PL_strategy_dup (*Perl_Gstrategy_dup_ptr(NULL))
188 #undef PL_strategy_dup2
189 #define PL_strategy_dup2 (*Perl_Gstrategy_dup2_ptr(NULL))
190 #undef PL_strategy_mkstemp
191 #define PL_strategy_mkstemp (*Perl_Gstrategy_mkstemp_ptr(NULL))
192 #undef PL_strategy_open
193 #define PL_strategy_open (*Perl_Gstrategy_open_ptr(NULL))
194 #undef PL_strategy_open3
195 #define PL_strategy_open3 (*Perl_Gstrategy_open3_ptr(NULL))
196 #undef PL_strategy_pipe
197 #define PL_strategy_pipe (*Perl_Gstrategy_pipe_ptr(NULL))
198 #undef PL_strategy_socket
199 #define PL_strategy_socket (*Perl_Gstrategy_socket_ptr(NULL))
200 #undef PL_strategy_socketpair
201 #define PL_strategy_socketpair (*Perl_Gstrategy_socketpair_ptr(NULL))
202 #undef PL_sv_placeholder
203 #define PL_sv_placeholder (*Perl_Gsv_placeholder_ptr(NULL))
205 #define PL_thr_key (*Perl_Gthr_key_ptr(NULL))
207 #define PL_timesbase (*Perl_Gtimesbase_ptr(NULL))
208 #undef PL_use_safe_putenv
209 #define PL_use_safe_putenv (*Perl_Guse_safe_putenv_ptr(NULL))
210 #undef PL_user_def_props
211 #define PL_user_def_props (*Perl_Guser_def_props_ptr(NULL))
212 #undef PL_user_def_props_aTHX
213 #define PL_user_def_props_aTHX (*Perl_Guser_def_props_aTHX_ptr(NULL))
214 #undef PL_user_prop_mutex
215 #define PL_user_prop_mutex (*Perl_Guser_prop_mutex_ptr(NULL))
216 #undef PL_utf8_foldclosures
217 #define PL_utf8_foldclosures (*Perl_Gutf8_foldclosures_ptr(NULL))
218 #undef PL_veto_cleanup
219 #define PL_veto_cleanup (*Perl_Gveto_cleanup_ptr(NULL))
221 #define PL_watch_pvx (*Perl_Gwatch_pvx_ptr(NULL))
223 #endif /* !PERL_CORE */
224 #endif /* MULTIPLICITY && PERL_GLOBAL_STRUCT */
226 #endif /* __perlapi_h__ */