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