perl 5.0 alpha 3
[p5sagit/p5-mst-13.2.git] / proto.h
CommitLineData
93a17b20 1OP* CopDBadd P((OP* cur));
2OP* add_label P((char* lbl, OP* cmd));
3OP* addcond P((OP* cmd, OP* arg));
4OP* addflags P((I32 i, I32 flags, OP* arg));
5OP* addloop P((OP* cmd, OP* arg));
6OP* append_elem P((I32 optype, OP* head, OP* tail));
7OP* append_list P((I32 optype, LISTOP* first, LISTOP* last));
8I32 apply P((I32 type, SV** mark, SV** sp));
9void av_clear P((AV* ar));
10AV* av_fake P((I32 size, SV** strp));
11SV** av_fetch P((AV* ar, I32 key, I32 lval));
12void av_fill P((AV* ar, I32 fill));
13void av_free P((AV* ar));
14I32 av_len P((AV* ar));
15AV* av_make P((I32 size, SV** strp));
16SV* av_pop P((AV* ar));
17void av_popnulls P((AV* ar));
18bool av_push P((AV* ar, SV* val));
19SV* av_shift P((AV* ar));
20SV** av_store P((AV* ar, I32 key, SV* val));
21void av_undef P((AV* ar));
22void av_unshift P((AV* ar, I32 num));
23OP* bind_match P((I32 type, OP* left, OP* pat));
24OP* block_head P((OP* o, OP** startp));
25void calllist P((AV* list));
26I32 cando P((I32 bit, I32 effective, struct stat* statbufp));
27unsigned long cast_ulong P((double f));
28void checkcomma P((char* s, char* name, char* what));
29I32 chsize P((int fd, off_t length));
30OP* convert P((I32 optype, I32 flags, OP* op));
31OP* cop_to_arg P((OP* cmd));
32I32 copyopt P((OP* cmd, OP* which));
33void cpy7bit P((char* d, char* s, I32 l));
34char* cpytill P((char* to, char* from, char* fromend, I32 delim, I32* retlen));
35void cryptfilter P((FILE* fil));
36void cryptswitch P((void));
37void deb P((va_alist));
38void deb_growlevel P((void));
39OP* die P((va_alist));
40OP* die_where P((char* message));
41void do_accept P((SV* sv, GV* ngv, GV* ggv));
42bool do_aexec P((SV* really, SV** mark, SV** sp));
43void do_chop P((SV* astr, SV* sv));
44bool do_close P((GV* gv, bool explicit));
45int do_ctl P((I32 optype, GV* gv, I32 func, SV* argstr));
46bool do_eof P((GV* gv));
47bool do_exec P((char* cmd));
48void do_execfree P((void));
49SV* do_fttext P((OP* arg, SV* sv));
50I32 do_ipcctl P((I32 optype, SV** mark, SV** sp));
51I32 do_ipcget P((I32 optype, SV** mark, SV** sp));
52void do_join P((SV* sv, SV* del, SV** mark, SV** sp));
53OP* do_kv P(());
54I32 do_msgrcv P((SV** mark, SV** sp));
55I32 do_msgsnd P((SV** mark, SV** sp));
56bool do_open P((GV* gv, char* name, I32 len));
57void do_pipe P((SV* sv, GV* rgv, GV* wgv));
58bool do_print P((SV* sv, FILE* fp));
59bool do_seek P((GV* gv, long pos, int whence));
60I32 do_semop P((SV** mark, SV** sp));
61I32 do_shmio P((I32 optype, SV** mark, SV** sp));
62void do_sprintf P((SV* sv, int len, SV** sarg));
63OP* do_subr P((void));
64long do_tell P((GV* gv));
65I32 do_trans P((SV* sv, OP* arg));
66void do_vecset P((SV* sv));
67void do_vop P((I32 optype, SV* sv, SV* left, SV* right));
68void do_write P((struct Outrec* orec, GV* gv));
69void dump_all P((void));
70void dump_cop P((OP* cmd, OP* alt));
71void dump_eval P(());
72 dump_fds P((char* s));
73void dump_flags P((char* b, U32 flags));
74void dump_gv P((GV* gv));
75void dump_op P((OP* arg));
76void dump_pm P((PMOP* pm));
77void dump_sub P((GV* gv));
79072805 78 dup2 P((int oldfd, int newfd));
93a17b20 79void fbm_compile P((SV* sv, I32 iflag));
80char* fbm_instr P((unsigned char* big, unsigned char* bigend, SV* littlestr));
81IO* fetch_io P((OP* op, I32 num));
82GV* fetch_gv P((OP* op, I32 num));
83OP* flatten P((OP* arg));
84void force_ident P((char* s));
85char* force_word P((char* s, int token));
86OP* forcelist P((OP* arg));
79072805 87void free_tmps P((void));
93a17b20 88OP* gen_constant_list P((OP* op));
79072805 89I32 getgimme P((OP*op));
90void gp_free P((GV* gv));
93a17b20 91GP* gp_ref P((GP* gp));
92GV* gv_AVadd P((GV* gv));
93GV* gv_HVadd P((GV* gv));
94void gv_check P((I32 min, I32 max));
95void gv_efullname P((SV* sv, GV* gv));
96GV* gv_fetchfile P((char* name));
97GV* gv_fetchmethod P((HV* stash, char* name));
98GV* gv_fetchpv P((char* name, I32 add));
99void gv_fullname P((SV* sv, GV* gv));
100STRLEN gv_len P((SV* sv));
101SV* gv_str P((SV* sv));
102OP* gv_to_op P((I32 atype, GV* gv));
103void he_delayfree P((HE* hent));
104void he_free P((HE* hent));
105void hoistmust P((PMOP* pm));
106void hv_clear P((HV* tb, I32 dodbm));
107void hv_dbmclose P((HV* tb));
108bool hv_dbmopen P((HV* tb, char* fname, int mode));
109bool hv_dbmstore P((HV* tb, char* key, U32 klen, SV* sv));
110SV* hv_delete P((HV* tb, char* key, U32 klen));
111SV** hv_fetch P((HV* tb, char* key, U32 klen, I32 lval));
112void hv_free P((HV* tb, I32 dodbm));
113I32 hv_iterinit P((HV* tb));
114char* hv_iterkey P((HE* entry, I32* retlen));
115HE* hv_iternext P((HV* tb));
116SV* hv_iterval P((HV* tb, HE* entry));
117void hv_magic P((HV* hv, GV* gv, I32 how));
118SV** hv_store P((HV* tb, char* key, U32 klen, SV* val, U32 hash));
119void hv_undef P((HV* tb, I32 dodbm));
120I32 ibcmp P((char* a, char* b, I32 len));
121I32 ingroup P((int testgid, I32 effective));
122char* instr P((char* big, char* little));
123OP* invert P((OP* cmd));
124OP* jmaybe P((OP* arg));
125I32 keyword P((char* d, I32 len));
126void leave_scope P((I32 base));
127OP* linklist P((OP* op));
128OP* list P((OP* o));
129OP* listkids P((OP* o));
130OP* localize P((OP* arg, I32 lexical));
131I32 looks_like_number P((SV* sv));
132OP* loopscope P((OP* o));
133I32 lop P((I32 f, char* s));
79072805 134int magic_get P((SV* sv, MAGIC* mg));
135int magic_getarylen P((SV* sv, MAGIC* mg));
136int magic_getglob P((SV* sv, MAGIC* mg));
137int magic_getuvar P((SV* sv, MAGIC* mg));
93a17b20 138U32 magic_len P((SV* sv, MAGIC* mg));
79072805 139int magic_set P((SV* sv, MAGIC* mg));
140int magic_setarylen P((SV* sv, MAGIC* mg));
141int magic_setbm P((SV* sv, MAGIC* mg));
142int magic_setdbline P((SV* sv, MAGIC* mg));
143int magic_setdbm P((SV* sv, MAGIC* mg));
144int magic_setenv P((SV* sv, MAGIC* mg));
145int magic_setglob P((SV* sv, MAGIC* mg));
93a17b20 146int magic_setmglob P((SV* sv, MAGIC* mg));
79072805 147int magic_setsig P((SV* sv, MAGIC* mg));
148int magic_setsubstr P((SV* sv, MAGIC* mg));
149int magic_setuvar P((SV* sv, MAGIC* mg));
150int magic_setvec P((SV* sv, MAGIC* mg));
93a17b20 151void magicalize P((char* list));
152void magicname P((char* sym, char* name, I32 namlen));
153 main P((int argc, char** argv, char** env));
154#ifndef STANDARD_C
155MALLOCPTRTYPE* malloc P((MEM_SIZE nbytes));
156#endif
157OP* maybeforcelist P((I32 optype, OP* arg));
158char* mess P((char* pat, ...));
159int mg_clear P((SV* sv));
160MAGIC* mg_find P((SV* sv, char type));
161int mg_free P((SV* sv, char type));
162int mg_freeall P((SV* sv));
163int mg_get P((SV* sv));
164U32 mg_len P((SV* sv));
165int mg_set P((SV* sv));
166char* moreswitches P((char* s));
167void mstats P((char* s));
168char* my_bcopy P((char* from, char* to, I32 len));
169char* my_bzero P((char* loc, I32 len));
170void my_exit P((I32 status));
171I32 my_lstat P(());
172I32 my_memcmp P((unsigned char* s1, unsigned char* s2, I32 len));
173I32 my_pclose P((FILE* ptr));
174FILE* my_pfiopen P((FILE* fil, VOID (*func)()));
175FILE* my_popen P((char* cmd, char* mode));
176void my_setenv P((char* nam, char* val));
177I32 my_stat P(());
178short my_swap P((short s));
179void my_unexec P((void));
180OP* newANONLIST P((OP* op));
181OP* newANONHASH P((OP* op));
182OP* newASSIGNOP P((I32 flags, OP* left, OP* right));
183OP* newBINOP P((I32 optype, I32 flags, OP* left, OP* right));
184OP* newCONDOP P((I32 flags, OP* expr, OP* true, OP* false));
185void newFORM P((I32 floor, OP* op, OP* block));
186OP* newFOROP P((I32 flags, char* label, line_t forline, OP* scalar, OP* expr, OP*block, OP*cont));
187HV* newHV P((U32 lookat));
188OP* newLOGOP P((I32 optype, I32 flags, OP* left, OP* right));
189OP* newLOOPOP P((I32 flags, I32 debuggable, OP* expr, OP* block));
190OP* newMETHOD P((OP* ref, OP* name));
191OP* newNAMEOP P((OP* o));
192OP* newNULLLIST P((void));
193OP* newOP P((I32 optype, I32 flags));
194OP* newRANGE P((I32 flags, OP* left, OP* right));
195OP* newSLICEOP P((I32 flags, OP* subscript, OP* list));
196OP* newSTATEOP P((I32 flags, char* label, OP* o));
197void newSUB P((I32 floor, OP* op, OP* block));
198OP* newUNOP P((I32 optype, I32 flags, OP* child));
199AV* newAV P((void));
200OP* newAVREF P((OP* o));
201OP* newBINOP P((I32 type, I32 flags, OP* first, OP* last));
202OP* newCVREF P((OP* o));
203OP* newGVOP P((I32 type, I32 flags, GV* gv));
204GV* newGVgen P((void));
205OP* newGVREF P((OP* o));
206OP* newHVREF P((OP* o));
207HV* newHV P((U32 lookat));
208IO* newIO P((void));
209OP* newLISTOP P((I32 type, I32 flags, OP* first, OP* last));
210OP* newPMOP P((I32 type, I32 flags));
211OP* newPVOP P((I32 type, I32 flags, char* pv));
79072805 212#ifdef LEAKTEST
93a17b20 213SV* newSV P((I32 x, STRLEN len));
79072805 214#else
93a17b20 215SV* newSV P((STRLEN len));
79072805 216#endif
93a17b20 217OP* newSVREF P((OP* o));
218OP* newSVOP P((I32 type, I32 flags, SV* sv));
219SV* newSViv P((I32 i));
220SV* newSVnv P((double n));
221SV* newSVpv P((char* s, STRLEN len));
222SV* newSVsv P((SV* old));
223OP* newUNOP P((I32 type, I32 flags, OP* first));
224FILE* nextargv P((GV* gv));
225char* ninstr P((char* big, char* bigend, char* little, char* lend));
226char* nsavestr P((char* sv, I32 len));
227void op_behead P((OP* arg));
228OP* op_fold_const P((OP* arg));
229void op_free P((OP* arg));
230void op_optimize P((OP* cmd, I32 fliporflop, I32 acmd));
231OP* over P((GV* eachgv, OP* cmd));
232PADOFFSET pad_alloc P((I32 optype, char tmptype));
233PADOFFSET pad_allocmy P((char* name));
234PADOFFSET pad_findmy P((char* name));
235void pad_leavemy P((I32 fill));
236SV* pad_sv P((PADOFFSET po));
79072805 237void pad_free P((PADOFFSET po));
238void pad_reset P((void));
239void pad_swipe P((PADOFFSET po));
93a17b20 240OP* parse_list P((SV* sv));
241void peep P((OP* op));
242PerlInterpreter* perl_alloc P((void));
243I32 perl_callback P((char* subname, I32 sp, I32 gimme, I32 hasargs, I32 numargs));
244I32 perl_callv P((char* subname, I32 sp, I32 gimme, char** argv));
245void perl_construct P((PerlInterpreter* sv_interp));
246void perl_destruct P((PerlInterpreter* sv_interp));
247void perl_free P((PerlInterpreter* sv_interp));
248I32 perl_parse P((PerlInterpreter* sv_interp, int argc, char** argv, char** env));
249I32 perl_run P((PerlInterpreter* sv_interp));
250void pidgone P((int pid, int status));
251OP* pmruntime P((OP* pm, OP* expr, OP* repl));
252OP* pop_return P((void));
253OP* prepend_elem P((I32 optype, OP* head, OP* tail));
79072805 254void push_return P((OP* op));
93a17b20 255void pv_grow P((char** strptr, I32* curlen, I32 newlen));
256OP* rcatmaybe P((OP* arg));
257regexp* regcomp P((char* exp, char* xend, I32 fold));
258OP* ref P((OP* op, I32 type));
259OP* refkids P((OP* op, I32 type));
260void regdump P((regexp* r));
261I32 regexec P((regexp* prog, char* stringarg, char* strend, char* strbeg, I32 minend, SV* screamer, I32 safebase));
262void regfree P((struct regexp* r));
263char* regnext P((char* p));
264char* regprop P((char* op));
79072805 265void reinit_lexer P((void));
93a17b20 266void repeatcpy P((char* to, char* from, I32 len, I32 count));
267char* rninstr P((char* big, char* bigend, char* little, char* lend));
268void run_format P((struct Outrec* orec, FF* fcmd));
79072805 269#ifndef safemalloc
93a17b20 270void safefree P((char* where));
271char* safemalloc P((MEM_SIZE size));
272char* saferealloc P((char* where, unsigned long size));
79072805 273#endif
93a17b20 274void safexfree P((char* where));
275char* safexmalloc P((I32 x, MEM_SIZE size));
276char* safexrealloc P((char* where, MEM_SIZE size));
277I32 same_dirent P((char* a, char* b));
79072805 278void savestack_grow P((void));
93a17b20 279void save_aptr P((AV** aptr));
280AV* save_ary P((GV* gv));
281HV* save_hash P((GV* gv));
282void save_hptr P((HV** hptr));
283void save_I32 P((I32* intp));
284void save_int P((int* intp));
285void save_item P((SV* item));
286void save_lines P((AV* array, SV* sv));
287void save_list P((SV** sarg, I32 maxsarg));
288void save_nogv P((GV* gv));
289SV* save_scalar P((GV* gv));
290void save_sptr P((SV** sptr));
291SV* save_svref P((SV** sptr));
292char* savestr P((char* sv));
293OP* sawparens P((OP* o));
294OP* scalar P((OP* o));
295OP* scalarkids P((OP* op));
296OP* scalarseq P((OP* o));
297OP* scalarvoid P((OP* op));
298char* scan_formline P((char* s));
299unsigned long scan_hex P((char* start, I32 len, I32* retlen));
300char* scan_heredoc P((char* s));
301char* scan_inputsymbol P((char* s));
302char* scan_ident P((char* s, char* send, char* dest, I32 ck_uni));
303char* scan_num P((char* s));
304unsigned long scan_oct P((char* start, I32 len, I32* retlen));
305char* scan_pat P((char* s));
306void scan_prefix P((PMOP* pm, char* string, I32 len));
307char* scan_str P((char* start));
308char* scan_subst P((char* start));
309char* scan_trans P((char* start));
310OP* scope P((OP* o));
311char* screaminstr P((SV* bigstr, SV* littlestr));
312I32 setenv_getix P((char* nam));
313char* skipspace P((char* s));
314CV* sv_2cv P((SV* sv, HV** st, GV** gvp, I32 lref));
315I32 sv_2iv P((SV* sv));
316SV* sv_2mortal P((SV* sv));
317double sv_2nv P((SV* sv));
318char* sv_2pv P((SV* sv));
319char* sv_append_till P((SV* sv, char* from, char* fromend, I32 delim, char* keeplist));
320int sv_backoff P((SV* sv));
321void sv_catpv P((SV* sv, char* ptr));
322void sv_catpvn P((SV* sv, char* ptr, STRLEN len));
323void sv_catsv P((SV* dstr, SV* sstr));
324void sv_chop P((SV* sv, char* ptr));
325void sv_clear P((SV* sv));
326I32 sv_cmp P((SV* str1, SV* str2));
327void sv_dec P((SV* sv));
328I32 sv_eq P((SV* str1, SV* str2));
329void sv_free P((SV* sv));
330char* sv_gets P((SV* sv, FILE* fp, I32 append));
331#ifndef DOSISH
332char* sv_grow P((SV* sv, I32 newlen));
333#else
334char* sv_grow P((SV* sv, unsigned long newlen));
335#endif
336void sv_inc P((SV* sv));
337void sv_insert P((SV* bigstr, STRLEN offset, STRLEN len, char* little, STRLEN littlelen));
338SV* sv_interp P((SV* sv, SV* src, I32 sp));
339void sv_intrpcompile P((SV* src));
340STRLEN sv_len P((SV* sv));
341void sv_magic P((SV* sv, SV* obj, char how, char* name, STRLEN namlen));
342SV* sv_mortalcopy P((SV* oldstr));
343SV* sv_ref P((SV* sv));
344void sv_replace P((SV* sv, SV* nstr));
345void sv_reset P((char* s, HV* stash));
346void sv_setiv P((SV* sv, I32 num));
347void sv_setnv P((SV* sv, double num));
348void sv_setpv P((SV* sv, char* ptr));
349void sv_setpvn P((SV* sv, char* ptr, STRLEN len));
350void sv_setsv P((SV* dstr, SV* sstr));
351void taint_env P((void));
352void taint_proper P((char* f, char* s));
353I32 uni P((I32 f, char* s));
354I32 unlnk P((char* f));
355I32 userinit P((void));
356I32 wait4pid P((int pid, int* statusp, int flags));
357void warn P((va_alist));
358I32 whichsig P((char* sig));
359void while_io P((OP* cmd));
360OP* wopt P((OP* cmd));
361int yyerror P((char* s));
362int yylex P((void));
363int yyparse P((void));