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