add const qualifier to most char* prototypes, handle ripple effect
[p5sagit/p5-mst-13.2.git] / proto.h
CommitLineData
aab1f907 1#ifndef PERL_CALLCONV
2# define PERL_CALLCONV
3#endif
4
76e3520e 5#ifdef PERL_OBJECT
aab1f907 6#define VIRTUAL virtual PERL_CALLCONV
76e3520e 7#else
aab1f907 8#define VIRTUAL PERL_CALLCONV
22239a37 9START_EXTERN_C
76e3520e 10#endif
22239a37 11
d0c1b099 12/* NOTE!!! When new virtual functions are added, they must be added at
13 * the end of this file to maintain binary compatibility with PERL_OBJECT
14 */
15
16
fed7345c 17#ifndef NEXT30_NO_ATTRIBUTE
ecfc5424 18#ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */
19#ifdef __attribute__ /* Avoid possible redefinition errors */
a0d0e21e 20#undef __attribute__
ecfc5424 21#endif
a0d0e21e 22#define __attribute__(attr)
aeea060c 23#endif
a0d0e21e 24#endif
76e3520e 25VIRTUAL SV* amagic_call _((SV* left,SV* right,int method,int dir));
26VIRTUAL bool Gv_AMupdate _((HV* stash));
76e3520e 27VIRTUAL OP* append_elem _((I32 optype, OP* head, OP* tail));
28VIRTUAL OP* append_list _((I32 optype, LISTOP* first, LISTOP* last));
29VIRTUAL I32 apply _((I32 type, SV** mark, SV** sp));
30VIRTUAL void assertref _((OP* o));
76e3520e 31VIRTUAL bool avhv_exists_ent _((AV *ar, SV* keysv, U32 hash));
76e3520e 32VIRTUAL SV** avhv_fetch_ent _((AV *ar, SV* keysv, I32 lval, U32 hash));
76e3520e 33VIRTUAL HE* avhv_iternext _((AV *ar));
76e3520e 34VIRTUAL SV* avhv_iterval _((AV *ar, HE* entry));
35VIRTUAL HV* avhv_keys _((AV *ar));
76e3520e 36VIRTUAL void av_clear _((AV* ar));
37VIRTUAL void av_extend _((AV* ar, I32 key));
38VIRTUAL AV* av_fake _((I32 size, SV** svp));
39VIRTUAL SV** av_fetch _((AV* ar, I32 key, I32 lval));
40VIRTUAL void av_fill _((AV* ar, I32 fill));
41VIRTUAL I32 av_len _((AV* ar));
42VIRTUAL AV* av_make _((I32 size, SV** svp));
43VIRTUAL SV* av_pop _((AV* ar));
44VIRTUAL void av_push _((AV* ar, SV* val));
45VIRTUAL void av_reify _((AV* ar));
46VIRTUAL SV* av_shift _((AV* ar));
47VIRTUAL SV** av_store _((AV* ar, I32 key, SV* val));
48VIRTUAL void av_undef _((AV* ar));
49VIRTUAL void av_unshift _((AV* ar, I32 num));
50VIRTUAL OP* bind_match _((I32 type, OP* left, OP* pat));
51VIRTUAL OP* block_end _((I32 floor, OP* seq));
52VIRTUAL I32 block_gimme _((void));
53VIRTUAL int block_start _((int full));
54VIRTUAL void boot_core_UNIVERSAL _((void));
e3b8966e 55VIRTUAL void call_list _((I32 oldscope, AV* av_list));
76e3520e 56VIRTUAL I32 cando _((I32 bit, I32 effective, Stat_t* statbufp));
76e3520e 57VIRTUAL U32 cast_ulong _((double f));
22c35a8c 58VIRTUAL I32 cast_i32 _((double f));
59VIRTUAL IV cast_iv _((double f));
60VIRTUAL UV cast_uv _((double f));
a0d0e21e 61#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
76e3520e 62VIRTUAL I32 my_chsize _((int fd, Off_t length));
a0d0e21e 63#endif
22c35a8c 64
f93b4edd 65#ifdef USE_THREADS
76e3520e 66VIRTUAL MAGIC * condpair_magic _((SV *sv));
67#endif
68VIRTUAL OP* convert _((I32 optype, I32 flags, OP* o));
69VIRTUAL void croak _((const char* pat,...)) __attribute__((noreturn));
70VIRTUAL void cv_ckproto _((CV* cv, GV* gv, char* p));
71VIRTUAL CV* cv_clone _((CV* proto));
72VIRTUAL SV* cv_const_sv _((CV* cv));
d1541cac 73VIRTUAL SV* op_const_sv _((OP* o, CV* cv));
76e3520e 74VIRTUAL void cv_undef _((CV* cv));
873ef191 75VIRTUAL void cx_dump _((PERL_CONTEXT* cs));
76e3520e 76VIRTUAL SV* filter_add _((filter_t funcp, SV* datasv));
77VIRTUAL void filter_del _((filter_t funcp));
78VIRTUAL I32 filter_read _((int idx, SV* buffer, int maxlen));
79VIRTUAL char ** get_op_descs _((void));
80VIRTUAL char ** get_op_names _((void));
9e6b2b00 81VIRTUAL char * get_no_modify _((void));
82VIRTUAL U32 * get_opargs _((void));
76e3520e 83VIRTUAL I32 cxinc _((void));
6a27c188 84VIRTUAL void deb _((const char* pat,...));
ac4c12e7 85VIRTUAL void deb_growlevel _((void));
86VIRTUAL void debprofdump _((void));
87VIRTUAL I32 debop _((OP* o));
88VIRTUAL I32 debstack _((void));
89VIRTUAL I32 debstackptrs _((void));
76e3520e 90VIRTUAL char* delimcpy _((char* to, char* toend, char* from, char* fromend,
fc36a67e 91 int delim, I32* retlen));
76e3520e 92VIRTUAL void deprecate _((char* s));
93VIRTUAL OP* die _((const char* pat,...));
94VIRTUAL OP* die_where _((char* message));
95VIRTUAL void dounwind _((I32 cxix));
96VIRTUAL bool do_aexec _((SV* really, SV** mark, SV** sp));
36660982 97VIRTUAL int do_binmode _((PerlIO *fp, int iotype, int flag));
76e3520e 98VIRTUAL void do_chop _((SV* asv, SV* sv));
99VIRTUAL bool do_close _((GV* gv, bool not_implicit));
100VIRTUAL bool do_eof _((GV* gv));
101VIRTUAL bool do_exec _((char* cmd));
102VIRTUAL void do_execfree _((void));
a0d0e21e 103#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
104I32 do_ipcctl _((I32 optype, SV** mark, SV** sp));
105I32 do_ipcget _((I32 optype, SV** mark, SV** sp));
106#endif
76e3520e 107VIRTUAL void do_join _((SV* sv, SV* del, SV** mark, SV** sp));
108VIRTUAL OP* do_kv _((ARGSproto));
a0d0e21e 109#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
110I32 do_msgrcv _((SV** mark, SV** sp));
111I32 do_msgsnd _((SV** mark, SV** sp));
112#endif
76e3520e 113VIRTUAL bool do_open _((GV* gv, char* name, I32 len,
760ac839 114 int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp));
76e3520e 115VIRTUAL void do_pipe _((SV* sv, GV* rgv, GV* wgv));
116VIRTUAL bool do_print _((SV* sv, PerlIO* fp));
117VIRTUAL OP* do_readline _((void));
118VIRTUAL I32 do_chomp _((SV* sv));
5ff3f7a4 119VIRTUAL bool do_seek _((GV* gv, Off_t pos, int whence));
a0d0e21e 120#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
121I32 do_semop _((SV** mark, SV** sp));
122I32 do_shmio _((I32 optype, SV** mark, SV** sp));
123#endif
76e3520e 124VIRTUAL void do_sprintf _((SV* sv, I32 len, SV** sarg));
97cc44eb 125VIRTUAL Off_t do_sysseek _((GV* gv, Off_t pos, int whence));
5ff3f7a4 126VIRTUAL Off_t do_tell _((GV* gv));
4757a243 127VIRTUAL I32 do_trans _((SV* sv));
76e3520e 128VIRTUAL void do_vecset _((SV* sv));
129VIRTUAL void do_vop _((I32 optype, SV* sv, SV* left, SV* right));
78ca652e 130VIRTUAL OP* dofile _((OP* term));
76e3520e 131VIRTUAL I32 dowantarray _((void));
132VIRTUAL void dump_all _((void));
873ef191 133VIRTUAL void dump_eval _((void));
748a9306 134#ifdef DUMP_FDS /* See util.c */
35ff7856 135VIRTUAL void dump_fds _((char* s));
a0d0e21e 136#endif
873ef191 137VIRTUAL void dump_form _((GV* gv));
3967c732 138VIRTUAL void gv_dump _((GV* gv));
8eccb90b 139#ifdef MYMALLOC
873ef191 140VIRTUAL void dump_mstats _((char* s));
8eccb90b 141#endif
3967c732 142VIRTUAL void op_dump _((OP* arg));
143VIRTUAL void pmop_dump _((PMOP* pm));
873ef191 144VIRTUAL void dump_packsubs _((HV* stash));
145VIRTUAL void dump_sub _((GV* gv));
3bd495df 146VIRTUAL void fbm_compile _((SV* sv, U32 flags));
411d5715 147VIRTUAL char* fbm_instr _((unsigned char* big, unsigned char* bigend, SV* littlesv, U32 flags));
36660982 148VIRTUAL char* find_script _((char *scriptname, bool dosearch, char **search_ext, I32 flags));
aeea060c 149#ifdef USE_THREADS
08105a92 150VIRTUAL PADOFFSET find_threadsv _((const char *name));
76e3520e 151#endif
152VIRTUAL OP* force_list _((OP* arg));
153VIRTUAL OP* fold_constants _((OP* arg));
154VIRTUAL char* form _((const char* pat, ...));
155VIRTUAL void free_tmps _((void));
156VIRTUAL OP* gen_constant_list _((OP* o));
157VIRTUAL void gp_free _((GV* gv));
158VIRTUAL GP* gp_ref _((GP* gp));
159VIRTUAL GV* gv_AVadd _((GV* gv));
160VIRTUAL GV* gv_HVadd _((GV* gv));
161VIRTUAL GV* gv_IOadd _((GV* gv));
08105a92 162VIRTUAL GV* gv_autoload4 _((HV* stash, const char* name, STRLEN len, I32 method));
76e3520e 163VIRTUAL void gv_check _((HV* stash));
164VIRTUAL void gv_efullname _((SV* sv, GV* gv));
08105a92 165VIRTUAL void gv_efullname3 _((SV* sv, GV* gv, const char* prefix));
166VIRTUAL GV* gv_fetchfile _((const char* name));
167VIRTUAL GV* gv_fetchmeth _((HV* stash, const char* name, STRLEN len, I32 level));
168VIRTUAL GV* gv_fetchmethod _((HV* stash, const char* name));
169VIRTUAL GV* gv_fetchmethod_autoload _((HV* stash, const char* name, I32 autoload));
170VIRTUAL GV* gv_fetchpv _((const char* name, I32 add, I32 sv_type));
76e3520e 171VIRTUAL void gv_fullname _((SV* sv, GV* gv));
08105a92 172VIRTUAL void gv_fullname3 _((SV* sv, GV* gv, const char* prefix));
173VIRTUAL void gv_init _((GV* gv, HV* stash, const char* name, STRLEN len, int multi));
174VIRTUAL HV* gv_stashpv _((const char* name, I32 create));
175VIRTUAL HV* gv_stashpvn _((const char* name, U32 namelen, I32 create));
76e3520e 176VIRTUAL HV* gv_stashsv _((SV* sv, I32 create));
177VIRTUAL void hv_clear _((HV* tb));
178VIRTUAL void hv_delayfree_ent _((HV* hv, HE* entry));
08105a92 179VIRTUAL SV* hv_delete _((HV* tb, const char* key, U32 klen, I32 flags));
76e3520e 180VIRTUAL SV* hv_delete_ent _((HV* tb, SV* key, I32 flags, U32 hash));
08105a92 181VIRTUAL bool hv_exists _((HV* tb, const char* key, U32 klen));
76e3520e 182VIRTUAL bool hv_exists_ent _((HV* tb, SV* key, U32 hash));
08105a92 183VIRTUAL SV** hv_fetch _((HV* tb, const char* key, U32 klen, I32 lval));
76e3520e 184VIRTUAL HE* hv_fetch_ent _((HV* tb, SV* key, I32 lval, U32 hash));
185VIRTUAL void hv_free_ent _((HV* hv, HE* entry));
186VIRTUAL I32 hv_iterinit _((HV* tb));
187VIRTUAL char* hv_iterkey _((HE* entry, I32* retlen));
188VIRTUAL SV* hv_iterkeysv _((HE* entry));
189VIRTUAL HE* hv_iternext _((HV* tb));
190VIRTUAL SV* hv_iternextsv _((HV* hv, char** key, I32* retlen));
191VIRTUAL SV* hv_iterval _((HV* tb, HE* entry));
192VIRTUAL void hv_ksplit _((HV* hv, IV newmax));
193VIRTUAL void hv_magic _((HV* hv, GV* gv, int how));
08105a92 194VIRTUAL SV** hv_store _((HV* tb, const char* key, U32 klen, SV* val, U32 hash));
76e3520e 195VIRTUAL HE* hv_store_ent _((HV* tb, SV* key, SV* val, U32 hash));
196VIRTUAL void hv_undef _((HV* tb));
08105a92 197VIRTUAL I32 ibcmp _((const char* a, const char* b, I32 len));
198VIRTUAL I32 ibcmp_locale _((const char* a, const char* b, I32 len));
76e3520e 199VIRTUAL I32 ingroup _((I32 testgid, I32 effective));
200VIRTUAL void init_stacks _((ARGSproto));
201VIRTUAL U32 intro_my _((void));
08105a92 202VIRTUAL char* instr _((const char* big, const char* little));
76e3520e 203VIRTUAL bool io_close _((IO* io));
204VIRTUAL OP* invert _((OP* cmd));
a176fa2a 205VIRTUAL bool is_uni_alnum _((U32 c));
206VIRTUAL bool is_uni_idfirst _((U32 c));
207VIRTUAL bool is_uni_alpha _((U32 c));
208VIRTUAL bool is_uni_space _((U32 c));
209VIRTUAL bool is_uni_digit _((U32 c));
210VIRTUAL bool is_uni_upper _((U32 c));
211VIRTUAL bool is_uni_lower _((U32 c));
212VIRTUAL bool is_uni_print _((U32 c));
213VIRTUAL U32 to_uni_upper _((U32 c));
214VIRTUAL U32 to_uni_title _((U32 c));
215VIRTUAL U32 to_uni_lower _((U32 c));
216VIRTUAL bool is_uni_alnum_lc _((U32 c));
217VIRTUAL bool is_uni_idfirst_lc _((U32 c));
218VIRTUAL bool is_uni_alpha_lc _((U32 c));
219VIRTUAL bool is_uni_space_lc _((U32 c));
220VIRTUAL bool is_uni_digit_lc _((U32 c));
221VIRTUAL bool is_uni_upper_lc _((U32 c));
222VIRTUAL bool is_uni_lower_lc _((U32 c));
223VIRTUAL bool is_uni_print_lc _((U32 c));
224VIRTUAL U32 to_uni_upper_lc _((U32 c));
225VIRTUAL U32 to_uni_title_lc _((U32 c));
226VIRTUAL U32 to_uni_lower_lc _((U32 c));
dfe13c55 227VIRTUAL bool is_utf8_alnum _((U8 *p));
228VIRTUAL bool is_utf8_idfirst _((U8 *p));
229VIRTUAL bool is_utf8_alpha _((U8 *p));
230VIRTUAL bool is_utf8_space _((U8 *p));
231VIRTUAL bool is_utf8_digit _((U8 *p));
232VIRTUAL bool is_utf8_upper _((U8 *p));
233VIRTUAL bool is_utf8_lower _((U8 *p));
234VIRTUAL bool is_utf8_print _((U8 *p));
235VIRTUAL bool is_utf8_mark _((U8 *p));
76e3520e 236VIRTUAL OP* jmaybe _((OP* arg));
237VIRTUAL I32 keyword _((char* d, I32 len));
238VIRTUAL void leave_scope _((I32 base));
239VIRTUAL void lex_end _((void));
240VIRTUAL void lex_start _((SV* line));
241VIRTUAL OP* linklist _((OP* o));
242VIRTUAL OP* list _((OP* o));
243VIRTUAL OP* listkids _((OP* o));
244VIRTUAL OP* localize _((OP* arg, I32 lexical));
245VIRTUAL I32 looks_like_number _((SV* sv));
246VIRTUAL int magic_clearenv _((SV* sv, MAGIC* mg));
247VIRTUAL int magic_clear_all_env _((SV* sv, MAGIC* mg));
248VIRTUAL int magic_clearpack _((SV* sv, MAGIC* mg));
249VIRTUAL int magic_clearsig _((SV* sv, MAGIC* mg));
250VIRTUAL int magic_existspack _((SV* sv, MAGIC* mg));
76e3520e 251VIRTUAL int magic_freeregexp _((SV* sv, MAGIC* mg));
252VIRTUAL int magic_get _((SV* sv, MAGIC* mg));
253VIRTUAL int magic_getarylen _((SV* sv, MAGIC* mg));
254VIRTUAL int magic_getdefelem _((SV* sv, MAGIC* mg));
255VIRTUAL int magic_getglob _((SV* sv, MAGIC* mg));
36660982 256VIRTUAL int magic_getnkeys _((SV* sv, MAGIC* mg));
76e3520e 257VIRTUAL int magic_getpack _((SV* sv, MAGIC* mg));
258VIRTUAL int magic_getpos _((SV* sv, MAGIC* mg));
259VIRTUAL int magic_getsig _((SV* sv, MAGIC* mg));
36660982 260VIRTUAL int magic_getsubstr _((SV* sv, MAGIC* mg));
76e3520e 261VIRTUAL int magic_gettaint _((SV* sv, MAGIC* mg));
262VIRTUAL int magic_getuvar _((SV* sv, MAGIC* mg));
36660982 263VIRTUAL int magic_getvec _((SV* sv, MAGIC* mg));
76e3520e 264VIRTUAL U32 magic_len _((SV* sv, MAGIC* mg));
f93b4edd 265#ifdef USE_THREADS
76e3520e 266VIRTUAL int magic_mutexfree _((SV* sv, MAGIC* mg));
f93b4edd 267#endif /* USE_THREADS */
76e3520e 268VIRTUAL int magic_nextpack _((SV* sv, MAGIC* mg, SV* key));
942e002e 269VIRTUAL U32 magic_regdata_cnt _((SV* sv, MAGIC* mg));
6cef1e77 270VIRTUAL int magic_regdatum_get _((SV* sv, MAGIC* mg));
76e3520e 271VIRTUAL int magic_set _((SV* sv, MAGIC* mg));
76e3520e 272VIRTUAL int magic_setamagic _((SV* sv, MAGIC* mg));
76e3520e 273VIRTUAL int magic_setarylen _((SV* sv, MAGIC* mg));
274VIRTUAL int magic_setbm _((SV* sv, MAGIC* mg));
275VIRTUAL int magic_setdbline _((SV* sv, MAGIC* mg));
44a8e56a 276#ifdef USE_LOCALE_COLLATE
76e3520e 277VIRTUAL int magic_setcollxfrm _((SV* sv, MAGIC* mg));
278#endif
279VIRTUAL int magic_setdefelem _((SV* sv, MAGIC* mg));
280VIRTUAL int magic_setenv _((SV* sv, MAGIC* mg));
281VIRTUAL int magic_setfm _((SV* sv, MAGIC* mg));
282VIRTUAL int magic_setisa _((SV* sv, MAGIC* mg));
283VIRTUAL int magic_setglob _((SV* sv, MAGIC* mg));
284VIRTUAL int magic_setmglob _((SV* sv, MAGIC* mg));
285VIRTUAL int magic_setnkeys _((SV* sv, MAGIC* mg));
286VIRTUAL int magic_setpack _((SV* sv, MAGIC* mg));
287VIRTUAL int magic_setpos _((SV* sv, MAGIC* mg));
288VIRTUAL int magic_setsig _((SV* sv, MAGIC* mg));
289VIRTUAL int magic_setsubstr _((SV* sv, MAGIC* mg));
290VIRTUAL int magic_settaint _((SV* sv, MAGIC* mg));
291VIRTUAL int magic_setuvar _((SV* sv, MAGIC* mg));
292VIRTUAL int magic_setvec _((SV* sv, MAGIC* mg));
293VIRTUAL int magic_set_all_env _((SV* sv, MAGIC* mg));
8f818fa0 294VIRTUAL U32 magic_sizepack _((SV* sv, MAGIC* mg));
76e3520e 295VIRTUAL int magic_wipepack _((SV* sv, MAGIC* mg));
296VIRTUAL void magicname _((char* sym, char* name, I32 namlen));
a0d0e21e 297int main _((int argc, char** argv, char** env));
066ef5b5 298#ifdef MYMALLOC
8d6dde3e 299VIRTUAL MEM_SIZE malloced_size _((void *p));
066ef5b5 300#endif
76e3520e 301VIRTUAL void markstack_grow _((void));
5f05dabc 302#ifdef USE_LOCALE_COLLATE
76e3520e 303VIRTUAL char* mem_collxfrm _((const char* s, STRLEN len, STRLEN* xlen));
304#endif
305VIRTUAL char* mess _((const char* pat, va_list* args));
306VIRTUAL int mg_clear _((SV* sv));
08105a92 307VIRTUAL int mg_copy _((SV* sv, SV* nsv, const char* key, I32 klen));
76e3520e 308VIRTUAL MAGIC* mg_find _((SV* sv, int type));
309VIRTUAL int mg_free _((SV* sv));
310VIRTUAL int mg_get _((SV* sv));
565764a8 311VIRTUAL U32 mg_length _((SV* sv));
76e3520e 312VIRTUAL void mg_magical _((SV* sv));
313VIRTUAL int mg_set _((SV* sv));
8f818fa0 314VIRTUAL I32 mg_size _((SV* sv));
76e3520e 315VIRTUAL OP* mod _((OP* o, I32 type));
316VIRTUAL char* moreswitches _((char* s));
317VIRTUAL OP* my _((OP* o));
5f05dabc 318#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
08105a92 319VIRTUAL char* my_bcopy _((const char* from, char* to, I32 len));
5f05dabc 320#endif
a0d0e21e 321#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
322char* my_bzero _((char* loc, I32 len));
85e6fe83 323#endif
76e3520e 324VIRTUAL void my_exit _((U32 status)) __attribute__((noreturn));
325VIRTUAL void my_failure_exit _((void)) __attribute__((noreturn));
326VIRTUAL I32 my_lstat _((ARGSproto));
5f05dabc 327#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
08105a92 328VIRTUAL I32 my_memcmp _((const char* s1, const char* s2, I32 len));
a0d0e21e 329#endif
fc36a67e 330#if !defined(HAS_MEMSET)
873ef191 331VIRTUAL void* my_memset _((char* loc, I32 ch, I32 len));
fc36a67e 332#endif
76e3520e 333#ifndef PERL_OBJECT
334VIRTUAL I32 my_pclose _((PerlIO* ptr));
335VIRTUAL PerlIO* my_popen _((char* cmd, char* mode));
336#endif
337VIRTUAL void my_setenv _((char* nam, char* val));
338VIRTUAL I32 my_stat _((ARGSproto));
a0d0e21e 339#ifdef MYSWAP
76e3520e 340VIRTUAL short my_swap _((short s));
341VIRTUAL long my_htonl _((long l));
342VIRTUAL long my_ntohl _((long l));
343#endif
344VIRTUAL void my_unexec _((void));
345VIRTUAL OP* newANONLIST _((OP* o));
346VIRTUAL OP* newANONHASH _((OP* o));
347VIRTUAL OP* newANONSUB _((I32 floor, OP* proto, OP* block));
348VIRTUAL OP* newASSIGNOP _((I32 flags, OP* left, I32 optype, OP* right));
349VIRTUAL OP* newCONDOP _((I32 flags, OP* expr, OP* trueop, OP* falseop));
ba3eb2af 350VIRTUAL void newCONSTSUB _((HV* stash, char* name, SV* sv));
76e3520e 351VIRTUAL void newFORM _((I32 floor, OP* o, OP* block));
e3b8966e 352VIRTUAL OP* newFOROP _((I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont));
76e3520e 353VIRTUAL OP* newLOGOP _((I32 optype, I32 flags, OP* left, OP* right));
354VIRTUAL OP* newLOOPEX _((I32 type, OP* label));
355VIRTUAL OP* newLOOPOP _((I32 flags, I32 debuggable, OP* expr, OP* block));
356VIRTUAL OP* newNULLLIST _((void));
357VIRTUAL OP* newOP _((I32 optype, I32 flags));
358VIRTUAL void newPROG _((OP* o));
359VIRTUAL OP* newRANGE _((I32 flags, OP* left, OP* right));
c6af7a1a 360VIRTUAL OP* newSLICEOP _((I32 flags, OP* subscript, OP* listop));
76e3520e 361VIRTUAL OP* newSTATEOP _((I32 flags, char* label, OP* o));
362VIRTUAL CV* newSUB _((I32 floor, OP* o, OP* proto, OP* block));
e3b8966e 363VIRTUAL CV* newXS _((char* name, void (*subaddr)(CV* cv _CPERLproto), char* filename));
76e3520e 364VIRTUAL AV* newAV _((void));
365VIRTUAL OP* newAVREF _((OP* o));
366VIRTUAL OP* newBINOP _((I32 type, I32 flags, OP* first, OP* last));
367VIRTUAL OP* newCVREF _((I32 flags, OP* o));
368VIRTUAL OP* newGVOP _((I32 type, I32 flags, GV* gv));
369VIRTUAL GV* newGVgen _((char* pack));
370VIRTUAL OP* newGVREF _((I32 type, OP* o));
371VIRTUAL OP* newHVREF _((OP* o));
372VIRTUAL HV* newHV _((void));
b3ac6de7 373VIRTUAL HV* newHVhv _((HV* hv));
76e3520e 374VIRTUAL IO* newIO _((void));
375VIRTUAL OP* newLISTOP _((I32 type, I32 flags, OP* first, OP* last));
376VIRTUAL OP* newPMOP _((I32 type, I32 flags));
377VIRTUAL OP* newPVOP _((I32 type, I32 flags, char* pv));
e3b8966e 378VIRTUAL SV* newRV _((SV* pref));
e3b8966e 379VIRTUAL SV* newRV_noinc _((SV *sv));
76e3520e 380VIRTUAL SV* newSV _((STRLEN len));
76e3520e 381VIRTUAL OP* newSVREF _((OP* o));
382VIRTUAL OP* newSVOP _((I32 type, I32 flags, SV* sv));
383VIRTUAL SV* newSViv _((IV i));
384VIRTUAL SV* newSVnv _((double n));
08105a92 385VIRTUAL SV* newSVpv _((const char* s, STRLEN len));
386VIRTUAL SV* newSVpvn _((const char *s, STRLEN len));
76e3520e 387VIRTUAL SV* newSVpvf _((const char* pat, ...));
08105a92 388VIRTUAL SV* newSVrv _((SV* rv, const char* classname));
76e3520e 389VIRTUAL SV* newSVsv _((SV* old));
390VIRTUAL OP* newUNOP _((I32 type, I32 flags, OP* first));
391VIRTUAL OP* newWHILEOP _((I32 flags, I32 debuggable, LOOP* loop,
fb73857a 392 I32 whileline, OP* expr, OP* block, OP* cont));
aeea060c 393#ifdef USE_THREADS
76e3520e 394VIRTUAL struct perl_thread * new_struct_thread _((struct perl_thread *t));
395#endif
ba3eb2af 396VIRTUAL PERL_SI * new_stackinfo _((I32 stitems, I32 cxitems));
76e3520e 397VIRTUAL PerlIO* nextargv _((GV* gv));
08105a92 398VIRTUAL char* ninstr _((const char* big, const char* bigend, const char* little, const char* lend));
76e3520e 399VIRTUAL OP* oopsCV _((OP* o));
400VIRTUAL void op_free _((OP* arg));
401VIRTUAL void package _((OP* o));
402VIRTUAL PADOFFSET pad_alloc _((I32 optype, U32 tmptype));
403VIRTUAL PADOFFSET pad_allocmy _((char* name));
404VIRTUAL PADOFFSET pad_findmy _((char* name));
405VIRTUAL OP* oopsAV _((OP* o));
406VIRTUAL OP* oopsHV _((OP* o));
407VIRTUAL void pad_leavemy _((I32 fill));
408VIRTUAL SV* pad_sv _((PADOFFSET po));
409VIRTUAL void pad_free _((PADOFFSET po));
410VIRTUAL void pad_reset _((void));
411VIRTUAL void pad_swipe _((PADOFFSET po));
412VIRTUAL void peep _((OP* o));
413#ifndef PERL_OBJECT
a0d0e21e 414PerlInterpreter* perl_alloc _((void));
76e3520e 415#endif
873ef191 416#ifdef PERL_OBJECT
35ff7856 417VIRTUAL void perl_atexit _((void(*fn)(CPerlObj *, void *), void* ptr));
873ef191 418#else
419void perl_atexit _((void(*fn)(void *), void*));
420#endif
08105a92 421VIRTUAL I32 perl_call_argv _((const char* sub_name, I32 flags, char** argv));
422VIRTUAL I32 perl_call_method _((const char* methname, I32 flags));
423VIRTUAL I32 perl_call_pv _((const char* sub_name, I32 flags));
76e3520e 424VIRTUAL I32 perl_call_sv _((SV* sv, I32 flags));
425#ifdef PERL_OBJECT
426VIRTUAL void perl_construct _((void));
427VIRTUAL void perl_destruct _((void));
428#else
a0d0e21e 429void perl_construct _((PerlInterpreter* sv_interp));
748a9306 430void perl_destruct _((PerlInterpreter* sv_interp));
76e3520e 431#endif
08105a92 432VIRTUAL SV* perl_eval_pv _((const char* p, I32 croak_on_error));
76e3520e 433VIRTUAL I32 perl_eval_sv _((SV* sv, I32 flags));
434#ifdef PERL_OBJECT
435VIRTUAL void perl_free _((void));
436#else
a0d0e21e 437void perl_free _((PerlInterpreter* sv_interp));
76e3520e 438#endif
08105a92 439VIRTUAL SV* perl_get_sv _((const char* name, I32 create));
440VIRTUAL AV* perl_get_av _((const char* name, I32 create));
441VIRTUAL HV* perl_get_hv _((const char* name, I32 create));
442VIRTUAL CV* perl_get_cv _((const char* name, I32 create));
76e3520e 443VIRTUAL int perl_init_i18nl10n _((int printwarn));
444VIRTUAL int perl_init_i18nl14n _((int printwarn));
08105a92 445VIRTUAL void perl_new_collate _((const char* newcoll));
446VIRTUAL void perl_new_ctype _((const char* newctype));
447VIRTUAL void perl_new_numeric _((const char* newcoll));
76e3520e 448VIRTUAL void perl_set_numeric_local _((void));
449VIRTUAL void perl_set_numeric_standard _((void));
450#ifdef PERL_OBJECT
451VIRTUAL int perl_parse _((void(*xsinit)(CPerlObj*), int argc, char** argv, char** env));
452#else
a0d0e21e 453int perl_parse _((PerlInterpreter* sv_interp, void(*xsinit)(void), int argc, char** argv, char** env));
76e3520e 454#endif
08105a92 455VIRTUAL void perl_require_pv _((const char* pv));
4633a7c4 456#define perl_requirepv perl_require_pv
76e3520e 457#ifdef PERL_OBJECT
458VIRTUAL int perl_run _((void));
459#else
a0d0e21e 460int perl_run _((PerlInterpreter* sv_interp));
76e3520e 461#endif
462VIRTUAL void pidgone _((int pid, int status));
463VIRTUAL void pmflag _((U16* pmfl, int ch));
464VIRTUAL OP* pmruntime _((OP* pm, OP* expr, OP* repl));
465VIRTUAL OP* pmtrans _((OP* o, OP* expr, OP* repl));
466VIRTUAL OP* pop_return _((void));
467VIRTUAL void pop_scope _((void));
468VIRTUAL OP* prepend_elem _((I32 optype, OP* head, OP* tail));
469VIRTUAL void push_return _((OP* o));
470VIRTUAL void push_scope _((void));
76e3520e 471VIRTUAL OP* ref _((OP* o, I32 type));
472VIRTUAL OP* refkids _((OP* o, I32 type));
873ef191 473VIRTUAL void regdump _((regexp* r));
76e3520e 474VIRTUAL I32 pregexec _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave));
76e3520e 475VIRTUAL void pregfree _((struct regexp* r));
f34e5ce4 476VIRTUAL regexp* pregcomp _((char* exp, char* xend, PMOP* pm));
477VIRTUAL I32 regexec_flags _((regexp* prog, char* stringarg, char* strend,
478 char* strbeg, I32 minend, SV* screamer,
479 void* data, U32 flags));
e3b8966e 480VIRTUAL regnode* regnext _((regnode* p));
873ef191 481VIRTUAL void regprop _((SV* sv, regnode* o));
08105a92 482VIRTUAL void repeatcpy _((char* to, const char* from, I32 len, I32 count));
483VIRTUAL char* rninstr _((const char* big, const char* bigend, const char* little, const char* lend));
e3b8966e 484VIRTUAL Sighandler_t rsignal _((int i, Sighandler_t t));
485VIRTUAL int rsignal_restore _((int i, Sigsave_t* t));
486VIRTUAL int rsignal_save _((int i, Sighandler_t t1, Sigsave_t* t2));
487VIRTUAL Sighandler_t rsignal_state _((int i));
76e3520e 488VIRTUAL void rxres_free _((void** rsp));
e3b8966e 489VIRTUAL void rxres_restore _((void** rsp, REGEXP* prx));
490VIRTUAL void rxres_save _((void** rsp, REGEXP* prx));
a0d0e21e 491#ifndef HAS_RENAME
76e3520e 492VIRTUAL I32 same_dirent _((char* a, char* b));
493#endif
08105a92 494VIRTUAL char* savepv _((const char* sv));
495VIRTUAL char* savepvn _((const char* sv, I32 len));
76e3520e 496VIRTUAL void savestack_grow _((void));
3bd495df 497VIRTUAL void save_aelem _((AV* av, I32 idx, SV **sptr));
455ece5e 498VIRTUAL I32 save_alloc _((I32 size, I32 pad));
76e3520e 499VIRTUAL void save_aptr _((AV** aptr));
500VIRTUAL AV* save_ary _((GV* gv));
501VIRTUAL void save_clearsv _((SV** svp));
502VIRTUAL void save_delete _((HV* hv, char* key, I32 klen));
a0d0e21e 503#ifndef titan /* TitanOS cc can't handle this */
76e3520e 504#ifdef PERL_OBJECT
565764a8 505typedef void (CPerlObj::*DESTRUCTORFUNC) _((void*));
506VIRTUAL void save_destructor _((DESTRUCTORFUNC f, void* p));
76e3520e 507#else
a0d0e21e 508void save_destructor _((void (*f)(void*), void* p));
76e3520e 509#endif
a0d0e21e 510#endif /* titan */
76e3520e 511VIRTUAL void save_freesv _((SV* sv));
512VIRTUAL void save_freeop _((OP* o));
513VIRTUAL void save_freepv _((char* pv));
b9d12d37 514VIRTUAL void save_generic_svref _((SV** sptr));
76e3520e 515VIRTUAL void save_gp _((GV* gv, I32 empty));
516VIRTUAL HV* save_hash _((GV* gv));
3bd495df 517VIRTUAL void save_helem _((HV* hv, SV *key, SV **sptr));
b3ac6de7 518VIRTUAL void save_hints _((void));
76e3520e 519VIRTUAL void save_hptr _((HV** hptr));
520VIRTUAL void save_I16 _((I16* intp));
521VIRTUAL void save_I32 _((I32* intp));
522VIRTUAL void save_int _((int* intp));
523VIRTUAL void save_item _((SV* item));
524VIRTUAL void save_iv _((IV* iv));
525VIRTUAL void save_list _((SV** sarg, I32 maxsarg));
526VIRTUAL void save_long _((long* longp));
527VIRTUAL void save_nogv _((GV* gv));
528VIRTUAL void save_op _((void));
529VIRTUAL SV* save_scalar _((GV* gv));
530VIRTUAL void save_pptr _((char** pptr));
a0ed51b3 531VIRTUAL void save_re_context _((void));
76e3520e 532VIRTUAL void save_sptr _((SV** sptr));
533VIRTUAL SV* save_svref _((SV** sptr));
534VIRTUAL SV** save_threadsv _((PADOFFSET i));
535VIRTUAL OP* sawparens _((OP* o));
536VIRTUAL OP* scalar _((OP* o));
537VIRTUAL OP* scalarkids _((OP* o));
538VIRTUAL OP* scalarseq _((OP* o));
539VIRTUAL OP* scalarvoid _((OP* o));
4f19785b 540VIRTUAL UV scan_bin _((char* start, I32 len, I32* retlen));
76e3520e 541VIRTUAL UV scan_hex _((char* start, I32 len, I32* retlen));
542VIRTUAL char* scan_num _((char* s));
543VIRTUAL UV scan_oct _((char* start, I32 len, I32* retlen));
544VIRTUAL OP* scope _((OP* o));
545VIRTUAL char* screaminstr _((SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last));
a0d0e21e 546#ifndef VMS
76e3520e 547VIRTUAL I32 setenv_getix _((char* nam));
548#endif
0824fdcb 549VIRTUAL void setdefout _((GV* gv));
08105a92 550VIRTUAL char* sharepvn _((const char* sv, I32 len, U32 hash));
551VIRTUAL HEK* share_hek _((const char* sv, I32 len, U32 hash));
0824fdcb 552VIRTUAL Signal_t sighandler _((int sig));
553VIRTUAL SV** stack_grow _((SV** sp, SV**p, int n));
554VIRTUAL I32 start_subparse _((I32 is_format, U32 flags));
555VIRTUAL void sub_crush_depth _((CV* cv));
556VIRTUAL bool sv_2bool _((SV* sv));
557VIRTUAL CV* sv_2cv _((SV* sv, HV** st, GV** gvp, I32 lref));
558VIRTUAL IO* sv_2io _((SV* sv));
559VIRTUAL IV sv_2iv _((SV* sv));
560VIRTUAL SV* sv_2mortal _((SV* sv));
561VIRTUAL double sv_2nv _((SV* sv));
562VIRTUAL char* sv_2pv _((SV* sv, STRLEN* lp));
563VIRTUAL UV sv_2uv _((SV* sv));
564VIRTUAL IV sv_iv _((SV* sv));
565VIRTUAL UV sv_uv _((SV* sv));
566VIRTUAL double sv_nv _((SV* sv));
e3b8966e 567VIRTUAL char * sv_pvn _((SV *sv, STRLEN *len));
568VIRTUAL I32 sv_true _((SV *sv));
0824fdcb 569VIRTUAL void sv_add_arena _((char* ptr, U32 size, U32 flags));
570VIRTUAL int sv_backoff _((SV* sv));
571VIRTUAL SV* sv_bless _((SV* sv, HV* stash));
572VIRTUAL void sv_catpvf _((SV* sv, const char* pat, ...));
08105a92 573VIRTUAL void sv_catpv _((SV* sv, const char* ptr));
574VIRTUAL void sv_catpvn _((SV* sv, const char* ptr, STRLEN len));
0824fdcb 575VIRTUAL void sv_catsv _((SV* dsv, SV* ssv));
576VIRTUAL void sv_chop _((SV* sv, char* ptr));
577VIRTUAL void sv_clean_all _((void));
578VIRTUAL void sv_clean_objs _((void));
579VIRTUAL void sv_clear _((SV* sv));
580VIRTUAL I32 sv_cmp _((SV* sv1, SV* sv2));
581VIRTUAL I32 sv_cmp_locale _((SV* sv1, SV* sv2));
5f05dabc 582#ifdef USE_LOCALE_COLLATE
0824fdcb 583VIRTUAL char* sv_collxfrm _((SV* sv, STRLEN* nxp));
584#endif
585VIRTUAL OP* sv_compile_2op _((SV* sv, OP** startp, char* code, AV** avp));
586VIRTUAL void sv_dec _((SV* sv));
587VIRTUAL void sv_dump _((SV* sv));
08105a92 588VIRTUAL bool sv_derived_from _((SV* sv, const char* name));
0824fdcb 589VIRTUAL I32 sv_eq _((SV* sv1, SV* sv2));
590VIRTUAL void sv_free _((SV* sv));
591VIRTUAL void sv_free_arenas _((void));
592VIRTUAL char* sv_gets _((SV* sv, PerlIO* fp, I32 append));
22c35a8c 593VIRTUAL char* sv_grow _((SV* sv, STRLEN newlen));
76e3520e 594VIRTUAL void sv_inc _((SV* sv));
595VIRTUAL void sv_insert _((SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen));
08105a92 596VIRTUAL int sv_isa _((SV* sv, const char* name));
76e3520e 597VIRTUAL int sv_isobject _((SV* sv));
598VIRTUAL STRLEN sv_len _((SV* sv));
a0ed51b3 599VIRTUAL STRLEN sv_len_utf8 _((SV* sv));
08105a92 600VIRTUAL void sv_magic _((SV* sv, SV* obj, int how, const char* name, I32 namlen));
76e3520e 601VIRTUAL SV* sv_mortalcopy _((SV* oldsv));
602VIRTUAL SV* sv_newmortal _((void));
603VIRTUAL SV* sv_newref _((SV* sv));
873ef191 604VIRTUAL char* sv_peek _((SV* sv));
a0ed51b3 605VIRTUAL void sv_pos_u2b _((SV* sv, I32* offsetp, I32* lenp));
606VIRTUAL void sv_pos_b2u _((SV* sv, I32* offsetp));
76e3520e 607VIRTUAL char* sv_pvn_force _((SV* sv, STRLEN* lp));
608VIRTUAL char* sv_reftype _((SV* sv, int ob));
609VIRTUAL void sv_replace _((SV* sv, SV* nsv));
610VIRTUAL void sv_report_used _((void));
611VIRTUAL void sv_reset _((char* s, HV* stash));
612VIRTUAL void sv_setpvf _((SV* sv, const char* pat, ...));
613VIRTUAL void sv_setiv _((SV* sv, IV num));
614VIRTUAL void sv_setpviv _((SV* sv, IV num));
615VIRTUAL void sv_setuv _((SV* sv, UV num));
616VIRTUAL void sv_setnv _((SV* sv, double num));
08105a92 617VIRTUAL SV* sv_setref_iv _((SV* rv, const char* classname, IV iv));
618VIRTUAL SV* sv_setref_nv _((SV* rv, const char* classname, double nv));
619VIRTUAL SV* sv_setref_pv _((SV* rv, const char* classname, void* pv));
620VIRTUAL SV* sv_setref_pvn _((SV* rv, const char* classname, char* pv, I32 n));
76e3520e 621VIRTUAL void sv_setpv _((SV* sv, const char* ptr));
622VIRTUAL void sv_setpvn _((SV* sv, const char* ptr, STRLEN len));
623VIRTUAL void sv_setsv _((SV* dsv, SV* ssv));
624VIRTUAL void sv_taint _((SV* sv));
625VIRTUAL bool sv_tainted _((SV* sv));
626VIRTUAL int sv_unmagic _((SV* sv, int type));
627VIRTUAL void sv_unref _((SV* sv));
628VIRTUAL void sv_untaint _((SV* sv));
629VIRTUAL bool sv_upgrade _((SV* sv, U32 mt));
630VIRTUAL void sv_usepvn _((SV* sv, char* ptr, STRLEN len));
631VIRTUAL void sv_vcatpvfn _((SV* sv, const char* pat, STRLEN patlen,
46fc3d4c 632 va_list* args, SV** svargs, I32 svmax,
633 bool *used_locale));
76e3520e 634VIRTUAL void sv_vsetpvfn _((SV* sv, const char* pat, STRLEN patlen,
46fc3d4c 635 va_list* args, SV** svargs, I32 svmax,
636 bool *used_locale));
a0ed51b3 637VIRTUAL SV* swash_init _((char* pkg, char* name, SV* listsv, I32 minbits, I32 none));
dfe13c55 638VIRTUAL UV swash_fetch _((SV *sv, U8 *ptr));
76e3520e 639VIRTUAL void taint_env _((void));
640VIRTUAL void taint_proper _((const char* f, char* s));
dfe13c55 641VIRTUAL UV to_utf8_lower _((U8 *p));
642VIRTUAL UV to_utf8_upper _((U8 *p));
643VIRTUAL UV to_utf8_title _((U8 *p));
16d20bd9 644#ifdef UNLINK_ALL_VERSIONS
76e3520e 645VIRTUAL I32 unlnk _((char* f));
16d20bd9 646#endif
77a005ab 647#ifdef USE_THREADS
76e3520e 648VIRTUAL void unlock_condpair _((void* svv));
649#endif
08105a92 650VIRTUAL void unsharepvn _((const char* sv, I32 len, U32 hash));
0824fdcb 651VIRTUAL void unshare_hek _((HEK* hek));
652VIRTUAL void utilize _((int aver, I32 floor, OP* version, OP* id, OP* arg));
a0ed51b3 653VIRTUAL U8* utf16_to_utf8 _((U16* p, U8 *d, I32 bytelen));
654VIRTUAL U8* utf16_to_utf8_reversed _((U16* p, U8 *d, I32 bytelen));
dfe13c55 655VIRTUAL I32 utf8_distance _((U8 *a, U8 *b));
656VIRTUAL U8* utf8_hop _((U8 *s, I32 off));
657VIRTUAL UV utf8_to_uv _((U8 *s, I32* retlen));
658VIRTUAL U8* uv_to_utf8 _((U8 *d, UV uv));
0824fdcb 659VIRTUAL void vivify_defelem _((SV* sv));
660VIRTUAL void vivify_ref _((SV* sv, U32 to_what));
661VIRTUAL I32 wait4pid _((int pid, int* statusp, int flags));
662VIRTUAL void warn _((const char* pat,...));
599cee73 663VIRTUAL void warner _((U32 err, const char* pat,...));
873ef191 664VIRTUAL void watch _((char** addr));
0824fdcb 665VIRTUAL I32 whichsig _((char* sig));
666VIRTUAL int yyerror _((char* s));
a1a0e61e 667#ifdef USE_PURE_BISON
70931121 668# define PERL_YYLEX_PARAM_DECL YYSTYPE *lvalp, int *lcharp
a1a0e61e 669#else
22c35a8c 670# define PERL_YYLEX_PARAM_DECL void
a1a0e61e 671#endif
bee8cd07 672VIRTUAL int yylex _((PERL_YYLEX_PARAM_DECL));
0824fdcb 673VIRTUAL int yyparse _((void));
674VIRTUAL int yywarn _((char* s));
675
f2517201 676VIRTUAL Malloc_t safesysmalloc _((MEM_SIZE nbytes));
677VIRTUAL Malloc_t safesyscalloc _((MEM_SIZE elements, MEM_SIZE size));
678VIRTUAL Malloc_t safesysrealloc _((Malloc_t where, MEM_SIZE nbytes));
679VIRTUAL Free_t safesysfree _((Malloc_t where));
0824fdcb 680
55497cff 681#ifdef LEAKTEST
76e3520e 682VIRTUAL Malloc_t safexmalloc _((I32 x, MEM_SIZE size));
683VIRTUAL Malloc_t safexcalloc _((I32 x, MEM_SIZE elements, MEM_SIZE size));
684VIRTUAL Malloc_t safexrealloc _((Malloc_t where, MEM_SIZE size));
685VIRTUAL void safexfree _((Malloc_t where));
55497cff 686#endif
22239a37 687
688#ifdef PERL_GLOBAL_STRUCT
76e3520e 689VIRTUAL struct perl_vars *Perl_GetVars _((void));
690#endif
691
692#ifdef PERL_OBJECT
693protected:
694void hsplit _((HV *hv));
695void hfreeentries _((HV *hv));
333f433b 696void more_he _((void));
76e3520e 697HE* new_he _((void));
698void del_he _((HE *p));
08105a92 699HEK *save_hek _((const char *str, I32 len, U32 hash));
76e3520e 700SV *mess_alloc _((void));
701void gv_init_sv _((GV *gv, I32 sv_type));
702SV *save_scalar_at _((SV **sptr));
703IV asIV _((SV* sv));
704UV asUV _((SV* sv));
705SV *more_sv _((void));
fb147d3d 706void more_xiv _((void));
707void more_xnv _((void));
708void more_xpv _((void));
709void more_xrv _((void));
76e3520e 710XPVIV *new_xiv _((void));
711XPVNV *new_xnv _((void));
712XPV *new_xpv _((void));
713XRV *new_xrv _((void));
714void del_xiv _((XPVIV* p));
715void del_xnv _((XPVNV* p));
716void del_xpv _((XPV* p));
717void del_xrv _((XRV* p));
718void sv_mortalgrow _((void));
719void sv_unglob _((SV* sv));
720void sv_check_thinkfirst _((SV *sv));
72311751 721I32 avhv_index_sv _((SV* sv));
9d8a25dc 722
76e3520e 723void do_report_used _((SV *sv));
724void do_clean_objs _((SV *sv));
725void do_clean_named_objs _((SV *sv));
726void do_clean_all _((SV *sv));
727void not_a_number _((SV *sv));
9d8a25dc 728void* my_safemalloc _((MEM_SIZE size));
76e3520e 729
730typedef void (CPerlObj::*SVFUNC) _((SV*));
731void visit _((SVFUNC f));
732
565764a8 733typedef I32 (CPerlObj::*SVCOMPARE) _((SV*, SV*));
734void qsortsv _((SV ** array, size_t num_elts, SVCOMPARE f));
735I32 sortcv _((SV *a, SV *b));
942e002e 736void save_magic _((I32 mgs_ix, SV *sv));
76e3520e 737int magic_methpack _((SV *sv, MAGIC *mg, char *meth));
b86a2fa7 738int magic_methcall _((SV *sv, MAGIC *mg, char *meth, I32 f, int n, SV *val));
565764a8 739int magic_methcall _((MAGIC *mg, char *meth, I32 flags, int n, SV *val));
76e3520e 740OP * doform _((CV *cv, GV *gv, OP *retop));
741void doencodes _((SV* sv, char* s, I32 len));
742SV* refto _((SV* sv));
743U32 seed _((void));
744OP *docatch _((OP *o));
745OP *dofindlabel _((OP *o, char *label, OP **opstack, OP **oplimit));
746void doparseform _((SV *sv));
747I32 dopoptoeval _((I32 startingblock));
748I32 dopoptolabel _((char *label));
749I32 dopoptoloop _((I32 startingblock));
750I32 dopoptosub _((I32 startingblock));
2c375eb9 751I32 dopoptosub_at _((PERL_CONTEXT* cxstk, I32 startingblock));
76e3520e 752void save_lines _((AV *array, SV *sv));
753OP *doeval _((int gimme, OP** startop));
bda4119b 754I32 sv_ncmp _((SV *a, SV *b));
755I32 sv_i_ncmp _((SV *a, SV *b));
756I32 amagic_ncmp _((SV *a, SV *b));
757I32 amagic_i_ncmp _((SV *a, SV *b));
d0ecd44c 758I32 amagic_cmp _((SV *str1, SV *str2));
759I32 amagic_cmp_locale _((SV *str1, SV *str2));
760
76e3520e 761SV *mul128 _((SV *sv, U8 m));
762SV *is_an_int _((char *s, STRLEN l));
763int div128 _((SV *pnum, bool *done));
764
765int runops_standard _((void));
76e3520e 766int runops_debug _((void));
15e52e56 767
76e3520e 768void check_uni _((void));
769void force_next _((I32 type));
770char *force_version _((char *start));
771char *force_word _((char *start, int token, int check_keyword, int allow_pack, int allow_tick));
772SV *tokeq _((SV *sv));
773char *scan_const _((char *start));
774char *scan_formline _((char *s));
775char *scan_heredoc _((char *s));
776char *scan_ident _((char *s, char *send, char *dest, STRLEN destlen, I32 ck_uni));
777char *scan_inputsymbol _((char *start));
8782bef2 778char *scan_pat _((char *start, I32 type));
76e3520e 779char *scan_str _((char *start));
780char *scan_subst _((char *start));
781char *scan_trans _((char *start));
782char *scan_word _((char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp));
783char *skipspace _((char *s));
784void checkcomma _((char *s, char *name, char *what));
785void force_ident _((char *s, int kind));
786void incline _((char *s));
787int intuit_method _((char *s, GV *gv));
788int intuit_more _((char *s));
789I32 lop _((I32 f, expectation x, char *s));
790void missingterm _((char *s));
791void no_op _((char *what, char *s));
792void set_csh _((void));
793I32 sublex_done _((void));
794I32 sublex_push _((void));
795I32 sublex_start _((void));
796#ifdef CRIPPLED_CC
797int uni _((I32 f, char *s));
798#endif
799char * filter_gets _((SV *sv, PerlIO *fp, STRLEN append));
b3ac6de7 800SV *new_constant _((char *s, STRLEN len, char *key, SV *sv, SV *pv, char *type));
76e3520e 801int ao _((int toketype));
802void depcom _((void));
803#ifdef WIN32
804I32 win32_textfilter _((int idx, SV *sv, int maxlen));
805#endif
806char* incl_perldb _((void));
08105a92 807SV *isa_lookup _((HV *stash, const char *name, int len, int level));
76e3520e 808CV *get_db_sub _((SV **svp, CV *cv));
809I32 list_assignment _((OP *o));
810void bad_type _((I32 n, char *t, char *name, OP *kid));
811OP *modkids _((OP *o, I32 type));
812OP *no_fh_allowed _((OP *o));
813OP *scalarboolean _((OP *o));
814OP *too_few_arguments _((OP *o, char* name));
815OP *too_many_arguments _((OP *o, char* name));
816void null _((OP* o));
6fbe551f 817PADOFFSET pad_findlex _((char* name, PADOFFSET newoff, U32 seq, CV* startcv, I32 cx_ix, I32 saweval));
76e3520e 818OP *newDEFSVOP _((void));
819char* gv_ename _((GV *gv));
820CV *cv_clone2 _((CV *proto, CV *outside));
22239a37 821
76e3520e 822void find_beginning _((void));
823void forbid_setid _((char *));
824void incpush _((char *, int));
cb68f92d 825void init_interp _((void));
76e3520e 826void init_ids _((void));
827void init_debugger _((void));
828void init_lexer _((void));
829void init_main_stash _((void));
830#ifdef USE_THREADS
831struct perl_thread * init_main_thread _((void));
832#endif /* USE_THREADS */
833void init_perllib _((void));
834void init_postdump_symbols _((int, char **, char **));
835void init_predump_symbols _((void));
836void my_exit_jump _((void)) __attribute__((noreturn));
837void nuke_stacks _((void));
01f988be 838void open_script _((char *, bool, SV *, int *fd));
76e3520e 839void usage _((char *));
01f988be 840void validate_suid _((char *, char*, int));
327c3667 841int emulate_eaccess _((const char* path, int mode));
76e3520e 842
843regnode *reg _((I32, I32 *));
844regnode *reganode _((U8, U32));
845regnode *regatom _((I32 *));
846regnode *regbranch _((I32 *, I32));
847void regc _((U8, char *));
dfe13c55 848void reguni _((UV, char *, I32*));
76e3520e 849regnode *regclass _((void));
dfe13c55 850regnode *regclassutf8 _((void));
76e3520e 851I32 regcurly _((char *));
852regnode *reg_node _((U8));
853regnode *regpiece _((I32 *));
854void reginsert _((U8, regnode *));
855void regoptail _((regnode *, regnode *));
856void regset _((char *, I32));
857void regtail _((regnode *, regnode *));
873ef191 858char* regwhite _((char *, char *));
76e3520e 859char* nextchar _((void));
860regnode *dumpuntil _((regnode *start, regnode *node, regnode *last, SV* sv, I32 l));
76e3520e 861void scan_commit _((scan_data_t *data));
862I32 study_chunk _((regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 flags));
863I32 add_data _((I32 n, char *s));
864void re_croak2 _((const char* pat1,const char* pat2,...)) __attribute__((noreturn));
eb1ab10a 865char* regpposixcc _((I32 value));
4327152a 866void clear_re _((void *r));
76e3520e 867I32 regmatch _((regnode *prog));
868I32 regrepeat _((regnode *p, I32 max));
869I32 regrepeat_hard _((regnode *p, I32 max, I32 *lp));
870I32 regtry _((regexp *prog, char *startpos));
871bool reginclass _((char *p, I32 c));
dfe13c55 872bool reginclassutf8 _((regnode *f, U8* p));
76e3520e 873CHECKPOINT regcppush _((I32 parenfloor));
874char * regcppop _((void));
942e002e 875char * regcp_set_to _((I32 ss));
876void cache_re _((regexp *prog));
9661b544 877void restore_pos _((void *arg));
dfe13c55 878U8 * reghop _((U8 *pos, I32 off));
879U8 * reghopmaybe _((U8 *pos, I32 off));
76e3520e 880void dump _((char *pat,...));
881#ifdef WIN32
882int do_aspawn _((void *vreally, void **vmark, void **vsp));
883#endif
884
885#ifdef DEBUGGING
886void del_sv _((SV *p));
887#endif
35ff7856 888void debprof _((OP *o));
76e3520e 889
01f988be 890void *bset_obj_store _((void *obj, I32 ix));
01f988be 891OP *new_logop _((I32 type, I32 flags, OP **firstp, OP **otherp));
bda4119b 892void simplify_sort _((OP *o));
35cd451c 893bool is_handle_constructor _((OP *o, I32 argnum));
01f988be 894
942e002e 895I32 do_trans_CC_simple _((SV *sv));
896I32 do_trans_CC_count _((SV *sv));
897I32 do_trans_CC_complex _((SV *sv));
898I32 do_trans_UU_simple _((SV *sv));
899I32 do_trans_UU_count _((SV *sv));
900I32 do_trans_UU_complex _((SV *sv));
901I32 do_trans_UC_simple _((SV *sv));
902I32 do_trans_CU_simple _((SV *sv));
903I32 do_trans_UC_trivial _((SV *sv));
904I32 do_trans_CU_trivial _((SV *sv));
905
22c35a8c 906#undef PERL_CKDEF
907#undef PERL_PPDEF
908#define PERL_CKDEF(s) OP* s _((OP *o));
909#define PERL_PPDEF(s) OP* s _((ARGSproto));
6f7f9b3e 910public:
9e6b2b00 911
735e0d5c 912#include "pp_proto.h"
76e3520e 913
76e3520e 914void unwind_handler_stack _((void *p));
915void restore_magic _((void *p));
916void restore_rsfp _((void *f));
7fae4e64 917void restore_expect _((void *e));
918void restore_lex_expect _((void *e));
76e3520e 919void yydestruct _((void *ptr));
e3b8966e 920VIRTUAL int fprintf _((PerlIO *pf, const char *pat, ...));
51aa15f3 921VIRTUAL SV** get_specialsv_list _((void));
76e3520e 922
923#ifdef WIN32
e3b8966e 924VIRTUAL int& ErrorNo _((void));
76e3520e 925#endif /* WIN32 */
926#else /* !PERL_OBJECT */
22239a37 927END_EXTERN_C
76e3520e 928#endif /* PERL_OBJECT */
929
1a90ebb2 930#ifdef INDIRECT_BGET_MACROS
931VIRTUAL void byterun _((struct bytestream bs));
932#else
933VIRTUAL void byterun _((PerlIO *fp));
934#endif /* INDIRECT_BGET_MACROS */
935
d0c1b099 936VIRTUAL void sv_catpvf_mg _((SV *sv, const char* pat, ...));
08105a92 937VIRTUAL void sv_catpv_mg _((SV *sv, const char *ptr));
938VIRTUAL void sv_catpvn_mg _((SV *sv, const char *ptr, STRLEN len));
d0c1b099 939VIRTUAL void sv_catsv_mg _((SV *dstr, SV *sstr));
940VIRTUAL void sv_setpvf_mg _((SV *sv, const char* pat, ...));
941VIRTUAL void sv_setiv_mg _((SV *sv, IV i));
942VIRTUAL void sv_setpviv_mg _((SV *sv, IV iv));
943VIRTUAL void sv_setuv_mg _((SV *sv, UV u));
944VIRTUAL void sv_setnv_mg _((SV *sv, double num));
945VIRTUAL void sv_setpv_mg _((SV *sv, const char *ptr));
946VIRTUAL void sv_setpvn_mg _((SV *sv, const char *ptr, STRLEN len));
947VIRTUAL void sv_setsv_mg _((SV *dstr, SV *sstr));
948VIRTUAL void sv_usepvn_mg _((SV *sv, char *ptr, STRLEN len));
949
dc9e4912 950VIRTUAL MGVTBL* get_vtbl _((int vtbl_id));
951
d0c1b099 952/* New virtual functions must be added here to maintain binary
953 * compatablity with PERL_OBJECT
954 */
955
3967c732 956VIRTUAL char* pv_display _((SV *sv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim));
957VIRTUAL void dump_indent _((I32 level, PerlIO *file, const char* pat, ...));
958
959VIRTUAL void do_gv_dump _((I32 level, PerlIO *file, char *name, GV *sv));
960VIRTUAL void do_gvgv_dump _((I32 level, PerlIO *file, char *name, GV *sv));
961VIRTUAL void do_hv_dump _((I32 level, PerlIO *file, char *name, HV *sv));
962VIRTUAL void do_magic_dump _((I32 level, PerlIO *file, MAGIC *mg, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim));
963VIRTUAL void do_op_dump _((I32 level, PerlIO *file, OP *o));
964VIRTUAL void do_pmop_dump _((I32 level, PerlIO *file, PMOP *pm));
965VIRTUAL void do_sv_dump _((I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bool dumpops, STRLEN pvlim));
966VIRTUAL void magic_dump _((MAGIC *mg));
d88dccdf 967VIRTUAL void reginitcolors _((void));
1fa8b10d 968VIRTUAL char* sv_2pv_nolen _((SV* sv));
969VIRTUAL char* sv_pv _((SV *sv));