/* -*- buffer-read-only: t -*- * * perlapi.h * * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, * 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. * * !!!!!!! DO NOT EDIT THIS FILE !!!!!!! * This file is built by regen/embed.pl from data in embed.fnc, * regen/embed.pl, regen/opcodes, intrpvar.h and perlvars.h. * Any changes made here will be lost! * * Edit those files and run 'make regen_headers' to effect changes. */ /* declare accessor functions for Perl variables */ #ifndef __perlapi_h__ #define __perlapi_h__ #if defined (MULTIPLICITY) && defined (PERL_GLOBAL_STRUCT) START_EXTERN_C #undef PERLVAR #undef PERLVARA #undef PERLVARI #undef PERLVARIC #define PERLVAR(p,v,t) EXTERN_C t* Perl_##p##v##_ptr(pTHX); #define PERLVARA(p,v,n,t) typedef t PL_##v##_t[n]; \ EXTERN_C PL_##v##_t* Perl_##p##v##_ptr(pTHX); #define PERLVARI(p,v,t,i) PERLVAR(p,v,t) #define PERLVARIC(p,v,t,i) PERLVAR(p,v, const t) #include "perlvars.h" #undef PERLVAR #undef PERLVARA #undef PERLVARI #undef PERLVARIC END_EXTERN_C #if defined(PERL_CORE) /* accessor functions for Perl "global" variables */ /* these need to be mentioned here, or most linkers won't put them in the perl executable */ #ifndef PERL_NO_FORCE_LINK START_EXTERN_C #ifndef DOINIT EXTCONST void * const PL_force_link_funcs[]; #else EXTCONST void * const PL_force_link_funcs[] = { #undef PERLVAR #undef PERLVARA #undef PERLVARI #undef PERLVARIC #define PERLVAR(p,v,t) (void*)Perl_##p##v##_ptr, #define PERLVARA(p,v,n,t) PERLVAR(p,v,t) #define PERLVARI(p,v,t,i) PERLVAR(p,v,t) #define PERLVARIC(p,v,t,i) PERLVAR(p,v,t) /* In Tru64 (__DEC && __osf__) the cc option -std1 causes that one * cannot cast between void pointers and function pointers without * info level warnings. The PL_force_link_funcs[] would cause a few * hundred of those warnings. In code one can circumnavigate this by using * unions that overlay the different pointers, but in declarations one * cannot use this trick. Therefore we just disable the warning here * for the duration of the PL_force_link_funcs[] declaration. */ #if defined(__DECC) && defined(__osf__) #pragma message save #pragma message disable (nonstandcast) #endif #include "perlvars.h" #if defined(__DECC) && defined(__osf__) #pragma message restore #endif #undef PERLVAR #undef PERLVARA #undef PERLVARI #undef PERLVARIC }; #endif /* DOINIT */ END_EXTERN_C #endif /* PERL_NO_FORCE_LINK */ #else /* !PERL_CORE */ #undef PL_appctx #define PL_appctx (*Perl_Gappctx_ptr(NULL)) #undef PL_check #define PL_check (*Perl_Gcheck_ptr(NULL)) #undef PL_check_mutex #define PL_check_mutex (*Perl_Gcheck_mutex_ptr(NULL)) #undef PL_csighandlerp #define PL_csighandlerp (*Perl_Gcsighandlerp_ptr(NULL)) #undef PL_curinterp #define PL_curinterp (*Perl_Gcurinterp_ptr(NULL)) #undef PL_do_undump #define PL_do_undump (*Perl_Gdo_undump_ptr(NULL)) #undef PL_dollarzero_mutex #define PL_dollarzero_mutex (*Perl_Gdollarzero_mutex_ptr(NULL)) #undef PL_fold_locale #define PL_fold_locale (*Perl_Gfold_locale_ptr(NULL)) #undef PL_hints_mutex #define PL_hints_mutex (*Perl_Ghints_mutex_ptr(NULL)) #undef PL_keyword_plugin #define PL_keyword_plugin (*Perl_Gkeyword_plugin_ptr(NULL)) #undef PL_malloc_mutex #define PL_malloc_mutex (*Perl_Gmalloc_mutex_ptr(NULL)) #undef PL_mmap_page_size #define PL_mmap_page_size (*Perl_Gmmap_page_size_ptr(NULL)) #undef PL_my_ctx_mutex #define PL_my_ctx_mutex (*Perl_Gmy_ctx_mutex_ptr(NULL)) #undef PL_my_cxt_index #define PL_my_cxt_index (*Perl_Gmy_cxt_index_ptr(NULL)) #undef PL_op_mutex #define PL_op_mutex (*Perl_Gop_mutex_ptr(NULL)) #undef PL_op_seq #define PL_op_seq (*Perl_Gop_seq_ptr(NULL)) #undef PL_op_sequence #define PL_op_sequence (*Perl_Gop_sequence_ptr(NULL)) #undef PL_perlio_debug_fd #define PL_perlio_debug_fd (*Perl_Gperlio_debug_fd_ptr(NULL)) #undef PL_perlio_fd_refcnt #define PL_perlio_fd_refcnt (*Perl_Gperlio_fd_refcnt_ptr(NULL)) #undef PL_perlio_fd_refcnt_size #define PL_perlio_fd_refcnt_size (*Perl_Gperlio_fd_refcnt_size_ptr(NULL)) #undef PL_perlio_mutex #define PL_perlio_mutex (*Perl_Gperlio_mutex_ptr(NULL)) #undef PL_ppaddr #define PL_ppaddr (*Perl_Gppaddr_ptr(NULL)) #undef PL_sh_path #define PL_sh_path (*Perl_Gsh_path_ptr(NULL)) #undef PL_sig_defaulting #define PL_sig_defaulting (*Perl_Gsig_defaulting_ptr(NULL)) #undef PL_sig_handlers_initted #define PL_sig_handlers_initted (*Perl_Gsig_handlers_initted_ptr(NULL)) #undef PL_sig_ignoring #define PL_sig_ignoring (*Perl_Gsig_ignoring_ptr(NULL)) #undef PL_sig_trapped #define PL_sig_trapped (*Perl_Gsig_trapped_ptr(NULL)) #undef PL_sigfpe_saved #define PL_sigfpe_saved (*Perl_Gsigfpe_saved_ptr(NULL)) #undef PL_sv_placeholder #define PL_sv_placeholder (*Perl_Gsv_placeholder_ptr(NULL)) #undef PL_thr_key #define PL_thr_key (*Perl_Gthr_key_ptr(NULL)) #undef PL_timesbase #define PL_timesbase (*Perl_Gtimesbase_ptr(NULL)) #undef PL_use_safe_putenv #define PL_use_safe_putenv (*Perl_Guse_safe_putenv_ptr(NULL)) #undef PL_veto_cleanup #define PL_veto_cleanup (*Perl_Gveto_cleanup_ptr(NULL)) #undef PL_watch_pvx #define PL_watch_pvx (*Perl_Gwatch_pvx_ptr(NULL)) #endif /* !PERL_CORE */ #endif /* MULTIPLICITY && PERL_GLOBAL_STRUCT */ #endif /* __perlapi_h__ */ /* ex: set ro: */
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
EXTERN.h | File | 1.77 KB | 0644 |
|
INTERN.h | File | 1.47 KB | 0644 |
|
XSUB.h | File | 21.27 KB | 0644 |
|
av.h | File | 2.91 KB | 0644 |
|
bitcount.h | File | 850 B | 0644 |
|
charclass_invlists.h | File | 9.55 KB | 0644 |
|
config.h | File | 145.13 KB | 0644 |
|
cop.h | File | 39.64 KB | 0644 |
|
cv.h | File | 9.22 KB | 0644 |
|
dosish.h | File | 5.95 KB | 0644 |
|
embed.h | File | 84.98 KB | 0644 |
|
embedvar.h | File | 19.08 KB | 0644 |
|
fakesdio.h | File | 3.24 KB | 0644 |
|
fakethr.h | File | 1.92 KB | 0644 |
|
feature.h | File | 3.69 KB | 0644 |
|
form.h | File | 1.43 KB | 0644 |
|
git_version.h | File | 357 B | 0644 |
|
gv.h | File | 10.02 KB | 0644 |
|
handy.h | File | 53.01 KB | 0644 |
|
hv.h | File | 23.67 KB | 0644 |
|
intrpvar.h | File | 27.19 KB | 0644 |
|
iperlsys.h | File | 47.63 KB | 0644 |
|
keywords.h | File | 6.45 KB | 0644 |
|
l1_char_class_tab.h | File | 31.86 KB | 0644 |
|
libperl.so | File | 1.57 MB | 0755 |
|
malloc_ctl.h | File | 1.48 KB | 0644 |
|
metaconfig.h | File | 899 B | 0644 |
|
mg.h | File | 2.37 KB | 0644 |
|
mg_data.h | File | 4.84 KB | 0644 |
|
mg_raw.h | File | 4.21 KB | 0644 |
|
mg_vtable.h | File | 9.14 KB | 0644 |
|
mydtrace.h | File | 1.81 KB | 0644 |
|
nostdio.h | File | 3.37 KB | 0644 |
|
op.h | File | 32.07 KB | 0644 |
|
op_reg_common.h | File | 4.33 KB | 0644 |
|
opcode.h | File | 46.2 KB | 0644 |
|
opnames.h | File | 8.05 KB | 0644 |
|
overload.h | File | 2.98 KB | 0644 |
|
pad.h | File | 12.77 KB | 0644 |
|
parser.h | File | 5.38 KB | 0644 |
|
patchlevel.h | File | 8.05 KB | 0644 |
|
perl.h | File | 168.47 KB | 0644 |
|
perlapi.h | File | 5.34 KB | 0644 |
|
perldtrace.h | File | 1.77 KB | 0644 |
|
perlio.h | File | 10.83 KB | 0644 |
|
perliol.h | File | 13.21 KB | 0644 |
|
perlsdio.h | File | 4.92 KB | 0644 |
|
perlsfio.h | File | 2.64 KB | 0644 |
|
perlvars.h | File | 8.49 KB | 0644 |
|
perly.h | File | 5.67 KB | 0644 |
|
pp.h | File | 18.37 KB | 0644 |
|
pp_proto.h | File | 10.61 KB | 0644 |
|
proto.h | File | 259.12 KB | 0644 |
|
reentr.h | File | 79.05 KB | 0644 |
|
regcharclass.h | File | 30.79 KB | 0644 |
|
regcomp.h | File | 32.46 KB | 0644 |
|
regexp.h | File | 28.7 KB | 0644 |
|
regnodes.h | File | 37.97 KB | 0644 |
|
scope.h | File | 9.64 KB | 0644 |
|
sv.h | File | 72.44 KB | 0644 |
|
thread.h | File | 11.67 KB | 0644 |
|
time64.h | File | 1.4 KB | 0644 |
|
time64_config.h | File | 1.98 KB | 0644 |
|
uconfig.h | File | 144.66 KB | 0644 |
|
unixish.h | File | 4.48 KB | 0644 |
|
utf8.h | File | 24.78 KB | 0644 |
|
utfebcdic.h | File | 34.07 KB | 0644 |
|
util.h | File | 1.71 KB | 0644 |
|
uudmap.h | File | 904 B | 0644 |
|
warnings.h | File | 4.23 KB | 0644 |
|