[win32] integrate mainline
[p5sagit/p5-mst-13.2.git] / proto.h
CommitLineData
22239a37 1START_EXTERN_C
2
fed7345c 3#ifndef NEXT30_NO_ATTRIBUTE
ecfc5424 4#ifndef HASATTRIBUTE /* disable GNU-cc attribute checking? */
5#ifdef __attribute__ /* Avoid possible redefinition errors */
a0d0e21e 6#undef __attribute__
ecfc5424 7#endif
a0d0e21e 8#define __attribute__(attr)
aeea060c 9#endif
a0d0e21e 10#endif
11#ifdef OVERLOAD
12SV* amagic_call _((SV* left,SV* right,int method,int dir));
44a8e56a 13bool Gv_AMupdate _((HV* stash));
a0d0e21e 14#endif /* OVERLOAD */
15OP* append_elem _((I32 optype, OP* head, OP* tail));
16OP* append_list _((I32 optype, LISTOP* first, LISTOP* last));
17I32 apply _((I32 type, SV** mark, SV** sp));
11343788 18void assertref _((OP* o));
c750a3ec 19SV* avhv_delete _((AV *ar, char* key, U32 klen, I32 flags));
97fcbf96 20SV* avhv_delete_ent _((AV *ar, SV* keysv, I32 flags, U32 hash));
c750a3ec 21bool avhv_exists _((AV *ar, char* key, U32 klen));
97fcbf96 22bool avhv_exists_ent _((AV *ar, SV* keysv, U32 hash));
c750a3ec 23SV** avhv_fetch _((AV *ar, char* key, U32 klen, I32 lval));
97fcbf96 24SV** avhv_fetch_ent _((AV *ar, SV* keysv, I32 lval, U32 hash));
c750a3ec 25I32 avhv_iterinit _((AV *ar));
26HE* avhv_iternext _((AV *ar));
27SV * avhv_iternextsv _((AV *ar, char** key, I32* retlen));
28SV* avhv_iterval _((AV *ar, HE* entry));
5d5aaa5e 29HV* avhv_keys _((AV *ar));
c750a3ec 30SV** avhv_store _((AV *ar, char* key, U32 klen, SV* val, U32 hash));
a0d0e21e 31void av_clear _((AV* ar));
32void av_extend _((AV* ar, I32 key));
33AV* av_fake _((I32 size, SV** svp));
34SV** av_fetch _((AV* ar, I32 key, I32 lval));
35void av_fill _((AV* ar, I32 fill));
36I32 av_len _((AV* ar));
37AV* av_make _((I32 size, SV** svp));
38SV* av_pop _((AV* ar));
39void av_push _((AV* ar, SV* val));
fb73857a 40void av_reify _((AV* ar));
a0d0e21e 41SV* av_shift _((AV* ar));
42SV** av_store _((AV* ar, I32 key, SV* val));
43void av_undef _((AV* ar));
44void av_unshift _((AV* ar, I32 num));
45OP* bind_match _((I32 type, OP* left, OP* pat));
36477c24 46OP* block_end _((I32 floor, OP* seq));
54310121 47I32 block_gimme _((void));
55497cff 48int block_start _((int full));
45b989d7 49void boot_core_UNIVERSAL _((void));
68dc0745 50void call_list _((I32 oldscope, AV* list));
61bb5906 51I32 cando _((I32 bit, I32 effective, Stat_t* statbufp));
a0d0e21e 52#ifndef CASTNEGFLOAT
53U32 cast_ulong _((double f));
54#endif
55#if !defined(HAS_TRUNCATE) && !defined(HAS_CHSIZE) && defined(F_FREESP)
45b989d7 56I32 my_chsize _((int fd, Off_t length));
a0d0e21e 57#endif
46fc3d4c 58OP* ck_gvconst _((OP* o));
5dc0d613 59OP* ck_retarget _((OP* o));
f93b4edd 60#ifdef USE_THREADS
61MAGIC * condpair_magic _((SV *sv));
62#endif
11343788 63OP* convert _((I32 optype, I32 flags, OP* o));
fc36a67e 64void croak _((const char* pat,...)) __attribute__((noreturn));
3fe9a6f1 65void cv_ckproto _((CV* cv, GV* gv, char* p));
748a9306 66CV* cv_clone _((CV* proto));
760ac839 67SV* cv_const_sv _((CV* cv));
a0d0e21e 68void cv_undef _((CV* cv));
69#ifdef DEBUGGING
c09156bb 70void cx_dump _((PERL_CONTEXT* cs));
a0d0e21e 71#endif
46fc3d4c 72SV* filter_add _((filter_t funcp, SV* datasv));
16d20bd9 73void filter_del _((filter_t funcp));
46fc3d4c 74I32 filter_read _((int idx, SV* buffer, int maxlen));
31fb1209 75char ** get_op_descs _((void));
76char ** get_op_names _((void));
a0d0e21e 77I32 cxinc _((void));
71be2cbc 78void deb _((const char* pat,...)) __attribute__((format(printf,1,2)));
a0d0e21e 79void deb_growlevel _((void));
11343788 80I32 debop _((OP* o));
a0d0e21e 81I32 debstackptrs _((void));
82#ifdef DEBUGGING
83void debprofdump _((void));
84#endif
85I32 debstack _((void));
fc36a67e 86char* delimcpy _((char* to, char* toend, char* from, char* fromend,
87 int delim, I32* retlen));
a0d0e21e 88void deprecate _((char* s));
fc36a67e 89OP* die _((const char* pat,...));
a0d0e21e 90OP* die_where _((char* message));
91void dounwind _((I32 cxix));
92bool do_aexec _((SV* really, SV** mark, SV** sp));
93void do_chop _((SV* asv, SV* sv));
45b989d7 94bool do_close _((GV* gv, bool not_implicit));
a0d0e21e 95bool do_eof _((GV* gv));
96bool do_exec _((char* cmd));
97void do_execfree _((void));
98#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
99I32 do_ipcctl _((I32 optype, SV** mark, SV** sp));
100I32 do_ipcget _((I32 optype, SV** mark, SV** sp));
101#endif
102void do_join _((SV* sv, SV* del, SV** mark, SV** sp));
11343788 103OP* do_kv _((ARGSproto));
a0d0e21e 104#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
105I32 do_msgrcv _((SV** mark, SV** sp));
106I32 do_msgsnd _((SV** mark, SV** sp));
107#endif
c07a80fd 108bool do_open _((GV* gv, char* name, I32 len,
760ac839 109 int as_raw, int rawmode, int rawperm, PerlIO* supplied_fp));
a0d0e21e 110void do_pipe _((SV* sv, GV* rgv, GV* wgv));
760ac839 111bool do_print _((SV* sv, PerlIO* fp));
46fc3d4c 112OP* do_readline _((void));
a0d0e21e 113I32 do_chomp _((SV* sv));
114bool do_seek _((GV* gv, long pos, int whence));
115#if defined(HAS_MSG) || defined(HAS_SEM) || defined(HAS_SHM)
116I32 do_semop _((SV** mark, SV** sp));
117I32 do_shmio _((I32 optype, SV** mark, SV** sp));
118#endif
119void do_sprintf _((SV* sv, I32 len, SV** sarg));
8903cb82 120long do_sysseek _((GV* gv, long pos, int whence));
a0d0e21e 121long do_tell _((GV* gv));
122I32 do_trans _((SV* sv, OP* arg));
123void do_vecset _((SV* sv));
124void do_vop _((I32 optype, SV* sv, SV* left, SV* right));
e50aee73 125I32 dowantarray _((void));
a0d0e21e 126void dump_all _((void));
127void dump_eval _((void));
748a9306 128#ifdef DUMP_FDS /* See util.c */
a0d0e21e 129int dump_fds _((char* s));
130#endif
131void dump_form _((GV* gv));
132void dump_gv _((GV* gv));
8eccb90b 133#ifdef MYMALLOC
c07a80fd 134void dump_mstats _((char* s));
8eccb90b 135#endif
a0d0e21e 136void dump_op _((OP* arg));
137void dump_pm _((PMOP* pm));
138void dump_packsubs _((HV* stash));
139void dump_sub _((GV* gv));
bbce6d69 140void fbm_compile _((SV* sv));
a0d0e21e 141char* fbm_instr _((unsigned char* big, unsigned char* bigend, SV* littlesv));
aeea060c 142#ifdef USE_THREADS
54b9620d 143PADOFFSET find_threadsv _((char *name));
aeea060c 144#endif
a0d0e21e 145OP* force_list _((OP* arg));
46fc3d4c 146OP* fold_constants _((OP* arg));
147char* form _((const char* pat, ...));
a0d0e21e 148void free_tmps _((void));
11343788 149OP* gen_constant_list _((OP* o));
a0d0e21e 150void gp_free _((GV* gv));
151GP* gp_ref _((GP* gp));
152GV* gv_AVadd _((GV* gv));
153GV* gv_HVadd _((GV* gv));
154GV* gv_IOadd _((GV* gv));
54310121 155GV* gv_autoload4 _((HV* stash, char* name, STRLEN len, I32 method));
a0d0e21e 156void gv_check _((HV* stash));
157void gv_efullname _((SV* sv, GV* gv));
ab4ed645 158void gv_efullname3 _((SV* sv, GV* gv, char* prefix));
a0d0e21e 159GV* gv_fetchfile _((char* name));
160GV* gv_fetchmeth _((HV* stash, char* name, STRLEN len, I32 level));
161GV* gv_fetchmethod _((HV* stash, char* name));
dc848c6f 162GV* gv_fetchmethod_autoload _((HV* stash, char* name, I32 autoload));
a0d0e21e 163GV* gv_fetchpv _((char* name, I32 add, I32 sv_type));
164void gv_fullname _((SV* sv, GV* gv));
ab4ed645 165void gv_fullname3 _((SV* sv, GV* gv, char* prefix));
46fc3d4c 166void gv_init _((GV* gv, HV* stash, char* name, STRLEN len, int multi));
a0d0e21e 167HV* gv_stashpv _((char* name, I32 create));
45b989d7 168HV* gv_stashpvn _((char* name, U32 namelen, I32 create));
a0d0e21e 169HV* gv_stashsv _((SV* sv, I32 create));
a0d0e21e 170void hv_clear _((HV* tb));
68dc0745 171void hv_delayfree_ent _((HV* hv, HE* entry));
748a9306 172SV* hv_delete _((HV* tb, char* key, U32 klen, I32 flags));
45b989d7 173SV* hv_delete_ent _((HV* tb, SV* key, I32 flags, U32 hash));
a0d0e21e 174bool hv_exists _((HV* tb, char* key, U32 klen));
45b989d7 175bool hv_exists_ent _((HV* tb, SV* key, U32 hash));
a0d0e21e 176SV** hv_fetch _((HV* tb, char* key, U32 klen, I32 lval));
45b989d7 177HE* hv_fetch_ent _((HV* tb, SV* key, I32 lval, U32 hash));
68dc0745 178void hv_free_ent _((HV* hv, HE* entry));
a0d0e21e 179I32 hv_iterinit _((HV* tb));
180char* hv_iterkey _((HE* entry, I32* retlen));
45b989d7 181SV* hv_iterkeysv _((HE* entry));
a0d0e21e 182HE* hv_iternext _((HV* tb));
45b989d7 183SV* hv_iternextsv _((HV* hv, char** key, I32* retlen));
a0d0e21e 184SV* hv_iterval _((HV* tb, HE* entry));
ab4ed645 185void hv_ksplit _((HV* hv, IV newmax));
a0d0e21e 186void hv_magic _((HV* hv, GV* gv, int how));
187SV** hv_store _((HV* tb, char* key, U32 klen, SV* val, U32 hash));
45b989d7 188HE* hv_store_ent _((HV* tb, SV* key, SV* val, U32 hash));
a0d0e21e 189void hv_undef _((HV* tb));
bbce6d69 190I32 ibcmp _((char* a, char* b, I32 len));
191I32 ibcmp_locale _((char* a, char* b, I32 len));
a0d0e21e 192I32 ingroup _((I32 testgid, I32 effective));
11343788 193void init_stacks _((ARGSproto));
bbce6d69 194U32 intro_my _((void));
a0d0e21e 195char* instr _((char* big, char* little));
8eccb90b 196bool io_close _((IO* io));
a0d0e21e 197OP* invert _((OP* cmd));
198OP* jmaybe _((OP* arg));
199I32 keyword _((char* d, I32 len));
200void leave_scope _((I32 base));
201void lex_end _((void));
46fc3d4c 202void lex_start _((SV* line));
11343788 203OP* linklist _((OP* o));
a0d0e21e 204OP* list _((OP* o));
205OP* listkids _((OP* o));
206OP* localize _((OP* arg, I32 lexical));
207I32 looks_like_number _((SV* sv));
208int magic_clearenv _((SV* sv, MAGIC* mg));
3e3baf6d 209int magic_clear_all_env _((SV* sv, MAGIC* mg));
a0d0e21e 210int magic_clearpack _((SV* sv, MAGIC* mg));
45b989d7 211int magic_clearsig _((SV* sv, MAGIC* mg));
5f05dabc 212int magic_existspack _((SV* sv, MAGIC* mg));
68dc0745 213int magic_freedefelem _((SV* sv, MAGIC* mg));
c277df42 214int magic_freeregexp _((SV* sv, MAGIC* mg));
a0d0e21e 215int magic_get _((SV* sv, MAGIC* mg));
216int magic_getarylen _((SV* sv, MAGIC* mg));
68dc0745 217int magic_getdefelem _((SV* sv, MAGIC* mg));
a0d0e21e 218int magic_getglob _((SV* sv, MAGIC* mg));
68dc0745 219int magic_getpack _((SV* sv, MAGIC* mg));
a0d0e21e 220int magic_getpos _((SV* sv, MAGIC* mg));
45b989d7 221int magic_getsig _((SV* sv, MAGIC* mg));
a0d0e21e 222int magic_gettaint _((SV* sv, MAGIC* mg));
223int magic_getuvar _((SV* sv, MAGIC* mg));
224U32 magic_len _((SV* sv, MAGIC* mg));
f93b4edd 225#ifdef USE_THREADS
226int magic_mutexfree _((SV* sv, MAGIC* mg));
227#endif /* USE_THREADS */
a0d0e21e 228int magic_nextpack _((SV* sv, MAGIC* mg, SV* key));
229int magic_set _((SV* sv, MAGIC* mg));
230#ifdef OVERLOAD
231int magic_setamagic _((SV* sv, MAGIC* mg));
232#endif /* OVERLOAD */
233int magic_setarylen _((SV* sv, MAGIC* mg));
234int magic_setbm _((SV* sv, MAGIC* mg));
235int magic_setdbline _((SV* sv, MAGIC* mg));
44a8e56a 236#ifdef USE_LOCALE_COLLATE
bbce6d69 237int magic_setcollxfrm _((SV* sv, MAGIC* mg));
44a8e56a 238#endif
68dc0745 239int magic_setdefelem _((SV* sv, MAGIC* mg));
a0d0e21e 240int magic_setenv _((SV* sv, MAGIC* mg));
55497cff 241int magic_setfm _((SV* sv, MAGIC* mg));
a0d0e21e 242int magic_setisa _((SV* sv, MAGIC* mg));
243int magic_setglob _((SV* sv, MAGIC* mg));
244int magic_setmglob _((SV* sv, MAGIC* mg));
ab4ed645 245int magic_setnkeys _((SV* sv, MAGIC* mg));
a0d0e21e 246int magic_setpack _((SV* sv, MAGIC* mg));
247int magic_setpos _((SV* sv, MAGIC* mg));
248int magic_setsig _((SV* sv, MAGIC* mg));
249int magic_setsubstr _((SV* sv, MAGIC* mg));
250int magic_settaint _((SV* sv, MAGIC* mg));
251int magic_setuvar _((SV* sv, MAGIC* mg));
252int magic_setvec _((SV* sv, MAGIC* mg));
fb73857a 253int magic_set_all_env _((SV* sv, MAGIC* mg));
93965878 254U32 magic_sizepack _((SV* sv, MAGIC* mg));
a0d0e21e 255int magic_wipepack _((SV* sv, MAGIC* mg));
256void magicname _((char* sym, char* name, I32 namlen));
257int main _((int argc, char** argv, char** env));
a0d0e21e 258void markstack_grow _((void));
5f05dabc 259#ifdef USE_LOCALE_COLLATE
46fc3d4c 260char* mem_collxfrm _((const char* s, STRLEN len, STRLEN* xlen));
5f05dabc 261#endif
71be2cbc 262char* mess _((const char* pat, va_list* args));
a0d0e21e 263int mg_clear _((SV* sv));
46fc3d4c 264int mg_copy _((SV* , SV* , char* , I32));
a0d0e21e 265MAGIC* mg_find _((SV* sv, int type));
266int mg_free _((SV* sv));
267int mg_get _((SV* sv));
268U32 mg_len _((SV* sv));
269void mg_magical _((SV* sv));
270int mg_set _((SV* sv));
93965878 271I32 mg_size _((SV* sv));
11343788 272OP* mod _((OP* o, I32 type));
a0d0e21e 273char* moreswitches _((char* s));
5dc0d613 274OP* my _((OP* o));
5f05dabc 275#if !defined(HAS_BCOPY) || !defined(HAS_SAFE_BCOPY)
a0d0e21e 276char* my_bcopy _((char* from, char* to, I32 len));
5f05dabc 277#endif
a0d0e21e 278#if !defined(HAS_BZERO) && !defined(HAS_MEMSET)
279char* my_bzero _((char* loc, I32 len));
85e6fe83 280#endif
748a9306 281void my_exit _((U32 status)) __attribute__((noreturn));
f86702cc 282void my_failure_exit _((void)) __attribute__((noreturn));
11343788 283I32 my_lstat _((ARGSproto));
5f05dabc 284#if !defined(HAS_MEMCMP) || !defined(HAS_SANE_MEMCMP)
36477c24 285I32 my_memcmp _((char* s1, char* s2, I32 len));
a0d0e21e 286#endif
fc36a67e 287#if !defined(HAS_MEMSET)
288void* my_memset _((char* loc, I32 ch, I32 len));
289#endif
760ac839 290I32 my_pclose _((PerlIO* ptr));
291PerlIO* my_popen _((char* cmd, char* mode));
a0d0e21e 292void my_setenv _((char* nam, char* val));
11343788 293I32 my_stat _((ARGSproto));
a0d0e21e 294#ifdef MYSWAP
295short my_swap _((short s));
748a9306 296long my_htonl _((long l));
297long my_ntohl _((long l));
a0d0e21e 298#endif
299void my_unexec _((void));
11343788 300OP* newANONLIST _((OP* o));
301OP* newANONHASH _((OP* o));
4633a7c4 302OP* newANONSUB _((I32 floor, OP* proto, OP* block));
a0d0e21e 303OP* newASSIGNOP _((I32 flags, OP* left, I32 optype, OP* right));
1aef975c 304OP* newCONDOP _((I32 flags, OP* expr, OP* trueop, OP* falseop));
11343788 305void newFORM _((I32 floor, OP* o, OP* block));
a0d0e21e 306OP* newFOROP _((I32 flags, char* label, line_t forline, OP* scalar, OP* expr, OP*block, OP*cont));
307OP* newLOGOP _((I32 optype, I32 flags, OP* left, OP* right));
308OP* newLOOPEX _((I32 type, OP* label));
309OP* newLOOPOP _((I32 flags, I32 debuggable, OP* expr, OP* block));
a0d0e21e 310OP* newNULLLIST _((void));
311OP* newOP _((I32 optype, I32 flags));
11343788 312void newPROG _((OP* o));
a0d0e21e 313OP* newRANGE _((I32 flags, OP* left, OP* right));
314OP* newSLICEOP _((I32 flags, OP* subscript, OP* list));
315OP* newSTATEOP _((I32 flags, char* label, OP* o));
11343788 316CV* newSUB _((I32 floor, OP* o, OP* proto, OP* block));
46fc3d4c 317CV* newXS _((char* name, void (*subaddr)(CV* cv), char* filename));
a0d0e21e 318AV* newAV _((void));
319OP* newAVREF _((OP* o));
320OP* newBINOP _((I32 type, I32 flags, OP* first, OP* last));
c07a80fd 321OP* newCVREF _((I32 flags, OP* o));
a0d0e21e 322OP* newGVOP _((I32 type, I32 flags, GV* gv));
46fc3d4c 323GV* newGVgen _((char* pack));
a0d0e21e 324OP* newGVREF _((I32 type, OP* o));
325OP* newHVREF _((OP* o));
326HV* newHV _((void));
327IO* newIO _((void));
328OP* newLISTOP _((I32 type, I32 flags, OP* first, OP* last));
329OP* newPMOP _((I32 type, I32 flags));
330OP* newPVOP _((I32 type, I32 flags, char* pv));
331SV* newRV _((SV* ref));
fc1ce8cc 332#if !defined(__GNUC__) && (defined(CRIPPLED_CC) || defined(USE_THREADS))
4e35701f 333SV* newRV_noinc _((SV *));
fc1ce8cc 334#endif
79072805 335#ifdef LEAKTEST
a0d0e21e 336SV* newSV _((I32 x, STRLEN len));
79072805 337#else
a0d0e21e 338SV* newSV _((STRLEN len));
79072805 339#endif
a0d0e21e 340OP* newSVREF _((OP* o));
341OP* newSVOP _((I32 type, I32 flags, SV* sv));
342SV* newSViv _((IV i));
343SV* newSVnv _((double n));
344SV* newSVpv _((char* s, STRLEN len));
9da1e3b5 345SV* newSVpvn _((char* s, STRLEN len));
46fc3d4c 346SV* newSVpvf _((const char* pat, ...));
a0d0e21e 347SV* newSVrv _((SV* rv, char* classname));
348SV* newSVsv _((SV* old));
349OP* newUNOP _((I32 type, I32 flags, OP* first));
fb73857a 350OP* newWHILEOP _((I32 flags, I32 debuggable, LOOP* loop,
351 I32 whileline, OP* expr, OP* block, OP* cont));
aeea060c 352#ifdef USE_THREADS
52e1cb5e 353struct perl_thread * new_struct_thread _((struct perl_thread *t));
aeea060c 354#endif
760ac839 355PerlIO* nextargv _((GV* gv));
a0d0e21e 356char* ninstr _((char* big, char* bigend, char* little, char* lend));
46fc3d4c 357OP* oopsCV _((OP* o));
a0d0e21e 358void op_free _((OP* arg));
11343788 359void package _((OP* o));
a0d0e21e 360PADOFFSET pad_alloc _((I32 optype, U32 tmptype));
361PADOFFSET pad_allocmy _((char* name));
362PADOFFSET pad_findmy _((char* name));
363OP* oopsAV _((OP* o));
364OP* oopsHV _((OP* o));
365void pad_leavemy _((I32 fill));
366SV* pad_sv _((PADOFFSET po));
367void pad_free _((PADOFFSET po));
368void pad_reset _((void));
369void pad_swipe _((PADOFFSET po));
11343788 370void peep _((OP* o));
a0d0e21e 371PerlInterpreter* perl_alloc _((void));
372I32 perl_call_argv _((char* subname, I32 flags, char** argv));
373I32 perl_call_method _((char* methname, I32 flags));
374I32 perl_call_pv _((char* subname, I32 flags));
375I32 perl_call_sv _((SV* sv, I32 flags));
a0d0e21e 376void perl_construct _((PerlInterpreter* sv_interp));
748a9306 377void perl_destruct _((PerlInterpreter* sv_interp));
137443ea 378SV* perl_eval_pv _((char* p, I32 croak_on_error));
4633a7c4 379I32 perl_eval_sv _((SV* sv, I32 flags));
a0d0e21e 380void perl_free _((PerlInterpreter* sv_interp));
381SV* perl_get_sv _((char* name, I32 create));
382AV* perl_get_av _((char* name, I32 create));
383HV* perl_get_hv _((char* name, I32 create));
384CV* perl_get_cv _((char* name, I32 create));
45b989d7 385int perl_init_i18nl10n _((int printwarn));
8eccb90b 386int perl_init_i18nl14n _((int printwarn));
46fc3d4c 387void perl_new_collate _((char* newcoll));
388void perl_new_ctype _((char* newctype));
389void perl_new_numeric _((char* newcoll));
36477c24 390void perl_set_numeric_local _((void));
391void perl_set_numeric_standard _((void));
a0d0e21e 392int perl_parse _((PerlInterpreter* sv_interp, void(*xsinit)(void), int argc, char** argv, char** env));
4633a7c4 393void perl_require_pv _((char* pv));
394#define perl_requirepv perl_require_pv
a0d0e21e 395int perl_run _((PerlInterpreter* sv_interp));
396void pidgone _((int pid, int status));
397void pmflag _((U16* pmfl, int ch));
398OP* pmruntime _((OP* pm, OP* expr, OP* repl));
11343788 399OP* pmtrans _((OP* o, OP* expr, OP* repl));
a0d0e21e 400OP* pop_return _((void));
401void pop_scope _((void));
402OP* prepend_elem _((I32 optype, OP* head, OP* tail));
11343788 403void push_return _((OP* o));
a0d0e21e 404void push_scope _((void));
e50aee73 405regexp* pregcomp _((char* exp, char* xend, PMOP* pm));
11343788 406OP* ref _((OP* o, I32 type));
407OP* refkids _((OP* o, I32 type));
a0d0e21e 408void regdump _((regexp* r));
c277df42 409I32 pregexec _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, U32 nosave));
410I32 regexec_flags _((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, void* data, U32 flags));
411 void pregfree _((struct regexp* r));
412regnode*regnext _((regnode* p));
413void regprop _((SV* sv, regnode* o));
a0d0e21e 414void repeatcpy _((char* to, char* from, I32 len, I32 count));
415char* rninstr _((char* big, char* bigend, char* little, char* lend));
ff68c719 416Sighandler_t rsignal _((int, Sighandler_t));
417int rsignal_restore _((int, Sigsave_t*));
418int rsignal_save _((int, Sighandler_t, Sigsave_t*));
419Sighandler_t rsignal_state _((int));
c90c0ff4 420void rxres_free _((void** rsp));
421void rxres_restore _((void** rsp, REGEXP* rx));
422void rxres_save _((void** rsp, REGEXP* rx));
a0d0e21e 423#ifndef HAS_RENAME
424I32 same_dirent _((char* a, char* b));
425#endif
426char* savepv _((char* sv));
427char* savepvn _((char* sv, I32 len));
428void savestack_grow _((void));
429void save_aptr _((AV** aptr));
430AV* save_ary _((GV* gv));
431void save_clearsv _((SV** svp));
432void save_delete _((HV* hv, char* key, I32 klen));
433#ifndef titan /* TitanOS cc can't handle this */
434void save_destructor _((void (*f)(void*), void* p));
435#endif /* titan */
436void save_freesv _((SV* sv));
11343788 437void save_freeop _((OP* o));
a0d0e21e 438void save_freepv _((char* pv));
5f05dabc 439void save_gp _((GV* gv, I32 empty));
a0d0e21e 440HV* save_hash _((GV* gv));
441void save_hptr _((HV** hptr));
55497cff 442void save_I16 _((I16* intp));
a0d0e21e 443void save_I32 _((I32* intp));
444void save_int _((int* intp));
445void save_item _((SV* item));
55497cff 446void save_iv _((IV* iv));
a0d0e21e 447void save_list _((SV** sarg, I32 maxsarg));
46fc3d4c 448void save_long _((long* longp));
a0d0e21e 449void save_nogv _((GV* gv));
462e5cf6 450void save_op _((void));
a0d0e21e 451SV* save_scalar _((GV* gv));
46fc3d4c 452void save_pptr _((char** pptr));
a0d0e21e 453void save_sptr _((SV** sptr));
454SV* save_svref _((SV** sptr));
54b9620d 455SV** save_threadsv _((PADOFFSET i));
a0d0e21e 456OP* sawparens _((OP* o));
457OP* scalar _((OP* o));
11343788 458OP* scalarkids _((OP* o));
a0d0e21e 459OP* scalarseq _((OP* o));
11343788 460OP* scalarvoid _((OP* o));
55497cff 461UV scan_hex _((char* start, I32 len, I32* retlen));
a0d0e21e 462char* scan_num _((char* s));
55497cff 463UV scan_oct _((char* start, I32 len, I32* retlen));
a0d0e21e 464OP* scope _((OP* o));
c277df42 465char* screaminstr _((SV* bigsv, SV* littlesv, I32 start_shift, I32 end_shift, I32 *state, I32 last));
a0d0e21e 466#ifndef VMS
467I32 setenv_getix _((char* nam));
85e6fe83 468#endif
46fc3d4c 469void setdefout _((GV* gv));
71be2cbc 470char* sharepvn _((char* sv, I32 len, U32 hash));
471HEK* share_hek _((char* sv, I32 len, U32 hash));
ecfc5424 472Signal_t sighandler _((int sig));
a0d0e21e 473SV** stack_grow _((SV** sp, SV**p, int n));
ba6d6ac9 474I32 start_subparse _((I32 is_format, U32 flags));
44a8e56a 475void sub_crush_depth _((CV* cv));
a0d0e21e 476bool sv_2bool _((SV* sv));
477CV* sv_2cv _((SV* sv, HV** st, GV** gvp, I32 lref));
478IO* sv_2io _((SV* sv));
479IV sv_2iv _((SV* sv));
480SV* sv_2mortal _((SV* sv));
481double sv_2nv _((SV* sv));
482char* sv_2pv _((SV* sv, STRLEN* lp));
ff68c719 483UV sv_2uv _((SV* sv));
4e35701f 484IV sv_iv _((SV* sv));
485UV sv_uv _((SV* sv));
486double sv_nv _((SV* sv));
487char * sv_pvn _((SV *, STRLEN *));
488I32 sv_true _((SV *));
4633a7c4 489void sv_add_arena _((char* ptr, U32 size, U32 flags));
a0d0e21e 490int sv_backoff _((SV* sv));
491SV* sv_bless _((SV* sv, HV* stash));
46fc3d4c 492void sv_catpvf _((SV* sv, const char* pat, ...));
ef50df4b 493void sv_catpvf_mg _((SV* sv, const char* pat, ...));
a0d0e21e 494void sv_catpv _((SV* sv, char* ptr));
ef50df4b 495void sv_catpv_mg _((SV* sv, char* ptr));
a0d0e21e 496void sv_catpvn _((SV* sv, char* ptr, STRLEN len));
ef50df4b 497void sv_catpvn_mg _((SV* sv, char* ptr, STRLEN len));
a0d0e21e 498void sv_catsv _((SV* dsv, SV* ssv));
ef50df4b 499void sv_catsv_mg _((SV* dsv, SV* ssv));
a0d0e21e 500void sv_chop _((SV* sv, char* ptr));
501void sv_clean_all _((void));
502void sv_clean_objs _((void));
503void sv_clear _((SV* sv));
504I32 sv_cmp _((SV* sv1, SV* sv2));
bbce6d69 505I32 sv_cmp_locale _((SV* sv1, SV* sv2));
5f05dabc 506#ifdef USE_LOCALE_COLLATE
bbce6d69 507char* sv_collxfrm _((SV* sv, STRLEN* nxp));
5f05dabc 508#endif
c277df42 509OP* sv_compile_2op _((SV* sv, OP** startp, char* code, AV** avp));
a0d0e21e 510void sv_dec _((SV* sv));
511void sv_dump _((SV* sv));
55497cff 512bool sv_derived_from _((SV* sv, char* name));
a0d0e21e 513I32 sv_eq _((SV* sv1, SV* sv2));
514void sv_free _((SV* sv));
4633a7c4 515void sv_free_arenas _((void));
760ac839 516char* sv_gets _((SV* sv, PerlIO* fp, I32 append));
93a17b20 517#ifndef DOSISH
a0d0e21e 518char* sv_grow _((SV* sv, I32 newlen));
93a17b20 519#else
a0d0e21e 520char* sv_grow _((SV* sv, unsigned long newlen));
93a17b20 521#endif
a0d0e21e 522void sv_inc _((SV* sv));
523void sv_insert _((SV* bigsv, STRLEN offset, STRLEN len, char* little, STRLEN littlelen));
524int sv_isa _((SV* sv, char* name));
525int sv_isobject _((SV* sv));
526STRLEN sv_len _((SV* sv));
527void sv_magic _((SV* sv, SV* obj, int how, char* name, I32 namlen));
528SV* sv_mortalcopy _((SV* oldsv));
529SV* sv_newmortal _((void));
530SV* sv_newref _((SV* sv));
46fc3d4c 531char* sv_peek _((SV* sv));
532char* sv_pvn_force _((SV* sv, STRLEN* lp));
a0d0e21e 533char* sv_reftype _((SV* sv, int ob));
534void sv_replace _((SV* sv, SV* nsv));
535void sv_report_used _((void));
536void sv_reset _((char* s, HV* stash));
46fc3d4c 537void sv_setpvf _((SV* sv, const char* pat, ...));
ef50df4b 538void sv_setpvf_mg _((SV* sv, const char* pat, ...));
a0d0e21e 539void sv_setiv _((SV* sv, IV num));
ef50df4b 540void sv_setiv_mg _((SV* sv, IV num));
84902520 541void sv_setpviv _((SV* sv, IV num));
ef50df4b 542void sv_setpviv_mg _((SV* sv, IV num));
55497cff 543void sv_setuv _((SV* sv, UV num));
ef50df4b 544void sv_setuv_mg _((SV* sv, UV num));
a0d0e21e 545void sv_setnv _((SV* sv, double num));
ef50df4b 546void sv_setnv_mg _((SV* sv, double num));
46fc3d4c 547SV* sv_setref_iv _((SV* rv, char* classname, IV iv));
548SV* sv_setref_nv _((SV* rv, char* classname, double nv));
549SV* sv_setref_pv _((SV* rv, char* classname, void* pv));
550SV* sv_setref_pvn _((SV* rv, char* classname, char* pv, I32 n));
71be2cbc 551void sv_setpv _((SV* sv, const char* ptr));
ef50df4b 552void sv_setpv_mg _((SV* sv, const char* ptr));
71be2cbc 553void sv_setpvn _((SV* sv, const char* ptr, STRLEN len));
ef50df4b 554void sv_setpvn_mg _((SV* sv, const char* ptr, STRLEN len));
a0d0e21e 555void sv_setsv _((SV* dsv, SV* ssv));
ef50df4b 556void sv_setsv_mg _((SV* dsv, SV* ssv));
bbce6d69 557void sv_taint _((SV* sv));
558bool sv_tainted _((SV* sv));
a0d0e21e 559int sv_unmagic _((SV* sv, int type));
560void sv_unref _((SV* sv));
bbce6d69 561void sv_untaint _((SV* sv));
a0d0e21e 562bool sv_upgrade _((SV* sv, U32 mt));
563void sv_usepvn _((SV* sv, char* ptr, STRLEN len));
ef50df4b 564void sv_usepvn_mg _((SV* sv, char* ptr, STRLEN len));
46fc3d4c 565void sv_vcatpvfn _((SV* sv, const char* pat, STRLEN patlen,
566 va_list* args, SV** svargs, I32 svmax,
567 bool *used_locale));
568void sv_vsetpvfn _((SV* sv, const char* pat, STRLEN patlen,
569 va_list* args, SV** svargs, I32 svmax,
570 bool *used_locale));
a0d0e21e 571void taint_env _((void));
71be2cbc 572void taint_proper _((const char* f, char* s));
16d20bd9 573#ifdef UNLINK_ALL_VERSIONS
a0d0e21e 574I32 unlnk _((char* f));
16d20bd9 575#endif
77a005ab 576#ifdef USE_THREADS
577void unlock_condpair _((void* svv));
578#endif
71be2cbc 579void unsharepvn _((char* sv, I32 len, U32 hash));
580void unshare_hek _((HEK* hek));
45b989d7 581void utilize _((int aver, I32 floor, OP* version, OP* id, OP* arg));
68dc0745 582void vivify_defelem _((SV* sv));
583void vivify_ref _((SV* sv, U32 to_what));
a0d0e21e 584I32 wait4pid _((int pid, int* statusp, int flags));
fc36a67e 585void warn _((const char* pat,...));
46fc3d4c 586void watch _((char** addr));
a0d0e21e 587I32 whichsig _((char* sig));
588int yyerror _((char* s));
589int yylex _((void));
590int yyparse _((void));
591int yywarn _((char* s));
55497cff 592
bbce6d69 593#ifndef MYMALLOC
594Malloc_t safemalloc _((MEM_SIZE nbytes));
595Malloc_t safecalloc _((MEM_SIZE elements, MEM_SIZE size));
596Malloc_t saferealloc _((Malloc_t where, MEM_SIZE nbytes));
597Free_t safefree _((Malloc_t where));
598#endif
599
55497cff 600#ifdef LEAKTEST
601Malloc_t safexmalloc _((I32 x, MEM_SIZE size));
602Malloc_t safexcalloc _((I32 x, MEM_SIZE elements, MEM_SIZE size));
603Malloc_t safexrealloc _((Malloc_t where, MEM_SIZE size));
604void safexfree _((Malloc_t where));
605#endif
22239a37 606
607#ifdef PERL_GLOBAL_STRUCT
608struct perl_vars *Perl_GetVars _((void));
609#endif
610
611END_EXTERN_C