/*
* proto.h
*
- * Copyright (c) 1997-2002, Larry Wall
+ * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+ * 2000, 2001, 2002, 2003, 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.
PERL_CALLCONV OP* Perl_convert(pTHX_ I32 optype, I32 flags, OP* o);
PERL_CALLCONV void Perl_croak(pTHX_ const char* pat, ...) __attribute__((noreturn))
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV void Perl_vcroak(pTHX_ const char* pat, va_list* args) __attribute__((noreturn));
#if defined(PERL_IMPLICIT_CONTEXT)
PERL_CALLCONV void Perl_croak_nocontext(const char* pat, ...) __attribute__((noreturn))
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV OP* Perl_die_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV void Perl_deb_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV char* Perl_form_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV void Perl_load_module_nocontext(U32 flags, SV* name, SV* ver, ...);
PERL_CALLCONV SV* Perl_mess_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV void Perl_warn_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV void Perl_warner_nocontext(U32 err, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV SV* Perl_newSVpvf_nocontext(const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
PERL_CALLCONV void Perl_sv_catpvf_nocontext(SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV void Perl_sv_setpvf_nocontext(SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV void Perl_sv_catpvf_mg_nocontext(SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV void Perl_sv_setpvf_mg_nocontext(SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV int Perl_fprintf_nocontext(PerlIO* stream, const char* fmt, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,2,3)))
+ __attribute__((format(__printf__,2,3)))
#endif
;
PERL_CALLCONV int Perl_printf_nocontext(const char* fmt, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,1,2)))
+ __attribute__((format(__printf__,1,2)))
#endif
;
#endif
PERL_CALLCONV I32 Perl_cxinc(pTHX);
PERL_CALLCONV void Perl_deb(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV void Perl_vdeb(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV void Perl_deprecate_old(pTHX_ char* s);
PERL_CALLCONV OP* Perl_die(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV OP* Perl_vdie(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV OP* Perl_fold_constants(pTHX_ OP* arg);
PERL_CALLCONV char* Perl_form(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV char* Perl_vform(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV int Perl_magic_setnkeys(pTHX_ SV* sv, MAGIC* mg);
PERL_CALLCONV int Perl_magic_setpack(pTHX_ SV* sv, MAGIC* mg);
PERL_CALLCONV int Perl_magic_setpos(pTHX_ SV* sv, MAGIC* mg);
+PERL_CALLCONV int Perl_magic_setregexp(pTHX_ SV* sv, MAGIC* mg);
PERL_CALLCONV int Perl_magic_setsig(pTHX_ SV* sv, MAGIC* mg);
PERL_CALLCONV int Perl_magic_setsubstr(pTHX_ SV* sv, MAGIC* mg);
PERL_CALLCONV int Perl_magic_settaint(pTHX_ SV* sv, MAGIC* mg);
#endif
PERL_CALLCONV SV* Perl_mess(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV SV* Perl_vmess(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV SV* Perl_newSVpvn_share(pTHX_ const char* s, I32 len, U32 hash);
PERL_CALLCONV SV* Perl_newSVpvf(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV SV* Perl_vnewSVpvf(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV SV* Perl_sv_bless(pTHX_ SV* sv, HV* stash);
PERL_CALLCONV void Perl_sv_catpvf(pTHX_ SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_2,pTHX_3)))
+ __attribute__((format(__printf__,pTHX_2,pTHX_3)))
#endif
;
PERL_CALLCONV void Perl_sv_vcatpvf(pTHX_ SV* sv, const char* pat, va_list* args);
PERL_CALLCONV void Perl_sv_reset(pTHX_ char* s, HV* stash);
PERL_CALLCONV void Perl_sv_setpvf(pTHX_ SV* sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_2,pTHX_3)))
+ __attribute__((format(__printf__,pTHX_2,pTHX_3)))
#endif
;
PERL_CALLCONV void Perl_sv_vsetpvf(pTHX_ SV* sv, const char* pat, va_list* args);
PERL_CALLCONV void Perl_sv_setiv(pTHX_ SV* sv, IV num);
+PERL_CALLCONV void Perl_sv_setpviv(pTHX_ SV* sv, IV num);
PERL_CALLCONV void Perl_sv_setuv(pTHX_ SV* sv, UV num);
PERL_CALLCONV void Perl_sv_setnv(pTHX_ SV* sv, NV num);
PERL_CALLCONV SV* Perl_sv_setref_iv(pTHX_ SV* rv, const char* classname, IV iv);
PERL_CALLCONV I32 Perl_unpack_str(pTHX_ char *pat, char *patend, char *s, char *strbeg, char *strend, char **new_s, I32 ocnt, U32 flags);
PERL_CALLCONV void Perl_unsharepvn(pTHX_ const char* sv, I32 len, U32 hash);
PERL_CALLCONV void Perl_unshare_hek(pTHX_ HEK* hek);
-PERL_CALLCONV void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* id, OP* arg);
+PERL_CALLCONV void Perl_utilize(pTHX_ int aver, I32 floor, OP* version, OP* idop, OP* arg);
PERL_CALLCONV U8* Perl_utf16_to_utf8(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
PERL_CALLCONV U8* Perl_utf16_to_utf8_reversed(pTHX_ U8* p, U8 *d, I32 bytelen, I32 *newlen);
PERL_CALLCONV STRLEN Perl_utf8_length(pTHX_ U8* s, U8 *e);
PERL_CALLCONV void Perl_report_uninit(pTHX);
PERL_CALLCONV void Perl_warn(pTHX_ const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_1,pTHX_2)))
+ __attribute__((format(__printf__,pTHX_1,pTHX_2)))
#endif
;
PERL_CALLCONV void Perl_vwarn(pTHX_ const char* pat, va_list* args);
PERL_CALLCONV void Perl_warner(pTHX_ U32 err, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_2,pTHX_3)))
+ __attribute__((format(__printf__,pTHX_2,pTHX_3)))
#endif
;
PERL_CALLCONV void Perl_vwarner(pTHX_ U32 err, const char* pat, va_list* args);
PERL_CALLCONV int Perl_runops_debug(pTHX);
PERL_CALLCONV void Perl_sv_catpvf_mg(pTHX_ SV *sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_2,pTHX_3)))
+ __attribute__((format(__printf__,pTHX_2,pTHX_3)))
#endif
;
PERL_CALLCONV void Perl_sv_vcatpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args);
PERL_CALLCONV void Perl_sv_catsv_mg(pTHX_ SV *dstr, SV *sstr);
PERL_CALLCONV void Perl_sv_setpvf_mg(pTHX_ SV *sv, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_2,pTHX_3)))
+ __attribute__((format(__printf__,pTHX_2,pTHX_3)))
#endif
;
PERL_CALLCONV void Perl_sv_vsetpvf_mg(pTHX_ SV* sv, const char* pat, va_list* args);
PERL_CALLCONV void Perl_sv_setiv_mg(pTHX_ SV *sv, IV i);
+PERL_CALLCONV void Perl_sv_setpviv_mg(pTHX_ SV *sv, IV iv);
PERL_CALLCONV void Perl_sv_setuv_mg(pTHX_ SV *sv, UV u);
PERL_CALLCONV void Perl_sv_setnv_mg(pTHX_ SV *sv, NV num);
PERL_CALLCONV void Perl_sv_setpv_mg(pTHX_ SV *sv, const char *ptr);
PERL_CALLCONV char* Perl_pv_display(pTHX_ SV *dsv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim);
PERL_CALLCONV void Perl_dump_indent(pTHX_ I32 level, PerlIO *file, const char* pat, ...)
#ifdef CHECK_FORMAT
- __attribute__((format(printf,pTHX_3,pTHX_4)))
+ __attribute__((format(__printf__,pTHX_3,pTHX_4)))
#endif
;
PERL_CALLCONV void Perl_dump_vindent(pTHX_ I32 level, PerlIO *file, const char* pat, va_list *args);
#endif
#if defined(PERL_IN_PP_PACK_C) || defined(PERL_DECL_PROT)
-STATIC void S_doencodes(pTHX_ SV* sv, char* s, I32 len);
+STATIC I32 S_unpack_rec(pTHX_ tempsym_t* symptr, char *s, char *strbeg, char *strend, char **new_s);
+STATIC SV ** S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist);
STATIC SV* S_mul128(pTHX_ SV *sv, U8 m);
+STATIC I32 S_measure_struct(pTHX_ tempsym_t* symptr);
+STATIC char * S_group_end(pTHX_ char *pat, char *patend, char ender);
+STATIC char * S_get_num(pTHX_ char *ppat, I32 *);
+STATIC bool S_next_symbol(pTHX_ tempsym_t* symptr);
+STATIC void S_doencodes(pTHX_ SV* sv, char* s, I32 len);
STATIC SV* S_is_an_int(pTHX_ char *s, STRLEN l);
STATIC int S_div128(pTHX_ SV *pnum, bool *done);
-STATIC char * S_next_symbol(pTHX_ char *pat, char *patend);
-STATIC I32 S_find_count(pTHX_ char **ppat, char *patend, int *star);
-STATIC char * S_group_end(pTHX_ char *pat, char *patend, char ender);
-STATIC I32 S_measure_struct(pTHX_ char *pat, char *patend);
#endif
#if defined(PERL_IN_PP_CTL_C) || defined(PERL_DECL_PROT)
STATIC SV* S_mess_alloc(pTHX);
#endif
+#if defined(PERL_IN_NUMERIC_C) || defined(PERL_DECL_PROT)
+STATIC NV S_mulexp10(NV value, I32 exponent);
+#endif
+
START_EXTERN_C
PERL_CALLCONV void Perl_sv_setsv_flags(pTHX_ SV* dsv, SV* ssv, I32 flags);
PERL_CALLCONV void Perl_sv_copypv(pTHX_ SV* dsv, SV* ssv);
PERL_CALLCONV char* Perl_my_atof2(pTHX_ const char *s, NV* value);
PERL_CALLCONV int Perl_my_socketpair(int family, int type, int protocol, int fd[2]);
+#ifdef PERL_COPY_ON_WRITE
+PERL_CALLCONV SV* Perl_sv_setsv_cow(pTHX_ SV* dsv, SV* ssv);
+#endif
#if defined(USE_PERLIO) && !defined(USE_SFIO)
PERL_CALLCONV int Perl_PerlIO_close(pTHX_ PerlIO *);
STATIC CV* S_cv_clone2(pTHX_ CV *proto, CV *outside);
#endif
PERL_CALLCONV CV* Perl_find_runcv(pTHX_ U32 *db_seqp);
+PERL_CALLCONV void Perl_free_tied_hv_pool(pTHX);