Applied relevant parts of:
[p5sagit/p5-mst-13.2.git] / proto.h
CommitLineData
76e3520e 1#ifdef PERL_OBJECT
2#include "ipstdio.h"
3#include "ipdir.h"
4#include "ipenv.h"
5#include "iplio.h"
6#include "ipmem.h"
7#include "ipproc.h"
8#include "ipsock.h"
9#define VIRTUAL virtual
10#else
11#define VIRTUAL
22239a37 12START_EXTERN_C
76e3520e 13#endif
22239a37 14
fed7345c 15#ifndef NEXT30_NO_ATTRIBUTE
ecfc5424 16#ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */
17#ifdef __attribute__ /* Avoid possible redefinition errors */
a0d0e21e 18#undef __attribute__
ecfc5424 19#endif
a0d0e21e 20#define __attribute__(attr)
aeea060c 21#endif
a0d0e21e 22#endif
23#ifdef OVERLOAD
76e3520e 24VIRTUAL SV* amagic_call _((SV* left,SV* right,int method,int dir));
25VIRTUAL bool Gv_AMupdate _((HV* stash));
a0d0e21e 26#endif /* OVERLOAD */
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));
31VIRTUAL SV* avhv_delete _((AV *ar, char* key, U32 klen, I32 flags));
32VIRTUAL SV* avhv_delete_ent _((AV *ar, SV* keysv, I32 flags, U32 hash));
33VIRTUAL bool avhv_exists _((AV *ar, char* key, U32 klen));
34VIRTUAL bool avhv_exists_ent _((AV *ar, SV* keysv, U32 hash));
35VIRTUAL SV** avhv_fetch _((AV *ar, char* key, U32 klen, I32 lval));
36VIRTUAL SV** avhv_fetch_ent _((AV *ar, SV* keysv, I32 lval, U32 hash));
37VIRTUAL I32 avhv_iterinit _((AV *ar));
38VIRTUAL HE* avhv_iternext _((AV *ar));
39VIRTUAL SV * avhv_iternextsv _((AV *ar, char** key, I32* retlen));
40VIRTUAL SV* avhv_iterval _((AV *ar, HE* entry));
41VIRTUAL HV* avhv_keys _((AV *ar));
42VIRTUAL SV** avhv_store _((AV *ar, char* key, U32 klen, SV* val, U32 hash));
43VIRTUAL SV** avhv_store_ent _((AV *av, SV *keysv, SV *val, U32 hash));
44VIRTUAL void av_clear _((AV* ar));
45VIRTUAL void av_extend _((AV* ar, I32 key));
46VIRTUAL AV* av_fake _((I32 size, SV** svp));
47VIRTUAL SV** av_fetch _((AV* ar, I32 key, I32 lval));
48VIRTUAL void av_fill _((AV* ar, I32 fill));
49VIRTUAL I32 av_len _((AV* ar));
50VIRTUAL AV* av_make _((I32 size, SV** svp));
51VIRTUAL SV* av_pop _((AV* ar));
52VIRTUAL void av_push _((AV* ar, SV* val));
53VIRTUAL void av_reify _((AV* ar));
54VIRTUAL SV* av_shift _((AV* ar));
55VIRTUAL SV** av_store _((AV* ar, I32 key, SV* val));
56VIRTUAL void av_undef _((AV* ar));
57VIRTUAL void av_unshift _((AV* ar, I32 num));
58VIRTUAL OP* bind_match _((I32 type, OP* left, OP* pat));
59VIRTUAL OP* block_end _((I32 floor, OP* seq));
60VIRTUAL I32 block_gimme _((void));
61VIRTUAL int block_start _((int full));
62VIRTUAL void boot_core_UNIVERSAL _((void));
e3b8966e 63VIRTUAL void call_list _((I32 oldscope, AV* av_list));
76e3520e 64VIRTUAL I32 cando _((I32 bit, I32 effective, Stat_t* statbufp));
a0d0e21e 65#ifndef CASTNEGFLOAT
76e3520e 66VIRTUAL U32 cast_ulong _((double f));
a0d0e21e 67#endif
68#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
76e3520e 69VIRTUAL I32 my_chsize _((int fd, Off_t length));
a0d0e21e 70#endif
76e3520e 71VIRTUAL OP* ck_gvconst _((OP* o));
72VIRTUAL OP* ck_retarget _((OP* o));
f93b4edd 73#ifdef USE_THREADS
76e3520e 74VIRTUAL MAGIC * condpair_magic _((SV *sv));
75#endif
76VIRTUAL OP* convert _((I32 optype, I32 flags, OP* o));
77VIRTUAL void croak _((const char* pat,...)) __attribute__((noreturn));
78VIRTUAL void cv_ckproto _((CV* cv, GV* gv, char* p));
79VIRTUAL CV* cv_clone _((CV* proto));
80VIRTUAL SV* cv_const_sv _((CV* cv));
d1541cac 81VIRTUAL SV* op_const_sv _((OP* o, CV* cv));
76e3520e 82VIRTUAL void cv_undef _((CV* cv));
873ef191 83VIRTUAL void cx_dump _((PERL_CONTEXT* cs));
76e3520e 84VIRTUAL SV* filter_add _((filter_t funcp, SV* datasv));
85VIRTUAL void filter_del _((filter_t funcp));
86VIRTUAL I32 filter_read _((int idx, SV* buffer, int maxlen));
87VIRTUAL char ** get_op_descs _((void));
88VIRTUAL char ** get_op_names _((void));
9e6b2b00 89VIRTUAL char * get_no_modify _((void));
90VIRTUAL U32 * get_opargs _((void));
76e3520e 91VIRTUAL I32 cxinc _((void));
ac4c12e7 92VIRTUAL void deb _((const char* pat,...)) __attribute__((format(printf,1,2)));
93VIRTUAL void deb_growlevel _((void));
94VIRTUAL void debprofdump _((void));
95VIRTUAL I32 debop _((OP* o));
96VIRTUAL I32 debstack _((void));
97VIRTUAL I32 debstackptrs _((void));
76e3520e 98VIRTUAL char* delimcpy _((char* to, char* toend, char* from, char* fromend,
fc36a67e 99 int delim, I32* retlen));
76e3520e 100VIRTUAL void deprecate _((char* s));
101VIRTUAL OP* die _((const char* pat,...));
102VIRTUAL OP* die_where _((char* message));
103VIRTUAL void dounwind _((I32 cxix));
104VIRTUAL bool do_aexec _((SV* really, SV** mark, SV** sp));
36660982 105VIRTUAL int do_binmode _((PerlIO *fp, int iotype, int flag));
76e3520e 106VIRTUAL void do_chop _((SV* asv, SV* sv));
107VIRTUAL bool do_close _((GV* gv, bool not_implicit));
108VIRTUAL bool do_eof _((GV* gv));
109VIRTUAL bool do_exec _((char* cmd));
110VIRTUAL void do_execfree _((void));
a0d0e21e 111#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
112I32 do_ipcctl _((I32 optype, SV** mark, SV** sp));
113I32 do_ipcget _((I32 optype, SV** mark, SV** sp));
114#endif
76e3520e 115VIRTUAL void do_join _((SV* sv, SV* del, SV** mark, SV** sp));
116VIRTUAL OP* do_kv _((ARGSproto));
a0d0e21e 117#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
118I32 do_msgrcv _((SV** mark, SV** sp));
119I32 do_msgsnd _((SV** mark, SV** sp));
120#endif
76e3520e 121VIRTUAL bool do_open _((GV* gv, char* name, I32 len,
760ac839 122 int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp));
76e3520e 123VIRTUAL void do_pipe _((SV* sv, GV* rgv, GV* wgv));
124VIRTUAL bool do_print _((SV* sv, PerlIO* fp));
125VIRTUAL OP* do_readline _((void));
126VIRTUAL I32 do_chomp _((SV* sv));
127VIRTUAL bool do_seek _((GV* gv, long pos, int whence));
a0d0e21e 128#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
129I32 do_semop _((SV** mark, SV** sp));
130I32 do_shmio _((I32 optype, SV** mark, SV** sp));
131#endif
76e3520e 132VIRTUAL void do_sprintf _((SV* sv, I32 len, SV** sarg));
133VIRTUAL long do_sysseek _((GV* gv, long pos, int whence));
134VIRTUAL long do_tell _((GV* gv));
135VIRTUAL I32 do_trans _((SV* sv, OP* arg));
136VIRTUAL void do_vecset _((SV* sv));
137VIRTUAL void do_vop _((I32 optype, SV* sv, SV* left, SV* right));
138VIRTUAL I32 dowantarray _((void));
139VIRTUAL void dump_all _((void));
873ef191 140VIRTUAL void dump_eval _((void));
748a9306 141#ifdef DUMP_FDS /* See util.c */
35ff7856 142VIRTUAL void dump_fds _((char* s));
a0d0e21e 143#endif
873ef191 144VIRTUAL void dump_form _((GV* gv));
145VIRTUAL void dump_gv _((GV* gv));
8eccb90b 146#ifdef MYMALLOC
873ef191 147VIRTUAL void dump_mstats _((char* s));
8eccb90b 148#endif
873ef191 149VIRTUAL void dump_op _((OP* arg));
150VIRTUAL void dump_pm _((PMOP* pm));
151VIRTUAL void dump_packsubs _((HV* stash));
152VIRTUAL void dump_sub _((GV* gv));
3bd495df 153VIRTUAL void fbm_compile _((SV* sv, U32 flags));
76e3520e 154VIRTUAL char* fbm_instr _((unsigned char* big, unsigned char* bigend, SV* littlesv));
36660982 155VIRTUAL char* find_script _((char *scriptname, bool dosearch, char **search_ext, I32 flags));
aeea060c 156#ifdef USE_THREADS
76e3520e 157VIRTUAL PADOFFSET find_threadsv _((char *name));
158#endif
159VIRTUAL OP* force_list _((OP* arg));
160VIRTUAL OP* fold_constants _((OP* arg));
161VIRTUAL char* form _((const char* pat, ...));
162VIRTUAL void free_tmps _((void));
163VIRTUAL OP* gen_constant_list _((OP* o));
164VIRTUAL void gp_free _((GV* gv));
165VIRTUAL GP* gp_ref _((GP* gp));
166VIRTUAL GV* gv_AVadd _((GV* gv));
167VIRTUAL GV* gv_HVadd _((GV* gv));
168VIRTUAL GV* gv_IOadd _((GV* gv));
169VIRTUAL GV* gv_autoload4 _((HV* stash, char* name, STRLEN len, I32 method));
170VIRTUAL void gv_check _((HV* stash));
171VIRTUAL void gv_efullname _((SV* sv, GV* gv));
172VIRTUAL void gv_efullname3 _((SV* sv, GV* gv, char* prefix));
173VIRTUAL GV* gv_fetchfile _((char* name));
174VIRTUAL GV* gv_fetchmeth _((HV* stash, char* name, STRLEN len, I32 level));
175VIRTUAL GV* gv_fetchmethod _((HV* stash, char* name));
176VIRTUAL GV* gv_fetchmethod_autoload _((HV* stash, char* name, I32 autoload));
177VIRTUAL GV* gv_fetchpv _((char* name, I32 add, I32 sv_type));
178VIRTUAL void gv_fullname _((SV* sv, GV* gv));
179VIRTUAL void gv_fullname3 _((SV* sv, GV* gv, char* prefix));
180VIRTUAL void gv_init _((GV* gv, HV* stash, char* name, STRLEN len, int multi));
181VIRTUAL HV* gv_stashpv _((char* name, I32 create));
182VIRTUAL HV* gv_stashpvn _((char* name, U32 namelen, I32 create));
183VIRTUAL HV* gv_stashsv _((SV* sv, I32 create));
184VIRTUAL void hv_clear _((HV* tb));
185VIRTUAL void hv_delayfree_ent _((HV* hv, HE* entry));
186VIRTUAL SV* hv_delete _((HV* tb, char* key, U32 klen, I32 flags));
187VIRTUAL SV* hv_delete_ent _((HV* tb, SV* key, I32 flags, U32 hash));
188VIRTUAL bool hv_exists _((HV* tb, char* key, U32 klen));
189VIRTUAL bool hv_exists_ent _((HV* tb, SV* key, U32 hash));
190VIRTUAL SV** hv_fetch _((HV* tb, char* key, U32 klen, I32 lval));
191VIRTUAL HE* hv_fetch_ent _((HV* tb, SV* key, I32 lval, U32 hash));
192VIRTUAL void hv_free_ent _((HV* hv, HE* entry));
193VIRTUAL I32 hv_iterinit _((HV* tb));
194VIRTUAL char* hv_iterkey _((HE* entry, I32* retlen));
195VIRTUAL SV* hv_iterkeysv _((HE* entry));
196VIRTUAL HE* hv_iternext _((HV* tb));
197VIRTUAL SV* hv_iternextsv _((HV* hv, char** key, I32* retlen));
198VIRTUAL SV* hv_iterval _((HV* tb, HE* entry));
199VIRTUAL void hv_ksplit _((HV* hv, IV newmax));
200VIRTUAL void hv_magic _((HV* hv, GV* gv, int how));
201VIRTUAL SV** hv_store _((HV* tb, char* key, U32 klen, SV* val, U32 hash));
202VIRTUAL HE* hv_store_ent _((HV* tb, SV* key, SV* val, U32 hash));
203VIRTUAL void hv_undef _((HV* tb));
204VIRTUAL I32 ibcmp _((char* a, char* b, I32 len));
205VIRTUAL I32 ibcmp_locale _((char* a, char* b, I32 len));
206VIRTUAL I32 ingroup _((I32 testgid, I32 effective));
207VIRTUAL void init_stacks _((ARGSproto));
208VIRTUAL U32 intro_my _((void));
209VIRTUAL char* instr _((char* big, char* little));
210VIRTUAL bool io_close _((IO* io));
211VIRTUAL OP* invert _((OP* cmd));
212VIRTUAL OP* jmaybe _((OP* arg));
213VIRTUAL I32 keyword _((char* d, I32 len));
214VIRTUAL void leave_scope _((I32 base));
215VIRTUAL void lex_end _((void));
216VIRTUAL void lex_start _((SV* line));
217VIRTUAL OP* linklist _((OP* o));
218VIRTUAL OP* list _((OP* o));
219VIRTUAL OP* listkids _((OP* o));
220VIRTUAL OP* localize _((OP* arg, I32 lexical));
221VIRTUAL I32 looks_like_number _((SV* sv));
222VIRTUAL int magic_clearenv _((SV* sv, MAGIC* mg));
223VIRTUAL int magic_clear_all_env _((SV* sv, MAGIC* mg));
224VIRTUAL int magic_clearpack _((SV* sv, MAGIC* mg));
225VIRTUAL int magic_clearsig _((SV* sv, MAGIC* mg));
226VIRTUAL int magic_existspack _((SV* sv, MAGIC* mg));
227VIRTUAL int magic_freedefelem _((SV* sv, MAGIC* mg));
228VIRTUAL int magic_freeregexp _((SV* sv, MAGIC* mg));
229VIRTUAL int magic_get _((SV* sv, MAGIC* mg));
230VIRTUAL int magic_getarylen _((SV* sv, MAGIC* mg));
231VIRTUAL int magic_getdefelem _((SV* sv, MAGIC* mg));
232VIRTUAL int magic_getglob _((SV* sv, MAGIC* mg));
36660982 233VIRTUAL int magic_getnkeys _((SV* sv, MAGIC* mg));
76e3520e 234VIRTUAL int magic_getpack _((SV* sv, MAGIC* mg));
235VIRTUAL int magic_getpos _((SV* sv, MAGIC* mg));
236VIRTUAL int magic_getsig _((SV* sv, MAGIC* mg));
36660982 237VIRTUAL int magic_getsubstr _((SV* sv, MAGIC* mg));
76e3520e 238VIRTUAL int magic_gettaint _((SV* sv, MAGIC* mg));
239VIRTUAL int magic_getuvar _((SV* sv, MAGIC* mg));
36660982 240VIRTUAL int magic_getvec _((SV* sv, MAGIC* mg));
76e3520e 241VIRTUAL U32 magic_len _((SV* sv, MAGIC* mg));
f93b4edd 242#ifdef USE_THREADS
76e3520e 243VIRTUAL int magic_mutexfree _((SV* sv, MAGIC* mg));
f93b4edd 244#endif /* USE_THREADS */
76e3520e 245VIRTUAL int magic_nextpack _((SV* sv, MAGIC* mg, SV* key));
246VIRTUAL int magic_set _((SV* sv, MAGIC* mg));
a0d0e21e 247#ifdef OVERLOAD
76e3520e 248VIRTUAL int magic_setamagic _((SV* sv, MAGIC* mg));
a0d0e21e 249#endif /* OVERLOAD */
76e3520e 250VIRTUAL int magic_setarylen _((SV* sv, MAGIC* mg));
251VIRTUAL int magic_setbm _((SV* sv, MAGIC* mg));
252VIRTUAL int magic_setdbline _((SV* sv, MAGIC* mg));
44a8e56a 253#ifdef USE_LOCALE_COLLATE
76e3520e 254VIRTUAL int magic_setcollxfrm _((SV* sv, MAGIC* mg));
255#endif
256VIRTUAL int magic_setdefelem _((SV* sv, MAGIC* mg));
257VIRTUAL int magic_setenv _((SV* sv, MAGIC* mg));
258VIRTUAL int magic_setfm _((SV* sv, MAGIC* mg));
259VIRTUAL int magic_setisa _((SV* sv, MAGIC* mg));
260VIRTUAL int magic_setglob _((SV* sv, MAGIC* mg));
261VIRTUAL int magic_setmglob _((SV* sv, MAGIC* mg));
262VIRTUAL int magic_setnkeys _((SV* sv, MAGIC* mg));
263VIRTUAL int magic_setpack _((SV* sv, MAGIC* mg));
264VIRTUAL int magic_setpos _((SV* sv, MAGIC* mg));
265VIRTUAL int magic_setsig _((SV* sv, MAGIC* mg));
266VIRTUAL int magic_setsubstr _((SV* sv, MAGIC* mg));
267VIRTUAL int magic_settaint _((SV* sv, MAGIC* mg));
268VIRTUAL int magic_setuvar _((SV* sv, MAGIC* mg));
269VIRTUAL int magic_setvec _((SV* sv, MAGIC* mg));
270VIRTUAL int magic_set_all_env _((SV* sv, MAGIC* mg));
8f818fa0 271VIRTUAL U32 magic_sizepack _((SV* sv, MAGIC* mg));
76e3520e 272VIRTUAL int magic_wipepack _((SV* sv, MAGIC* mg));
273VIRTUAL void magicname _((char* sym, char* name, I32 namlen));
a0d0e21e 274int main _((int argc, char** argv, char** env));
76e3520e 275VIRTUAL void markstack_grow _((void));
5f05dabc 276#ifdef USE_LOCALE_COLLATE
76e3520e 277VIRTUAL char* mem_collxfrm _((const char* s, STRLEN len, STRLEN* xlen));
278#endif
279VIRTUAL char* mess _((const char* pat, va_list* args));
280VIRTUAL int mg_clear _((SV* sv));
e3b8966e 281VIRTUAL int mg_copy _((SV* sv, SV* nsv, char* key, I32 klen));
76e3520e 282VIRTUAL MAGIC* mg_find _((SV* sv, int type));
283VIRTUAL int mg_free _((SV* sv));
284VIRTUAL int mg_get _((SV* sv));
565764a8 285VIRTUAL U32 mg_length _((SV* sv));
76e3520e 286VIRTUAL void mg_magical _((SV* sv));
287VIRTUAL int mg_set _((SV* sv));
8f818fa0 288VIRTUAL I32 mg_size _((SV* sv));
76e3520e 289VIRTUAL OP* mod _((OP* o, I32 type));
290VIRTUAL char* moreswitches _((char* s));
291VIRTUAL OP* my _((OP* o));
5f05dabc 292#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
76e3520e 293VIRTUAL char* my_bcopy _((char* from, char* to, I32 len));
5f05dabc 294#endif
a0d0e21e 295#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
296char* my_bzero _((char* loc, I32 len));
85e6fe83 297#endif
76e3520e 298VIRTUAL void my_exit _((U32 status)) __attribute__((noreturn));
299VIRTUAL void my_failure_exit _((void)) __attribute__((noreturn));
300VIRTUAL I32 my_lstat _((ARGSproto));
5f05dabc 301#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
873ef191 302VIRTUAL I32 my_memcmp _((char* s1, char* s2, I32 len));
a0d0e21e 303#endif
fc36a67e 304#if !defined(HAS_MEMSET)
873ef191 305VIRTUAL void* my_memset _((char* loc, I32 ch, I32 len));
fc36a67e 306#endif
76e3520e 307#ifndef PERL_OBJECT
308VIRTUAL I32 my_pclose _((PerlIO* ptr));
309VIRTUAL PerlIO* my_popen _((char* cmd, char* mode));
310#endif
311VIRTUAL void my_setenv _((char* nam, char* val));
312VIRTUAL I32 my_stat _((ARGSproto));
a0d0e21e 313#ifdef MYSWAP
76e3520e 314VIRTUAL short my_swap _((short s));
315VIRTUAL long my_htonl _((long l));
316VIRTUAL long my_ntohl _((long l));
317#endif
318VIRTUAL void my_unexec _((void));
319VIRTUAL OP* newANONLIST _((OP* o));
320VIRTUAL OP* newANONHASH _((OP* o));
321VIRTUAL OP* newANONSUB _((I32 floor, OP* proto, OP* block));
322VIRTUAL OP* newASSIGNOP _((I32 flags, OP* left, I32 optype, OP* right));
323VIRTUAL OP* newCONDOP _((I32 flags, OP* expr, OP* trueop, OP* falseop));
ba3eb2af 324VIRTUAL void newCONSTSUB _((HV* stash, char* name, SV* sv));
76e3520e 325VIRTUAL void newFORM _((I32 floor, OP* o, OP* block));
e3b8966e 326VIRTUAL OP* newFOROP _((I32 flags, char* label, line_t forline, OP* sclr, OP* expr, OP*block, OP*cont));
76e3520e 327VIRTUAL OP* newLOGOP _((I32 optype, I32 flags, OP* left, OP* right));
328VIRTUAL OP* newLOOPEX _((I32 type, OP* label));
329VIRTUAL OP* newLOOPOP _((I32 flags, I32 debuggable, OP* expr, OP* block));
330VIRTUAL OP* newNULLLIST _((void));
331VIRTUAL OP* newOP _((I32 optype, I32 flags));
332VIRTUAL void newPROG _((OP* o));
333VIRTUAL OP* newRANGE _((I32 flags, OP* left, OP* right));
334VIRTUAL OP* newSLICEOP _((I32 flags, OP* subscript, OP* list));
335VIRTUAL OP* newSTATEOP _((I32 flags, char* label, OP* o));
336VIRTUAL CV* newSUB _((I32 floor, OP* o, OP* proto, OP* block));
e3b8966e 337VIRTUAL CV* newXS _((char* name, void (*subaddr)(CV* cv _CPERLproto), char* filename));
76e3520e 338VIRTUAL AV* newAV _((void));
339VIRTUAL OP* newAVREF _((OP* o));
340VIRTUAL OP* newBINOP _((I32 type, I32 flags, OP* first, OP* last));
341VIRTUAL OP* newCVREF _((I32 flags, OP* o));
342VIRTUAL OP* newGVOP _((I32 type, I32 flags, GV* gv));
343VIRTUAL GV* newGVgen _((char* pack));
344VIRTUAL OP* newGVREF _((I32 type, OP* o));
345VIRTUAL OP* newHVREF _((OP* o));
346VIRTUAL HV* newHV _((void));
347VIRTUAL IO* newIO _((void));
348VIRTUAL OP* newLISTOP _((I32 type, I32 flags, OP* first, OP* last));
349VIRTUAL OP* newPMOP _((I32 type, I32 flags));
350VIRTUAL OP* newPVOP _((I32 type, I32 flags, char* pv));
e3b8966e 351VIRTUAL SV* newRV _((SV* pref));
565764a8 352#if !defined(__GNUC__) && (defined(CRIPPLED_CC) || defined(USE_THREADS) || defined(PERL_OBJECT))
e3b8966e 353VIRTUAL SV* newRV_noinc _((SV *sv));
8f818fa0 354#endif
76e3520e 355VIRTUAL SV* newSV _((STRLEN len));
76e3520e 356VIRTUAL OP* newSVREF _((OP* o));
357VIRTUAL OP* newSVOP _((I32 type, I32 flags, SV* sv));
358VIRTUAL SV* newSViv _((IV i));
359VIRTUAL SV* newSVnv _((double n));
360VIRTUAL SV* newSVpv _((char* s, STRLEN len));
361VIRTUAL SV* newSVpvf _((const char* pat, ...));
362VIRTUAL SV* newSVrv _((SV* rv, char* classname));
363VIRTUAL SV* newSVsv _((SV* old));
364VIRTUAL OP* newUNOP _((I32 type, I32 flags, OP* first));
365VIRTUAL OP* newWHILEOP _((I32 flags, I32 debuggable, LOOP* loop,
fb73857a 366 I32 whileline, OP* expr, OP* block, OP* cont));
aeea060c 367#ifdef USE_THREADS
76e3520e 368VIRTUAL struct perl_thread * new_struct_thread _((struct perl_thread *t));
369#endif
ba3eb2af 370VIRTUAL PERL_SI * new_stackinfo _((I32 stitems, I32 cxitems));
76e3520e 371VIRTUAL PerlIO* nextargv _((GV* gv));
372VIRTUAL char* ninstr _((char* big, char* bigend, char* little, char* lend));
373VIRTUAL OP* oopsCV _((OP* o));
374VIRTUAL void op_free _((OP* arg));
375VIRTUAL void package _((OP* o));
376VIRTUAL PADOFFSET pad_alloc _((I32 optype, U32 tmptype));
377VIRTUAL PADOFFSET pad_allocmy _((char* name));
378VIRTUAL PADOFFSET pad_findmy _((char* name));
379VIRTUAL OP* oopsAV _((OP* o));
380VIRTUAL OP* oopsHV _((OP* o));
381VIRTUAL void pad_leavemy _((I32 fill));
382VIRTUAL SV* pad_sv _((PADOFFSET po));
383VIRTUAL void pad_free _((PADOFFSET po));
384VIRTUAL void pad_reset _((void));
385VIRTUAL void pad_swipe _((PADOFFSET po));
386VIRTUAL void peep _((OP* o));
387#ifndef PERL_OBJECT
a0d0e21e 388PerlInterpreter* perl_alloc _((void));
76e3520e 389#endif
873ef191 390#ifdef PERL_OBJECT
35ff7856 391VIRTUAL void perl_atexit _((void(*fn)(CPerlObj *, void *), void* ptr));
873ef191 392#else
393void perl_atexit _((void(*fn)(void *), void*));
394#endif
e3b8966e 395VIRTUAL I32 perl_call_argv _((char* sub_name, I32 flags, char** argv));
76e3520e 396VIRTUAL I32 perl_call_method _((char* methname, I32 flags));
e3b8966e 397VIRTUAL I32 perl_call_pv _((char* sub_name, I32 flags));
76e3520e 398VIRTUAL I32 perl_call_sv _((SV* sv, I32 flags));
399#ifdef PERL_OBJECT
400VIRTUAL void perl_construct _((void));
401VIRTUAL void perl_destruct _((void));
402#else
a0d0e21e 403void perl_construct _((PerlInterpreter* sv_interp));
748a9306 404void perl_destruct _((PerlInterpreter* sv_interp));
76e3520e 405#endif
406VIRTUAL SV* perl_eval_pv _((char* p, I32 croak_on_error));
407VIRTUAL I32 perl_eval_sv _((SV* sv, I32 flags));
408#ifdef PERL_OBJECT
409VIRTUAL void perl_free _((void));
410#else
a0d0e21e 411void perl_free _((PerlInterpreter* sv_interp));
76e3520e 412#endif
413VIRTUAL SV* perl_get_sv _((char* name, I32 create));
414VIRTUAL AV* perl_get_av _((char* name, I32 create));
415VIRTUAL HV* perl_get_hv _((char* name, I32 create));
416VIRTUAL CV* perl_get_cv _((char* name, I32 create));
417VIRTUAL int perl_init_i18nl10n _((int printwarn));
418VIRTUAL int perl_init_i18nl14n _((int printwarn));
419VIRTUAL void perl_new_collate _((char* newcoll));
420VIRTUAL void perl_new_ctype _((char* newctype));
421VIRTUAL void perl_new_numeric _((char* newcoll));
422VIRTUAL void perl_set_numeric_local _((void));
423VIRTUAL void perl_set_numeric_standard _((void));
424#ifdef PERL_OBJECT
425VIRTUAL int perl_parse _((void(*xsinit)(CPerlObj*), int argc, char** argv, char** env));
426#else
a0d0e21e 427int perl_parse _((PerlInterpreter* sv_interp, void(*xsinit)(void), int argc, char** argv, char** env));
76e3520e 428#endif
429VIRTUAL void perl_require_pv _((char* pv));
4633a7c4 430#define perl_requirepv perl_require_pv
76e3520e 431#ifdef PERL_OBJECT
432VIRTUAL int perl_run _((void));
433#else
a0d0e21e 434int perl_run _((PerlInterpreter* sv_interp));
76e3520e 435#endif
436VIRTUAL void pidgone _((int pid, int status));
437VIRTUAL void pmflag _((U16* pmfl, int ch));
438VIRTUAL OP* pmruntime _((OP* pm, OP* expr, OP* repl));
439VIRTUAL OP* pmtrans _((OP* o, OP* expr, OP* repl));
440VIRTUAL OP* pop_return _((void));
441VIRTUAL void pop_scope _((void));
442VIRTUAL OP* prepend_elem _((I32 optype, OP* head, OP* tail));
443VIRTUAL void push_return _((OP* o));
444VIRTUAL void push_scope _((void));
445VIRTUAL regexp* pregcomp _((char* exp, char* xend, PMOP* pm));
446VIRTUAL OP* ref _((OP* o, I32 type));
447VIRTUAL OP* refkids _((OP* o, I32 type));
873ef191 448VIRTUAL void regdump _((regexp* r));
76e3520e 449VIRTUAL I32 pregexec _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave));
450VIRTUAL I32 regexec_flags _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags));
451VIRTUAL void pregfree _((struct regexp* r));
e3b8966e 452VIRTUAL regnode* regnext _((regnode* p));
873ef191 453VIRTUAL void regprop _((SV* sv, regnode* o));
76e3520e 454VIRTUAL void repeatcpy _((char* to, char* from, I32 len, I32 count));
455VIRTUAL char* rninstr _((char* big, char* bigend, char* little, char* lend));
e3b8966e 456VIRTUAL Sighandler_t rsignal _((int i, Sighandler_t t));
457VIRTUAL int rsignal_restore _((int i, Sigsave_t* t));
458VIRTUAL int rsignal_save _((int i, Sighandler_t t1, Sigsave_t* t2));
459VIRTUAL Sighandler_t rsignal_state _((int i));
76e3520e 460VIRTUAL void rxres_free _((void** rsp));
e3b8966e 461VIRTUAL void rxres_restore _((void** rsp, REGEXP* prx));
462VIRTUAL void rxres_save _((void** rsp, REGEXP* prx));
a0d0e21e 463#ifndef HAS_RENAME
76e3520e 464VIRTUAL I32 same_dirent _((char* a, char* b));
465#endif
466VIRTUAL char* savepv _((char* sv));
467VIRTUAL char* savepvn _((char* sv, I32 len));
468VIRTUAL void savestack_grow _((void));
3bd495df 469VIRTUAL void save_aelem _((AV* av, I32 idx, SV **sptr));
76e3520e 470VIRTUAL void save_aptr _((AV** aptr));
471VIRTUAL AV* save_ary _((GV* gv));
472VIRTUAL void save_clearsv _((SV** svp));
473VIRTUAL void save_delete _((HV* hv, char* key, I32 klen));
a0d0e21e 474#ifndef titan /* TitanOS cc can't handle this */
76e3520e 475#ifdef PERL_OBJECT
565764a8 476typedef void (CPerlObj::*DESTRUCTORFUNC) _((void*));
477VIRTUAL void save_destructor _((DESTRUCTORFUNC f, void* p));
76e3520e 478#else
a0d0e21e 479void save_destructor _((void (*f)(void*), void* p));
76e3520e 480#endif
a0d0e21e 481#endif /* titan */
76e3520e 482VIRTUAL void save_freesv _((SV* sv));
483VIRTUAL void save_freeop _((OP* o));
484VIRTUAL void save_freepv _((char* pv));
485VIRTUAL void save_gp _((GV* gv, I32 empty));
486VIRTUAL HV* save_hash _((GV* gv));
3bd495df 487VIRTUAL void save_helem _((HV* hv, SV *key, SV **sptr));
76e3520e 488VIRTUAL void save_hptr _((HV** hptr));
489VIRTUAL void save_I16 _((I16* intp));
490VIRTUAL void save_I32 _((I32* intp));
491VIRTUAL void save_int _((int* intp));
492VIRTUAL void save_item _((SV* item));
493VIRTUAL void save_iv _((IV* iv));
494VIRTUAL void save_list _((SV** sarg, I32 maxsarg));
495VIRTUAL void save_long _((long* longp));
496VIRTUAL void save_nogv _((GV* gv));
497VIRTUAL void save_op _((void));
498VIRTUAL SV* save_scalar _((GV* gv));
499VIRTUAL void save_pptr _((char** pptr));
500VIRTUAL void save_sptr _((SV** sptr));
501VIRTUAL SV* save_svref _((SV** sptr));
502VIRTUAL SV** save_threadsv _((PADOFFSET i));
503VIRTUAL OP* sawparens _((OP* o));
504VIRTUAL OP* scalar _((OP* o));
505VIRTUAL OP* scalarkids _((OP* o));
506VIRTUAL OP* scalarseq _((OP* o));
507VIRTUAL OP* scalarvoid _((OP* o));
508VIRTUAL UV scan_hex _((char* start, I32 len, I32* retlen));
509VIRTUAL char* scan_num _((char* s));
510VIRTUAL UV scan_oct _((char* start, I32 len, I32* retlen));
511VIRTUAL OP* scope _((OP* o));
512VIRTUAL char* screaminstr _((SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last));
a0d0e21e 513#ifndef VMS
76e3520e 514VIRTUAL I32 setenv_getix _((char* nam));
515#endif
0824fdcb 516VIRTUAL void setdefout _((GV* gv));
517VIRTUAL char* sharepvn _((char* sv, I32 len, U32 hash));
518VIRTUAL HEK* share_hek _((char* sv, I32 len, U32 hash));
519VIRTUAL Signal_t sighandler _((int sig));
520VIRTUAL SV** stack_grow _((SV** sp, SV**p, int n));
521VIRTUAL I32 start_subparse _((I32 is_format, U32 flags));
522VIRTUAL void sub_crush_depth _((CV* cv));
523VIRTUAL bool sv_2bool _((SV* sv));
524VIRTUAL CV* sv_2cv _((SV* sv, HV** st, GV** gvp, I32 lref));
525VIRTUAL IO* sv_2io _((SV* sv));
526VIRTUAL IV sv_2iv _((SV* sv));
527VIRTUAL SV* sv_2mortal _((SV* sv));
528VIRTUAL double sv_2nv _((SV* sv));
529VIRTUAL char* sv_2pv _((SV* sv, STRLEN* lp));
530VIRTUAL UV sv_2uv _((SV* sv));
531VIRTUAL IV sv_iv _((SV* sv));
532VIRTUAL UV sv_uv _((SV* sv));
533VIRTUAL double sv_nv _((SV* sv));
e3b8966e 534VIRTUAL char * sv_pvn _((SV *sv, STRLEN *len));
535VIRTUAL I32 sv_true _((SV *sv));
0824fdcb 536VIRTUAL void sv_add_arena _((char* ptr, U32 size, U32 flags));
537VIRTUAL int sv_backoff _((SV* sv));
538VIRTUAL SV* sv_bless _((SV* sv, HV* stash));
539VIRTUAL void sv_catpvf _((SV* sv, const char* pat, ...));
540VIRTUAL void sv_catpv _((SV* sv, char* ptr));
541VIRTUAL void sv_catpvn _((SV* sv, char* ptr, STRLEN len));
542VIRTUAL void sv_catsv _((SV* dsv, SV* ssv));
543VIRTUAL void sv_chop _((SV* sv, char* ptr));
544VIRTUAL void sv_clean_all _((void));
545VIRTUAL void sv_clean_objs _((void));
546VIRTUAL void sv_clear _((SV* sv));
547VIRTUAL I32 sv_cmp _((SV* sv1, SV* sv2));
548VIRTUAL I32 sv_cmp_locale _((SV* sv1, SV* sv2));
5f05dabc 549#ifdef USE_LOCALE_COLLATE
0824fdcb 550VIRTUAL char* sv_collxfrm _((SV* sv, STRLEN* nxp));
551#endif
552VIRTUAL OP* sv_compile_2op _((SV* sv, OP** startp, char* code, AV** avp));
553VIRTUAL void sv_dec _((SV* sv));
554VIRTUAL void sv_dump _((SV* sv));
555VIRTUAL bool sv_derived_from _((SV* sv, char* name));
556VIRTUAL I32 sv_eq _((SV* sv1, SV* sv2));
557VIRTUAL void sv_free _((SV* sv));
558VIRTUAL void sv_free_arenas _((void));
559VIRTUAL char* sv_gets _((SV* sv, PerlIO* fp, I32 append));
560#ifndef DOSISH
561VIRTUAL char* sv_grow _((SV* sv, I32 newlen));
562#else
563VIRTUAL char* sv_grow _((SV* sv, unsigned long newlen));
76e3520e 564#endif
565VIRTUAL void sv_inc _((SV* sv));
566VIRTUAL void sv_insert _((SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen));
567VIRTUAL int sv_isa _((SV* sv, char* name));
568VIRTUAL int sv_isobject _((SV* sv));
569VIRTUAL STRLEN sv_len _((SV* sv));
570VIRTUAL void sv_magic _((SV* sv, SV* obj, int how, char* name, I32 namlen));
571VIRTUAL SV* sv_mortalcopy _((SV* oldsv));
572VIRTUAL SV* sv_newmortal _((void));
573VIRTUAL SV* sv_newref _((SV* sv));
873ef191 574VIRTUAL char* sv_peek _((SV* sv));
76e3520e 575VIRTUAL char* sv_pvn_force _((SV* sv, STRLEN* lp));
576VIRTUAL char* sv_reftype _((SV* sv, int ob));
577VIRTUAL void sv_replace _((SV* sv, SV* nsv));
578VIRTUAL void sv_report_used _((void));
579VIRTUAL void sv_reset _((char* s, HV* stash));
580VIRTUAL void sv_setpvf _((SV* sv, const char* pat, ...));
581VIRTUAL void sv_setiv _((SV* sv, IV num));
582VIRTUAL void sv_setpviv _((SV* sv, IV num));
583VIRTUAL void sv_setuv _((SV* sv, UV num));
584VIRTUAL void sv_setnv _((SV* sv, double num));
585VIRTUAL SV* sv_setref_iv _((SV* rv, char* classname, IV iv));
586VIRTUAL SV* sv_setref_nv _((SV* rv, char* classname, double nv));
587VIRTUAL SV* sv_setref_pv _((SV* rv, char* classname, void* pv));
588VIRTUAL SV* sv_setref_pvn _((SV* rv, char* classname, char* pv, I32 n));
589VIRTUAL void sv_setpv _((SV* sv, const char* ptr));
590VIRTUAL void sv_setpvn _((SV* sv, const char* ptr, STRLEN len));
591VIRTUAL void sv_setsv _((SV* dsv, SV* ssv));
592VIRTUAL void sv_taint _((SV* sv));
593VIRTUAL bool sv_tainted _((SV* sv));
594VIRTUAL int sv_unmagic _((SV* sv, int type));
595VIRTUAL void sv_unref _((SV* sv));
596VIRTUAL void sv_untaint _((SV* sv));
597VIRTUAL bool sv_upgrade _((SV* sv, U32 mt));
598VIRTUAL void sv_usepvn _((SV* sv, char* ptr, STRLEN len));
599VIRTUAL void sv_vcatpvfn _((SV* sv, const char* pat, STRLEN patlen,
46fc3d4c 600 va_list* args, SV** svargs, I32 svmax,
601 bool *used_locale));
76e3520e 602VIRTUAL void sv_vsetpvfn _((SV* sv, const char* pat, STRLEN patlen,
46fc3d4c 603 va_list* args, SV** svargs, I32 svmax,
604 bool *used_locale));
76e3520e 605VIRTUAL void taint_env _((void));
606VIRTUAL void taint_proper _((const char* f, char* s));
16d20bd9 607#ifdef UNLINK_ALL_VERSIONS
76e3520e 608VIRTUAL I32 unlnk _((char* f));
16d20bd9 609#endif
77a005ab 610#ifdef USE_THREADS
76e3520e 611VIRTUAL void unlock_condpair _((void* svv));
612#endif
0824fdcb 613VIRTUAL void unsharepvn _((char* sv, I32 len, U32 hash));
614VIRTUAL void unshare_hek _((HEK* hek));
615VIRTUAL void utilize _((int aver, I32 floor, OP* version, OP* id, OP* arg));
616VIRTUAL void vivify_defelem _((SV* sv));
617VIRTUAL void vivify_ref _((SV* sv, U32 to_what));
618VIRTUAL I32 wait4pid _((int pid, int* statusp, int flags));
619VIRTUAL void warn _((const char* pat,...));
873ef191 620VIRTUAL void watch _((char** addr));
0824fdcb 621VIRTUAL I32 whichsig _((char* sig));
622VIRTUAL int yyerror _((char* s));
623VIRTUAL int yylex _((void));
624VIRTUAL int yyparse _((void));
625VIRTUAL int yywarn _((char* s));
626
627#ifndef MYMALLOC
628VIRTUAL Malloc_t safemalloc _((MEM_SIZE nbytes));
629VIRTUAL Malloc_t safecalloc _((MEM_SIZE elements, MEM_SIZE size));
630VIRTUAL Malloc_t saferealloc _((Malloc_t where, MEM_SIZE nbytes));
631VIRTUAL Free_t safefree _((Malloc_t where));
bbce6d69 632#endif
0824fdcb 633
55497cff 634#ifdef LEAKTEST
76e3520e 635VIRTUAL Malloc_t safexmalloc _((I32 x, MEM_SIZE size));
636VIRTUAL Malloc_t safexcalloc _((I32 x, MEM_SIZE elements, MEM_SIZE size));
637VIRTUAL Malloc_t safexrealloc _((Malloc_t where, MEM_SIZE size));
638VIRTUAL void safexfree _((Malloc_t where));
55497cff 639#endif
22239a37 640
641#ifdef PERL_GLOBAL_STRUCT
76e3520e 642VIRTUAL struct perl_vars *Perl_GetVars _((void));
643#endif
644
645#ifdef PERL_OBJECT
646protected:
647void hsplit _((HV *hv));
648void hfreeentries _((HV *hv));
649HE* more_he _((void));
650HE* new_he _((void));
651void del_he _((HE *p));
652HEK *save_hek _((char *str, I32 len, U32 hash));
653SV *mess_alloc _((void));
654void gv_init_sv _((GV *gv, I32 sv_type));
655SV *save_scalar_at _((SV **sptr));
656IV asIV _((SV* sv));
657UV asUV _((SV* sv));
658SV *more_sv _((void));
659XPVIV *more_xiv _((void));
660XPVNV *more_xnv _((void));
661XPV *more_xpv _((void));
662XRV *more_xrv _((void));
663XPVIV *new_xiv _((void));
664XPVNV *new_xnv _((void));
665XPV *new_xpv _((void));
666XRV *new_xrv _((void));
667void del_xiv _((XPVIV* p));
668void del_xnv _((XPVNV* p));
669void del_xpv _((XPV* p));
670void del_xrv _((XRV* p));
671void sv_mortalgrow _((void));
672void sv_unglob _((SV* sv));
673void sv_check_thinkfirst _((SV *sv));
9d8a25dc 674
675SV *newSVpvn _((char *s, STRLEN len));
676
677void sv_catpv_mg _((SV *sv, char *ptr));
678void sv_catpvf_mg _((SV *sv, const char* pat, ...));
679void sv_catpvn_mg _((SV *sv, char *ptr, STRLEN len));
680void sv_catsv_mg _((SV *dstr, SV *sstr));
681void sv_setiv_mg _((SV *sv, IV i));
682void sv_setnv_mg _((SV *sv, double num));
683void sv_setsv_mg _((SV *dstr, SV *sstr));
684void sv_setuv_mg _((SV *sv, UV u));
685void sv_setpv_mg _((SV *sv, const char *ptr));
686void sv_setpvf_mg _((SV *sv, const char* pat, ...));
687void sv_setpviv_mg _((SV *sv, IV iv));
688void sv_setpvn_mg _((SV *sv, const char *ptr, STRLEN len));
689void sv_usepvn_mg _((SV *sv, char *ptr, STRLEN len));
690
76e3520e 691void do_report_used _((SV *sv));
692void do_clean_objs _((SV *sv));
693void do_clean_named_objs _((SV *sv));
694void do_clean_all _((SV *sv));
695void not_a_number _((SV *sv));
9d8a25dc 696void* my_safemalloc _((MEM_SIZE size));
76e3520e 697
698typedef void (CPerlObj::*SVFUNC) _((SV*));
699void visit _((SVFUNC f));
700
565764a8 701typedef I32 (CPerlObj::*SVCOMPARE) _((SV*, SV*));
702void qsortsv _((SV ** array, size_t num_elts, SVCOMPARE f));
703I32 sortcv _((SV *a, SV *b));
76e3520e 704void save_magic _((MGS *mgs, SV *sv));
705int magic_methpack _((SV *sv, MAGIC *mg, char *meth));
565764a8 706int magic_methcall _((MAGIC *mg, char *meth, I32 flags, int n, SV *val));
76e3520e 707OP * doform _((CV *cv, GV *gv, OP *retop));
708void doencodes _((SV* sv, char* s, I32 len));
709SV* refto _((SV* sv));
710U32 seed _((void));
711OP *docatch _((OP *o));
712OP *dofindlabel _((OP *o, char *label, OP **opstack, OP **oplimit));
713void doparseform _((SV *sv));
714I32 dopoptoeval _((I32 startingblock));
715I32 dopoptolabel _((char *label));
716I32 dopoptoloop _((I32 startingblock));
717I32 dopoptosub _((I32 startingblock));
718void save_lines _((AV *array, SV *sv));
719OP *doeval _((int gimme, OP** startop));
720SV *mul128 _((SV *sv, U8 m));
721SV *is_an_int _((char *s, STRLEN l));
722int div128 _((SV *pnum, bool *done));
723
724int runops_standard _((void));
76e3520e 725int runops_debug _((void));
76e3520e 726void check_uni _((void));
727void force_next _((I32 type));
728char *force_version _((char *start));
729char *force_word _((char *start, int token, int check_keyword, int allow_pack, int allow_tick));
730SV *tokeq _((SV *sv));
731char *scan_const _((char *start));
732char *scan_formline _((char *s));
733char *scan_heredoc _((char *s));
734char *scan_ident _((char *s, char *send, char *dest, STRLEN destlen, I32 ck_uni));
735char *scan_inputsymbol _((char *start));
736char *scan_pat _((char *start));
737char *scan_str _((char *start));
738char *scan_subst _((char *start));
739char *scan_trans _((char *start));
740char *scan_word _((char *s, char *dest, STRLEN destlen, int allow_package, STRLEN *slp));
741char *skipspace _((char *s));
742void checkcomma _((char *s, char *name, char *what));
743void force_ident _((char *s, int kind));
744void incline _((char *s));
745int intuit_method _((char *s, GV *gv));
746int intuit_more _((char *s));
747I32 lop _((I32 f, expectation x, char *s));
748void missingterm _((char *s));
749void no_op _((char *what, char *s));
750void set_csh _((void));
751I32 sublex_done _((void));
752I32 sublex_push _((void));
753I32 sublex_start _((void));
754#ifdef CRIPPLED_CC
755int uni _((I32 f, char *s));
756#endif
757char * filter_gets _((SV *sv, PerlIO *fp, STRLEN append));
758int ao _((int toketype));
759void depcom _((void));
760#ifdef WIN32
761I32 win32_textfilter _((int idx, SV *sv, int maxlen));
762#endif
763char* incl_perldb _((void));
764SV *isa_lookup _((HV *stash, char *name, int len, int level));
765CV *get_db_sub _((SV **svp, CV *cv));
766I32 list_assignment _((OP *o));
767void bad_type _((I32 n, char *t, char *name, OP *kid));
768OP *modkids _((OP *o, I32 type));
769OP *no_fh_allowed _((OP *o));
770OP *scalarboolean _((OP *o));
771OP *too_few_arguments _((OP *o, char* name));
772OP *too_many_arguments _((OP *o, char* name));
773void null _((OP* o));
774PADOFFSET pad_findlex _((char* name, PADOFFSET newoff, U32 seq, CV* startcv, I32 cx_ix));
775OP *newDEFSVOP _((void));
776char* gv_ename _((GV *gv));
777CV *cv_clone2 _((CV *proto, CV *outside));
22239a37 778
76e3520e 779void find_beginning _((void));
780void forbid_setid _((char *));
781void incpush _((char *, int));
782void init_ids _((void));
783void init_debugger _((void));
784void init_lexer _((void));
785void init_main_stash _((void));
786#ifdef USE_THREADS
787struct perl_thread * init_main_thread _((void));
788#endif /* USE_THREADS */
789void init_perllib _((void));
790void init_postdump_symbols _((int, char **, char **));
791void init_predump_symbols _((void));
792void my_exit_jump _((void)) __attribute__((noreturn));
793void nuke_stacks _((void));
01f988be 794void open_script _((char *, bool, SV *, int *fd));
76e3520e 795void usage _((char *));
01f988be 796void validate_suid _((char *, char*, int));
76e3520e 797
798regnode *reg _((I32, I32 *));
799regnode *reganode _((U8, U32));
800regnode *regatom _((I32 *));
801regnode *regbranch _((I32 *, I32));
802void regc _((U8, char *));
803regnode *regclass _((void));
804I32 regcurly _((char *));
805regnode *reg_node _((U8));
806regnode *regpiece _((I32 *));
807void reginsert _((U8, regnode *));
808void regoptail _((regnode *, regnode *));
809void regset _((char *, I32));
810void regtail _((regnode *, regnode *));
873ef191 811char* regwhite _((char *, char *));
76e3520e 812char* nextchar _((void));
813regnode *dumpuntil _((regnode *start, regnode *node, regnode *last, SV* sv, I32 l));
76e3520e 814void scan_commit _((scan_data_t *data));
815I32 study_chunk _((regnode **scanp, I32 *deltap, regnode *last, scan_data_t *data, U32 flags));
816I32 add_data _((I32 n, char *s));
817void re_croak2 _((const char* pat1,const char* pat2,...)) __attribute__((noreturn));
818I32 regmatch _((regnode *prog));
819I32 regrepeat _((regnode *p, I32 max));
820I32 regrepeat_hard _((regnode *p, I32 max, I32 *lp));
821I32 regtry _((regexp *prog, char *startpos));
822bool reginclass _((char *p, I32 c));
823CHECKPOINT regcppush _((I32 parenfloor));
824char * regcppop _((void));
825void dump _((char *pat,...));
826#ifdef WIN32
827int do_aspawn _((void *vreally, void **vmark, void **vsp));
828#endif
829
830#ifdef DEBUGGING
831void del_sv _((SV *p));
832#endif
35ff7856 833void debprof _((OP *o));
76e3520e 834
01f988be 835void *bset_obj_store _((void *obj, I32 ix));
01f988be 836OP *new_logop _((I32 type, I32 flags, OP **firstp, OP **otherp));
837
838#define PPDEF(s) OP* CPerlObj::s _((ARGSproto));
9e6b2b00 839
76e3520e 840PPDEF(pp_aassign)
841PPDEF(pp_abs)
842PPDEF(pp_accept)
843PPDEF(pp_add)
844PPDEF(pp_aelem)
845PPDEF(pp_aelemfast)
846PPDEF(pp_alarm)
847PPDEF(pp_and)
848PPDEF(pp_andassign)
849PPDEF(pp_anoncode)
850PPDEF(pp_anonhash)
851PPDEF(pp_anonlist)
852PPDEF(pp_aslice)
853PPDEF(pp_atan2)
854PPDEF(pp_av2arylen)
855PPDEF(pp_backtick)
856PPDEF(pp_bind)
857PPDEF(pp_binmode)
858PPDEF(pp_bit_and)
859PPDEF(pp_bit_or)
860PPDEF(pp_bit_xor)
861PPDEF(pp_bless)
862PPDEF(pp_caller)
863PPDEF(pp_chdir)
864PPDEF(pp_chmod)
865PPDEF(pp_chomp)
866PPDEF(pp_chop)
867PPDEF(pp_chown)
868PPDEF(pp_chr)
869PPDEF(pp_chroot)
870PPDEF(pp_close)
871PPDEF(pp_closedir)
872PPDEF(pp_complement)
873PPDEF(pp_concat)
874PPDEF(pp_cond_expr)
875PPDEF(pp_connect)
876PPDEF(pp_const)
877PPDEF(pp_cos)
878PPDEF(pp_crypt)
879PPDEF(pp_cswitch)
880PPDEF(pp_dbmclose)
881PPDEF(pp_dbmopen)
882PPDEF(pp_dbstate)
883PPDEF(pp_defined)
884PPDEF(pp_delete)
885PPDEF(pp_die)
886PPDEF(pp_divide)
887PPDEF(pp_dofile)
888PPDEF(pp_dump)
889PPDEF(pp_each)
890PPDEF(pp_egrent)
891PPDEF(pp_ehostent)
892PPDEF(pp_enetent)
893PPDEF(pp_enter)
894PPDEF(pp_entereval)
895PPDEF(pp_enteriter)
896PPDEF(pp_enterloop)
897PPDEF(pp_entersub)
898PPDEF(pp_entertry)
899PPDEF(pp_enterwrite)
900PPDEF(pp_eof)
901PPDEF(pp_eprotoent)
902PPDEF(pp_epwent)
903PPDEF(pp_eq)
904PPDEF(pp_eservent)
905PPDEF(pp_exec)
906PPDEF(pp_exists)
907PPDEF(pp_exit)
908PPDEF(pp_exp)
909PPDEF(pp_fcntl)
910PPDEF(pp_fileno)
911PPDEF(pp_flip)
912PPDEF(pp_flock)
913PPDEF(pp_flop)
914PPDEF(pp_fork)
915PPDEF(pp_formline)
916PPDEF(pp_ftatime)
917PPDEF(pp_ftbinary)
918PPDEF(pp_ftblk)
919PPDEF(pp_ftchr)
920PPDEF(pp_ftctime)
921PPDEF(pp_ftdir)
922PPDEF(pp_fteexec)
923PPDEF(pp_fteowned)
924PPDEF(pp_fteread)
925PPDEF(pp_ftewrite)
926PPDEF(pp_ftfile)
927PPDEF(pp_ftis)
928PPDEF(pp_ftlink)
929PPDEF(pp_ftmtime)
930PPDEF(pp_ftpipe)
931PPDEF(pp_ftrexec)
932PPDEF(pp_ftrowned)
933PPDEF(pp_ftrread)
934PPDEF(pp_ftrwrite)
935PPDEF(pp_ftsgid)
936PPDEF(pp_ftsize)
937PPDEF(pp_ftsock)
938PPDEF(pp_ftsuid)
939PPDEF(pp_ftsvtx)
940PPDEF(pp_fttext)
941PPDEF(pp_fttty)
942PPDEF(pp_ftzero)
943PPDEF(pp_ge)
944PPDEF(pp_gelem)
945PPDEF(pp_getc)
946PPDEF(pp_getlogin)
947PPDEF(pp_getpeername)
948PPDEF(pp_getpgrp)
949PPDEF(pp_getppid)
950PPDEF(pp_getpriority)
951PPDEF(pp_getsockname)
952PPDEF(pp_ggrent)
953PPDEF(pp_ggrgid)
954PPDEF(pp_ggrnam)
955PPDEF(pp_ghbyaddr)
956PPDEF(pp_ghbyname)
957PPDEF(pp_ghostent)
958PPDEF(pp_glob)
959PPDEF(pp_gmtime)
960PPDEF(pp_gnbyaddr)
961PPDEF(pp_gnbyname)
962PPDEF(pp_gnetent)
963PPDEF(pp_goto)
964PPDEF(pp_gpbyname)
965PPDEF(pp_gpbynumber)
966PPDEF(pp_gprotoent)
967PPDEF(pp_gpwent)
968PPDEF(pp_gpwnam)
969PPDEF(pp_gpwuid)
970PPDEF(pp_grepstart)
971PPDEF(pp_grepwhile)
972PPDEF(pp_gsbyname)
973PPDEF(pp_gsbyport)
974PPDEF(pp_gservent)
975PPDEF(pp_gsockopt)
976PPDEF(pp_gt)
977PPDEF(pp_gv)
978PPDEF(pp_gvsv)
979PPDEF(pp_helem)
980PPDEF(pp_hex)
981PPDEF(pp_hslice)
982PPDEF(pp_i_add)
983PPDEF(pp_i_divide)
984PPDEF(pp_i_eq)
985PPDEF(pp_i_ge)
986PPDEF(pp_i_gt)
987PPDEF(pp_i_le)
988PPDEF(pp_i_lt)
989PPDEF(pp_i_modulo)
990PPDEF(pp_i_multiply)
991PPDEF(pp_i_ncmp)
992PPDEF(pp_i_ne)
993PPDEF(pp_i_negate)
994PPDEF(pp_i_subtract)
995PPDEF(pp_index)
996PPDEF(pp_indread)
997PPDEF(pp_int)
998PPDEF(pp_ioctl)
999PPDEF(pp_iter)
1000PPDEF(pp_join)
1001PPDEF(pp_keys)
1002PPDEF(pp_kill)
1003PPDEF(pp_last)
1004PPDEF(pp_lc)
1005PPDEF(pp_lcfirst)
1006PPDEF(pp_le)
1007PPDEF(pp_leave)
1008PPDEF(pp_leaveeval)
1009PPDEF(pp_leaveloop)
1010PPDEF(pp_leavesub)
1011PPDEF(pp_leavetry)
1012PPDEF(pp_leavewrite)
1013PPDEF(pp_left_shift)
1014PPDEF(pp_length)
1015PPDEF(pp_lineseq)
1016PPDEF(pp_link)
1017PPDEF(pp_list)
1018PPDEF(pp_listen)
1019PPDEF(pp_localtime)
1020PPDEF(pp_lock)
1021PPDEF(pp_log)
1022PPDEF(pp_lslice)
1023PPDEF(pp_lstat)
1024PPDEF(pp_lt)
1025PPDEF(pp_mapstart)
1026PPDEF(pp_mapwhile)
1027PPDEF(pp_match)
1028PPDEF(pp_method)
1029PPDEF(pp_mkdir)
1030PPDEF(pp_modulo)
1031PPDEF(pp_msgctl)
1032PPDEF(pp_msgget)
1033PPDEF(pp_msgrcv)
1034PPDEF(pp_msgsnd)
1035PPDEF(pp_multiply)
1036PPDEF(pp_ncmp)
1037PPDEF(pp_ne)
1038PPDEF(pp_negate)
1039PPDEF(pp_next)
1040PPDEF(pp_nextstate)
1041PPDEF(pp_not)
1042PPDEF(pp_nswitch)
1043PPDEF(pp_null)
1044PPDEF(pp_oct)
1045PPDEF(pp_open)
1046PPDEF(pp_open_dir)
1047PPDEF(pp_or)
1048PPDEF(pp_orassign)
1049PPDEF(pp_ord)
1050PPDEF(pp_pack)
1051PPDEF(pp_padany)
1052PPDEF(pp_padav)
1053PPDEF(pp_padhv)
1054PPDEF(pp_padsv)
1055PPDEF(pp_pipe_op)
1056PPDEF(pp_pop)
1057PPDEF(pp_pos)
1058PPDEF(pp_postdec)
1059PPDEF(pp_postinc)
1060PPDEF(pp_pow)
1061PPDEF(pp_predec)
1062PPDEF(pp_preinc)
1063PPDEF(pp_print)
1064PPDEF(pp_prototype)
1065PPDEF(pp_prtf)
1066PPDEF(pp_push)
1067PPDEF(pp_pushmark)
1068PPDEF(pp_pushre)
1069PPDEF(pp_quotemeta)
1070PPDEF(pp_rand)
1071PPDEF(pp_range)
1072PPDEF(pp_rcatline)
1073PPDEF(pp_read)
1074PPDEF(pp_readdir)
1075PPDEF(pp_readline)
1076PPDEF(pp_readlink)
1077PPDEF(pp_recv)
1078PPDEF(pp_redo)
1079PPDEF(pp_ref)
1080PPDEF(pp_refgen)
1081PPDEF(pp_regcmaybe)
1082PPDEF(pp_regcomp)
1083PPDEF(pp_rename)
1084PPDEF(pp_repeat)
1085PPDEF(pp_require)
1086PPDEF(pp_reset)
1087PPDEF(pp_return)
1088PPDEF(pp_reverse)
1089PPDEF(pp_rewinddir)
1090PPDEF(pp_right_shift)
1091PPDEF(pp_rindex)
1092PPDEF(pp_rmdir)
1093PPDEF(pp_rv2av)
1094PPDEF(pp_rv2cv)
1095PPDEF(pp_rv2gv)
1096PPDEF(pp_rv2hv)
1097PPDEF(pp_rv2sv)
1098PPDEF(pp_sassign)
1099PPDEF(pp_scalar)
1100PPDEF(pp_schomp)
1101PPDEF(pp_schop)
1102PPDEF(pp_scmp)
1103PPDEF(pp_scope)
1104PPDEF(pp_seek)
1105PPDEF(pp_seekdir)
1106PPDEF(pp_select)
1107PPDEF(pp_semctl)
1108PPDEF(pp_semget)
1109PPDEF(pp_semop)
1110PPDEF(pp_send)
1111PPDEF(pp_seq)
1112PPDEF(pp_setpgrp)
1113PPDEF(pp_setpriority)
1114PPDEF(pp_sge)
1115PPDEF(pp_sgrent)
1116PPDEF(pp_sgt)
1117PPDEF(pp_shift)
1118PPDEF(pp_shmctl)
1119PPDEF(pp_shmget)
1120PPDEF(pp_shmread)
1121PPDEF(pp_shmwrite)
1122PPDEF(pp_shostent)
1123PPDEF(pp_shutdown)
1124PPDEF(pp_sin)
1125PPDEF(pp_sle)
1126PPDEF(pp_sleep)
1127PPDEF(pp_slt)
1128PPDEF(pp_sne)
1129PPDEF(pp_snetent)
1130PPDEF(pp_socket)
1131PPDEF(pp_sockpair)
1132PPDEF(pp_sort)
1133PPDEF(pp_splice)
1134PPDEF(pp_split)
1135PPDEF(pp_sprintf)
1136PPDEF(pp_sprotoent)
1137PPDEF(pp_spwent)
1138PPDEF(pp_sqrt)
1139PPDEF(pp_srand)
1140PPDEF(pp_srefgen)
1141PPDEF(pp_sselect)
1142PPDEF(pp_sservent)
1143PPDEF(pp_ssockopt)
1144PPDEF(pp_stat)
1145PPDEF(pp_stringify)
1146PPDEF(pp_stub)
1147PPDEF(pp_study)
1148PPDEF(pp_subst)
1149PPDEF(pp_substcont)
1150PPDEF(pp_substr)
1151PPDEF(pp_subtract)
1152PPDEF(pp_symlink)
1153PPDEF(pp_syscall)
1154PPDEF(pp_sysopen)
1155PPDEF(pp_sysread)
1156PPDEF(pp_sysseek)
1157PPDEF(pp_system)
1158PPDEF(pp_syswrite)
1159PPDEF(pp_tell)
1160PPDEF(pp_telldir)
1161PPDEF(pp_threadsv)
1162PPDEF(pp_tie)
1163PPDEF(pp_tied)
1164PPDEF(pp_time)
1165PPDEF(pp_tms)
1166PPDEF(pp_trans)
1167PPDEF(pp_truncate)
1168PPDEF(pp_uc)
1169PPDEF(pp_ucfirst)
1170PPDEF(pp_umask)
1171PPDEF(pp_undef)
1172PPDEF(pp_unlink)
1173PPDEF(pp_unpack)
1174PPDEF(pp_unshift)
1175PPDEF(pp_unstack)
1176PPDEF(pp_untie)
1177PPDEF(pp_utime)
1178PPDEF(pp_values)
1179PPDEF(pp_vec)
1180PPDEF(pp_wait)
1181PPDEF(pp_waitpid)
1182PPDEF(pp_wantarray)
1183PPDEF(pp_warn)
1184PPDEF(pp_xor)
1185
1186OP * ck_ftst _((OP *o));
1187OP *ck_anoncode _((OP *o));
1188OP *ck_bitop _((OP *o));
1189OP *ck_concat _((OP *o));
1190OP *ck_spair _((OP *o));
1191OP *ck_delete _((OP *o));
1192OP *ck_eof _((OP *o));
1193OP *ck_eval _((OP *o));
1194OP *ck_exec _((OP *o));
1195OP *ck_exists _((OP *o));
1196OP *ck_rvconst _((OP *o));
1197OP *ck_fun _((OP *o));
1198OP *ck_glob _((OP *o));
1199OP *ck_grep _((OP *o));
1200OP *ck_index _((OP *o));
1201OP *ck_lengthconst _((OP *o));
1202OP *ck_lfun _((OP *o));
1203OP *ck_rfun _((OP *o));
1204OP *ck_listiob _((OP *o));
1205OP *ck_fun_locale _((OP *o));
1206OP *ck_scmp _((OP *o));
1207OP *ck_match _((OP *o));
1208OP *ck_null _((OP *o));
1209OP *ck_repeat _((OP *o));
1210OP *ck_require _((OP *o));
1211OP *ck_select _((OP *o));
1212OP *ck_shift _((OP *o));
1213OP *ck_sort _((OP *o));
1214OP *ck_split _((OP *o));
1215OP *ck_subr _((OP *o));
1216OP *ck_svconst _((OP *o));
1217OP *ck_trunc _((OP *o));
1218void unwind_handler_stack _((void *p));
1219void restore_magic _((void *p));
1220void restore_rsfp _((void *f));
7fae4e64 1221void restore_expect _((void *e));
1222void restore_lex_expect _((void *e));
76e3520e 1223void yydestruct _((void *ptr));
e3b8966e 1224VIRTUAL int fprintf _((PerlIO *pf, const char *pat, ...));
51aa15f3 1225VIRTUAL SV** get_specialsv_list _((void));
76e3520e 1226
1227#ifdef WIN32
e3b8966e 1228VIRTUAL int& ErrorNo _((void));
76e3520e 1229#endif /* WIN32 */
1230#else /* !PERL_OBJECT */
22239a37 1231END_EXTERN_C
76e3520e 1232#endif /* PERL_OBJECT */
1233
1a90ebb2 1234#ifdef PERL_OBJECT
1235public:
1236#endif
1237#ifdef INDIRECT_BGET_MACROS
1238VIRTUAL void byterun _((struct bytestream bs));
1239#else
1240VIRTUAL void byterun _((PerlIO *fp));
1241#endif /* INDIRECT_BGET_MACROS */
1242