#define __attribute__(attr)
#endif
#endif
-#ifdef OVERLOAD
VIRTUAL SV* amagic_call _((SV* left,SV* right,int method,int dir));
VIRTUAL bool Gv_AMupdate _((HV* stash));
-#endif /* OVERLOAD */
VIRTUAL OP* append_elem _((I32 optype, OP* head, OP* tail));
VIRTUAL OP* append_list _((I32 optype, LISTOP* first, LISTOP* last));
VIRTUAL I32 apply _((I32 type, SV** mark, SV** sp));
VIRTUAL char* fbm_instr _((unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags));
VIRTUAL char* find_script _((char *scriptname, bool dosearch, char **search_ext, I32 flags));
#ifdef USE_THREADS
-VIRTUAL PADOFFSET find_threadsv _((char *name));
+VIRTUAL PADOFFSET find_threadsv _((const char *name));
#endif
VIRTUAL OP* force_list _((OP* arg));
VIRTUAL OP* fold_constants _((OP* arg));
VIRTUAL GV* gv_AVadd _((GV* gv));
VIRTUAL GV* gv_HVadd _((GV* gv));
VIRTUAL GV* gv_IOadd _((GV* gv));
-VIRTUAL GV* gv_autoload4 _((HV* stash, char* name, STRLEN len, I32 method));
+VIRTUAL GV* gv_autoload4 _((HV* stash, const char* name, STRLEN len, I32 method));
VIRTUAL void gv_check _((HV* stash));
VIRTUAL void gv_efullname _((SV* sv, GV* gv));
-VIRTUAL void gv_efullname3 _((SV* sv, GV* gv, char* prefix));
-VIRTUAL GV* gv_fetchfile _((char* name));
-VIRTUAL GV* gv_fetchmeth _((HV* stash, char* name, STRLEN len, I32 level));
-VIRTUAL GV* gv_fetchmethod _((HV* stash, char* name));
-VIRTUAL GV* gv_fetchmethod_autoload _((HV* stash, char* name, I32 autoload));
-VIRTUAL GV* gv_fetchpv _((char* name, I32 add, I32 sv_type));
+VIRTUAL void gv_efullname3 _((SV* sv, GV* gv, const char* prefix));
+VIRTUAL GV* gv_fetchfile _((const char* name));
+VIRTUAL GV* gv_fetchmeth _((HV* stash, const char* name, STRLEN len, I32 level));
+VIRTUAL GV* gv_fetchmethod _((HV* stash, const char* name));
+VIRTUAL GV* gv_fetchmethod_autoload _((HV* stash, const char* name, I32 autoload));
+VIRTUAL GV* gv_fetchpv _((const char* name, I32 add, I32 sv_type));
VIRTUAL void gv_fullname _((SV* sv, GV* gv));
-VIRTUAL void gv_fullname3 _((SV* sv, GV* gv, char* prefix));
-VIRTUAL void gv_init _((GV* gv, HV* stash, char* name, STRLEN len, int multi));
-VIRTUAL HV* gv_stashpv _((char* name, I32 create));
-VIRTUAL HV* gv_stashpvn _((char* name, U32 namelen, I32 create));
+VIRTUAL void gv_fullname3 _((SV* sv, GV* gv, const char* prefix));
+VIRTUAL void gv_init _((GV* gv, HV* stash, const char* name, STRLEN len, int multi));
+VIRTUAL HV* gv_stashpv _((const char* name, I32 create));
+VIRTUAL HV* gv_stashpvn _((const char* name, U32 namelen, I32 create));
VIRTUAL HV* gv_stashsv _((SV* sv, I32 create));
VIRTUAL void hv_clear _((HV* tb));
VIRTUAL void hv_delayfree_ent _((HV* hv, HE* entry));
-VIRTUAL SV* hv_delete _((HV* tb, char* key, U32 klen, I32 flags));
+VIRTUAL SV* hv_delete _((HV* tb, const char* key, U32 klen, I32 flags));
VIRTUAL SV* hv_delete_ent _((HV* tb, SV* key, I32 flags, U32 hash));
-VIRTUAL bool hv_exists _((HV* tb, char* key, U32 klen));
+VIRTUAL bool hv_exists _((HV* tb, const char* key, U32 klen));
VIRTUAL bool hv_exists_ent _((HV* tb, SV* key, U32 hash));
-VIRTUAL SV** hv_fetch _((HV* tb, char* key, U32 klen, I32 lval));
+VIRTUAL SV** hv_fetch _((HV* tb, const char* key, U32 klen, I32 lval));
VIRTUAL HE* hv_fetch_ent _((HV* tb, SV* key, I32 lval, U32 hash));
VIRTUAL void hv_free_ent _((HV* hv, HE* entry));
VIRTUAL I32 hv_iterinit _((HV* tb));
VIRTUAL SV* hv_iterval _((HV* tb, HE* entry));
VIRTUAL void hv_ksplit _((HV* hv, IV newmax));
VIRTUAL void hv_magic _((HV* hv, GV* gv, int how));
-VIRTUAL SV** hv_store _((HV* tb, char* key, U32 klen, SV* val, U32 hash));
+VIRTUAL SV** hv_store _((HV* tb, const char* key, U32 klen, SV* val, U32 hash));
VIRTUAL HE* hv_store_ent _((HV* tb, SV* key, SV* val, U32 hash));
VIRTUAL void hv_undef _((HV* tb));
-VIRTUAL I32 ibcmp _((char* a, char* b, I32 len));
-VIRTUAL I32 ibcmp_locale _((char* a, char* b, I32 len));
+VIRTUAL I32 ibcmp _((const char* a, const char* b, I32 len));
+VIRTUAL I32 ibcmp_locale _((const char* a, const char* b, I32 len));
VIRTUAL I32 ingroup _((I32 testgid, I32 effective));
VIRTUAL void init_stacks _((ARGSproto));
VIRTUAL U32 intro_my _((void));
-VIRTUAL char* instr _((char* big, char* little));
+VIRTUAL char* instr _((const char* big, const char* little));
VIRTUAL bool io_close _((IO* io));
VIRTUAL OP* invert _((OP* cmd));
VIRTUAL bool is_uni_alnum _((U32 c));
VIRTUAL U32 magic_regdata_cnt _((SV* sv, MAGIC* mg));
VIRTUAL int magic_regdatum_get _((SV* sv, MAGIC* mg));
VIRTUAL int magic_set _((SV* sv, MAGIC* mg));
-#ifdef OVERLOAD
VIRTUAL int magic_setamagic _((SV* sv, MAGIC* mg));
-#endif /* OVERLOAD */
VIRTUAL int magic_setarylen _((SV* sv, MAGIC* mg));
VIRTUAL int magic_setbm _((SV* sv, MAGIC* mg));
VIRTUAL int magic_setdbline _((SV* sv, MAGIC* mg));
#endif
VIRTUAL char* mess _((const char* pat, va_list* args));
VIRTUAL int mg_clear _((SV* sv));
-VIRTUAL int mg_copy _((SV* sv, SV* nsv, char* key, I32 klen));
+VIRTUAL int mg_copy _((SV* sv, SV* nsv, const char* key, I32 klen));
VIRTUAL MAGIC* mg_find _((SV* sv, int type));
VIRTUAL int mg_free _((SV* sv));
VIRTUAL int mg_get _((SV* sv));
VIRTUAL char* moreswitches _((char* s));
VIRTUAL OP* my _((OP* o));
#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
-VIRTUAL char* my_bcopy _((char* from, char* to, I32 len));
+VIRTUAL char* my_bcopy _((const char* from, char* to, I32 len));
#endif
#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
char* my_bzero _((char* loc, I32 len));
VIRTUAL void my_failure_exit _((void)) __attribute__((noreturn));
VIRTUAL I32 my_lstat _((ARGSproto));
#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
-VIRTUAL I32 my_memcmp _((char* s1, char* s2, I32 len));
+VIRTUAL I32 my_memcmp _((const char* s1, const char* s2, I32 len));
#endif
#if !defined(HAS_MEMSET)
VIRTUAL void* my_memset _((char* loc, I32 ch, I32 len));
VIRTUAL OP* newSVOP _((I32 type, I32 flags, SV* sv));
VIRTUAL SV* newSViv _((IV i));
VIRTUAL SV* newSVnv _((double n));
-VIRTUAL SV* newSVpv _((char* s, STRLEN len));
-VIRTUAL SV* newSVpvn _((char *s, STRLEN len));
+VIRTUAL SV* newSVpv _((const char* s, STRLEN len));
+VIRTUAL SV* newSVpvn _((const char *s, STRLEN len));
VIRTUAL SV* newSVpvf _((const char* pat, ...));
-VIRTUAL SV* newSVrv _((SV* rv, char* classname));
+VIRTUAL SV* newSVrv _((SV* rv, const char* classname));
VIRTUAL SV* newSVsv _((SV* old));
VIRTUAL OP* newUNOP _((I32 type, I32 flags, OP* first));
VIRTUAL OP* newWHILEOP _((I32 flags, I32 debuggable, LOOP* loop,
#endif
VIRTUAL PERL_SI * new_stackinfo _((I32 stitems, I32 cxitems));
VIRTUAL PerlIO* nextargv _((GV* gv));
-VIRTUAL char* ninstr _((char* big, char* bigend, char* little, char* lend));
+VIRTUAL char* ninstr _((const char* big, const char* bigend, const char* little, const char* lend));
VIRTUAL OP* oopsCV _((OP* o));
VIRTUAL void op_free _((OP* arg));
VIRTUAL void package _((OP* o));
#else
void perl_atexit _((void(*fn)(void *), void*));
#endif
-VIRTUAL I32 perl_call_argv _((char* sub_name, I32 flags, char** argv));
-VIRTUAL I32 perl_call_method _((char* methname, I32 flags));
-VIRTUAL I32 perl_call_pv _((char* sub_name, I32 flags));
+VIRTUAL I32 perl_call_argv _((const char* sub_name, I32 flags, char** argv));
+VIRTUAL I32 perl_call_method _((const char* methname, I32 flags));
+VIRTUAL I32 perl_call_pv _((const char* sub_name, I32 flags));
VIRTUAL I32 perl_call_sv _((SV* sv, I32 flags));
#ifdef PERL_OBJECT
VIRTUAL void perl_construct _((void));
void perl_construct _((PerlInterpreter* sv_interp));
void perl_destruct _((PerlInterpreter* sv_interp));
#endif
-VIRTUAL SV* perl_eval_pv _((char* p, I32 croak_on_error));
+VIRTUAL SV* perl_eval_pv _((const char* p, I32 croak_on_error));
VIRTUAL I32 perl_eval_sv _((SV* sv, I32 flags));
#ifdef PERL_OBJECT
VIRTUAL void perl_free _((void));
#else
void perl_free _((PerlInterpreter* sv_interp));
#endif
-VIRTUAL SV* perl_get_sv _((char* name, I32 create));
-VIRTUAL AV* perl_get_av _((char* name, I32 create));
-VIRTUAL HV* perl_get_hv _((char* name, I32 create));
-VIRTUAL CV* perl_get_cv _((char* name, I32 create));
+VIRTUAL SV* perl_get_sv _((const char* name, I32 create));
+VIRTUAL AV* perl_get_av _((const char* name, I32 create));
+VIRTUAL HV* perl_get_hv _((const char* name, I32 create));
+VIRTUAL CV* perl_get_cv _((const char* name, I32 create));
VIRTUAL int perl_init_i18nl10n _((int printwarn));
VIRTUAL int perl_init_i18nl14n _((int printwarn));
-VIRTUAL void perl_new_collate _((char* newcoll));
-VIRTUAL void perl_new_ctype _((char* newctype));
-VIRTUAL void perl_new_numeric _((char* newcoll));
+VIRTUAL void perl_new_collate _((const char* newcoll));
+VIRTUAL void perl_new_ctype _((const char* newctype));
+VIRTUAL void perl_new_numeric _((const char* newcoll));
VIRTUAL void perl_set_numeric_local _((void));
VIRTUAL void perl_set_numeric_standard _((void));
#ifdef PERL_OBJECT
#else
int perl_parse _((PerlInterpreter* sv_interp, void(*xsinit)(void), int argc, char** argv, char** env));
#endif
-VIRTUAL void perl_require_pv _((char* pv));
+VIRTUAL void perl_require_pv _((const char* pv));
#define perl_requirepv perl_require_pv
#ifdef PERL_OBJECT
VIRTUAL int perl_run _((void));
void* data, U32 flags));
VIRTUAL regnode* regnext _((regnode* p));
VIRTUAL void regprop _((SV* sv, regnode* o));
-VIRTUAL void repeatcpy _((char* to, char* from, I32 len, I32 count));
-VIRTUAL char* rninstr _((char* big, char* bigend, char* little, char* lend));
+VIRTUAL void repeatcpy _((char* to, const char* from, I32 len, I32 count));
+VIRTUAL char* rninstr _((const char* big, const char* bigend, const char* little, const char* lend));
VIRTUAL Sighandler_t rsignal _((int i, Sighandler_t t));
VIRTUAL int rsignal_restore _((int i, Sigsave_t* t));
VIRTUAL int rsignal_save _((int i, Sighandler_t t1, Sigsave_t* t2));
#ifndef HAS_RENAME
VIRTUAL I32 same_dirent _((char* a, char* b));
#endif
-VIRTUAL char* savepv _((char* sv));
-VIRTUAL char* savepvn _((char* sv, I32 len));
+VIRTUAL char* savepv _((const char* sv));
+VIRTUAL char* savepvn _((const char* sv, I32 len));
VIRTUAL void savestack_grow _((void));
VIRTUAL void save_aelem _((AV* av, I32 idx, SV **sptr));
VIRTUAL I32 save_alloc _((I32 size, I32 pad));
VIRTUAL I32 setenv_getix _((char* nam));
#endif
VIRTUAL void setdefout _((GV* gv));
-VIRTUAL char* sharepvn _((char* sv, I32 len, U32 hash));
-VIRTUAL HEK* share_hek _((char* sv, I32 len, U32 hash));
+VIRTUAL char* sharepvn _((const char* sv, I32 len, U32 hash));
+VIRTUAL HEK* share_hek _((const char* sv, I32 len, U32 hash));
VIRTUAL Signal_t sighandler _((int sig));
VIRTUAL SV** stack_grow _((SV** sp, SV**p, int n));
VIRTUAL I32 start_subparse _((I32 is_format, U32 flags));
VIRTUAL int sv_backoff _((SV* sv));
VIRTUAL SV* sv_bless _((SV* sv, HV* stash));
VIRTUAL void sv_catpvf _((SV* sv, const char* pat, ...));
-VIRTUAL void sv_catpv _((SV* sv, char* ptr));
-VIRTUAL void sv_catpvn _((SV* sv, char* ptr, STRLEN len));
+VIRTUAL void sv_catpv _((SV* sv, const char* ptr));
+VIRTUAL void sv_catpvn _((SV* sv, const char* ptr, STRLEN len));
VIRTUAL void sv_catsv _((SV* dsv, SV* ssv));
VIRTUAL void sv_chop _((SV* sv, char* ptr));
VIRTUAL void sv_clean_all _((void));
VIRTUAL OP* sv_compile_2op _((SV* sv, OP** startp, char* code, AV** avp));
VIRTUAL void sv_dec _((SV* sv));
VIRTUAL void sv_dump _((SV* sv));
-VIRTUAL bool sv_derived_from _((SV* sv, char* name));
+VIRTUAL bool sv_derived_from _((SV* sv, const char* name));
VIRTUAL I32 sv_eq _((SV* sv1, SV* sv2));
VIRTUAL void sv_free _((SV* sv));
VIRTUAL void sv_free_arenas _((void));
VIRTUAL char* sv_grow _((SV* sv, STRLEN newlen));
VIRTUAL void sv_inc _((SV* sv));
VIRTUAL void sv_insert _((SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen));
-VIRTUAL int sv_isa _((SV* sv, char* name));
+VIRTUAL int sv_isa _((SV* sv, const char* name));
VIRTUAL int sv_isobject _((SV* sv));
VIRTUAL STRLEN sv_len _((SV* sv));
VIRTUAL STRLEN sv_len_utf8 _((SV* sv));
-VIRTUAL void sv_magic _((SV* sv, SV* obj, int how, char* name, I32 namlen));
+VIRTUAL void sv_magic _((SV* sv, SV* obj, int how, const char* name, I32 namlen));
VIRTUAL SV* sv_mortalcopy _((SV* oldsv));
VIRTUAL SV* sv_newmortal _((void));
VIRTUAL SV* sv_newref _((SV* sv));
VIRTUAL void sv_setpviv _((SV* sv, IV num));
VIRTUAL void sv_setuv _((SV* sv, UV num));
VIRTUAL void sv_setnv _((SV* sv, double num));
-VIRTUAL SV* sv_setref_iv _((SV* rv, char* classname, IV iv));
-VIRTUAL SV* sv_setref_nv _((SV* rv, char* classname, double nv));
-VIRTUAL SV* sv_setref_pv _((SV* rv, char* classname, void* pv));
-VIRTUAL SV* sv_setref_pvn _((SV* rv, char* classname, char* pv, I32 n));
+VIRTUAL SV* sv_setref_iv _((SV* rv, const char* classname, IV iv));
+VIRTUAL SV* sv_setref_nv _((SV* rv, const char* classname, double nv));
+VIRTUAL SV* sv_setref_pv _((SV* rv, const char* classname, void* pv));
+VIRTUAL SV* sv_setref_pvn _((SV* rv, const char* classname, char* pv, I32 n));
VIRTUAL void sv_setpv _((SV* sv, const char* ptr));
VIRTUAL void sv_setpvn _((SV* sv, const char* ptr, STRLEN len));
VIRTUAL void sv_setsv _((SV* dsv, SV* ssv));
#ifdef USE_THREADS
VIRTUAL void unlock_condpair _((void* svv));
#endif
-VIRTUAL void unsharepvn _((char* sv, I32 len, U32 hash));
+VIRTUAL void unsharepvn _((const char* sv, I32 len, U32 hash));
VIRTUAL void unshare_hek _((HEK* hek));
VIRTUAL void utilize _((int aver, I32 floor, OP* version, OP* id, OP* arg));
VIRTUAL U8* utf16_to_utf8 _((U16* p, U8 *d, I32 bytelen));
void more_he _((void));
HE* new_he _((void));
void del_he _((HE *p));
-HEK *save_hek _((char *str, I32 len, U32 hash));
+HEK *save_hek _((const char *str, I32 len, U32 hash));
SV *mess_alloc _((void));
void gv_init_sv _((GV *gv, I32 sv_type));
SV *save_scalar_at _((SV **sptr));
I32 win32_textfilter _((int idx, SV *sv, int maxlen));
#endif
char* incl_perldb _((void));
-SV *isa_lookup _((HV *stash, char *name, int len, int level));
+SV *isa_lookup _((HV *stash, const char *name, int len, int level));
CV *get_db_sub _((SV **svp, CV *cv));
I32 list_assignment _((OP *o));
void bad_type _((I32 n, char *t, char *name, OP *kid));
void *bset_obj_store _((void *obj, I32 ix));
OP *new_logop _((I32 type, I32 flags, OP **firstp, OP **otherp));
void simplify_sort _((OP *o));
+bool is_handle_constructor _((OP *o, I32 argnum));
I32 do_trans_CC_simple _((SV *sv));
I32 do_trans_CC_count _((SV *sv));
#endif /* INDIRECT_BGET_MACROS */
VIRTUAL void sv_catpvf_mg _((SV *sv, const char* pat, ...));
-VIRTUAL void sv_catpv_mg _((SV *sv, char *ptr));
-VIRTUAL void sv_catpvn_mg _((SV *sv, char *ptr, STRLEN len));
+VIRTUAL void sv_catpv_mg _((SV *sv, const char *ptr));
+VIRTUAL void sv_catpvn_mg _((SV *sv, const char *ptr, STRLEN len));
VIRTUAL void sv_catsv_mg _((SV *dstr, SV *sstr));
VIRTUAL void sv_setpvf_mg _((SV *sv, const char* pat, ...));
VIRTUAL void sv_setiv_mg _((SV *sv, IV i));
VIRTUAL void do_sv_dump _((I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim));
VIRTUAL void magic_dump _((MAGIC *mg));
VIRTUAL void reginitcolors _((void));
+VIRTUAL char* sv_2pv_nolen _((SV* sv));
+VIRTUAL char* sv_pv _((SV *sv));