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