This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] Tests are good
[perl5.git] / pod / perlintern.pod
CommitLineData
954c1994
GS
1=head1 NAME
2
1c846c1f 3perlintern - autogenerated documentation of purely B<internal>
954c1994
GS
4 Perl functions
5
6=head1 DESCRIPTION
7
1c846c1f 8This file is the autogenerated documentation of functions in the
4375e838 9Perl interpreter that are documented using Perl's internal documentation
1c846c1f 10format but are not marked as part of the Perl API. In other words,
954c1994
GS
11B<they are not for use in extensions>!
12
13=over 8
14
a8586c98
JH
15=item djSP
16
17Declare Just C<SP>. This is actually identical to C<dSP>, and declares
18a local copy of perl's stack pointer, available via the C<SP> macro.
19See C<SP>. (Available for backward source code compatibility with the
20old (Perl 5.005) thread model.)
21
22 djSP;
23
24=for hackers
25Found in file pp.h
26
c9d5ac95
GS
27=item is_gv_magical
28
29Returns C<TRUE> if given the name of a magical GV.
30
31Currently only useful internally when determining if a GV should be
32created even in rvalue contexts.
33
34C<flags> is not used at present but available for future extension to
35allow selecting particular classes of magical variable.
36
37 bool is_gv_magical(char *name, STRLEN len, U32 flags)
38
497711e7
GS
39=for hackers
40Found in file gv.c
41
78f9721b
SM
42=item LVRET
43
44True if this op will be the return value of an lvalue subroutine
45
46=for hackers
47Found in file pp.h
48
2eb25c99
JH
49=item PL_DBsingle
50
51When Perl is run in debugging mode, with the B<-d> switch, this SV is a
52boolean which indicates whether subs are being single-stepped.
53Single-stepping is automatically turned on after every step. This is the C
54variable which corresponds to Perl's $DB::single variable. See
55C<PL_DBsub>.
56
57 SV * PL_DBsingle
58
59=for hackers
60Found in file intrpvar.h
61
62=item PL_DBsub
63
64When Perl is run in debugging mode, with the B<-d> switch, this GV contains
65the SV which holds the name of the sub being debugged. This is the C
66variable which corresponds to Perl's $DB::sub variable. See
67C<PL_DBsingle>.
68
69 GV * PL_DBsub
70
71=for hackers
72Found in file intrpvar.h
73
74=item PL_DBtrace
75
76Trace variable used when Perl is run in debugging mode, with the B<-d>
77switch. This is the C variable which corresponds to Perl's $DB::trace
78variable. See C<PL_DBsingle>.
79
80 SV * PL_DBtrace
81
82=for hackers
83Found in file intrpvar.h
84
85=item PL_dowarn
86
87The C variable which corresponds to Perl's $^W warning variable.
88
89 bool PL_dowarn
90
91=for hackers
92Found in file intrpvar.h
93
94=item PL_last_in_gv
95
96The GV which was last used for a filehandle input operation. (C<< <FH> >>)
97
98 GV* PL_last_in_gv
99
100=for hackers
101Found in file thrdvar.h
102
103=item PL_ofs_sv
104
105The output field separator - C<$,> in Perl space.
106
107 SV* PL_ofs_sv
108
109=for hackers
110Found in file thrdvar.h
111
112=item PL_rs
113
114The input record separator - C<$/> in Perl space.
115
116 SV* PL_rs
117
118=for hackers
119Found in file thrdvar.h
120
645c22ef
DM
121=item report_uninit
122
123Print appropriate "Use of uninitialized variable" warning
124
125 void report_uninit()
126
127=for hackers
128Found in file sv.c
129
a8586c98
JH
130=item start_glob
131
132Function called by C<do_readline> to spawn a glob (or do the glob inside
133perl on VMS). This code used to be inline, but now perl uses C<File::Glob>
bd16a5f0 134this glob starter is only used by miniperl during the build process.
a8586c98
JH
135Moving it away shrinks pp_hot.c; shrinking pp_hot.c helps speed perl up.
136
137 PerlIO* start_glob(SV* pattern, IO *io)
138
139=for hackers
140Found in file doio.c
141
645c22ef
DM
142=item sv_add_arena
143
144Given a chunk of memory, link it to the head of the list of arenas,
145and split it into a list of free SVs.
146
147 void sv_add_arena(char* ptr, U32 size, U32 flags)
148
149=for hackers
150Found in file sv.c
151
152=item sv_clean_all
153
154Decrement the refcnt of each remaining SV, possibly triggering a
155cleanup. This function may have to be called multiple times to free
8fb26106 156SVs which are in complex self-referential hierarchies.
645c22ef
DM
157
158 I32 sv_clean_all()
159
160=for hackers
161Found in file sv.c
162
163=item sv_clean_objs
164
165Attempt to destroy all objects not yet freed
166
167 void sv_clean_objs()
168
169=for hackers
170Found in file sv.c
171
172=item sv_free_arenas
173
174Deallocate the memory used by all arenas. Note that all the individual SV
175heads and bodies within the arenas must already have been freed.
176
177 void sv_free_arenas()
178
179=for hackers
180Found in file sv.c
181
954c1994
GS
182=back
183
184=head1 AUTHORS
185
1c846c1f
NIS
186The autodocumentation system was originally added to the Perl core by
187Benjamin Stuhl. Documentation is by whoever was kind enough to
954c1994
GS
188document their functions.
189
190=head1 SEE ALSO
191
192perlguts(1), perlapi(1)
193