avoid memory leak in toke_scan_str
[p5sagit/Devel-Declare.git] / Changes
1 Changes for Devel-Declare
2
3   - Depend on B::Hooks::OP::Check version 0.19, which fixes a serious bug in
4     how it interacts with other modules that hook ops.
5   - Detect and croak if unwanted reallocation occurs during toke_scan_str.
6   - Avoid memory leak in toke_scan_str.
7   - Add MYMETA.{json,yml} to MANIFEST.SKIP and .gitignore.
8
9 0.006006 - 23 Aug 2011
10   - Increase default linestr size to avoid reallocations (Zefram).
11
12 0.006005 - 06 Jul 2011
13   - Add a flag for controlling 'redefined' warnings when installing subs into
14     namespaces (clkao).
15
16 0.006004 - 02 May 2011
17   - Bail out earlier when being called while not lexing (Zefram).
18   - Make sure we continue working with Devel::CallParser loaded (Zefram).
19
20 0.006003 - 12 Apr 2011
21   - Fix test-failures on old perl versions (Zefram).
22
23 0.006002 - 08 Apr 2011
24   - Re-add Support for very early growing of PL_linestr using filters (Zefram).
25
26 0.006001 - 26 Feb 2011
27   - Support perl >= 5.13.7 by re-allocating PL_linestr in block hooks (Zefram).
28
29 0.006000 - 09 Mar 2010
30   - Make things work on perl 5.11.2 and newer (Zefram).
31
32 0.005011 - 14 Aug 2009
33   - Add tests for not interpreting various things as barewords when they
34     aren't.
35   - Depend on a Test::More with done_testing support.
36   - Don't invoke the const callback for a keyword followed by a fat comma.
37
38 0.005010 - 11 Aug 2009
39   - Don't invoke the linestr callback if we found a keyword and the bufptr
40     still contains an arrow at its beginning. This causes the linestr callback
41     not to be fired on things like "->method" (if method is a declarator).
42     While this might be useful, it mostly caused problems so far. It might be
43     added again later as a separate feature.
44
45 0.005009 - 10 Aug 2009
46   - Stop mixing declarations with code. (Closes: RT#48548) (Cosimo Streppone)
47   - Move strip_attrs, which is a purely parsing method, from
48     MethodInstaller::Simple to Context::Simple (nperez).
49
50 0.005008 - 27 Jul 2009
51   - Depend on the latest ExtUtils::Depends for win32+gcc support.
52   - Conditionally expand linestrings under perl debugger.
53
54 0.005007 - 13 Jul 2009
55   - Fix line numbers not being updated from skipspace calls
56
57 0.005006 - 16 Jun 2009
58   - Fix compilation on 5.8 perls.
59
60 0.005005 - 05 Jun 2009
61   - Improve compatibility with MAD-enabled perls
62     (Reini Urban, Closes RT#45779).
63
64 0.005004 - 03 Jun 2009
65   - Don't redefine MEM_WRAP_CHECK_ if it's already defined, getting rid of
66     compilation errors on some perls (Maik Fischer).
67
68 0.005003 - 24 May 2009
69   - Failing tests for line number issues (Ash Berlin).
70   - Add strip_names_and_args (Cory Watson).
71   - Various pod fixes (Yanick Champoux, Florian Ragwitz).
72   - Add copyright statements.
73
74 0.005002
75   - Don't invoke the linestr callback if the parser was expecting an operator.
76     This makes calling a method with the name of a declarator work.
77
78 0.005001
79   - Implement skip_declarator in terms of scan_word in Context::Simple.
80     This avoids relying on PL_tokenbuf to skip past the declarator, as
81     PL_tokenbuf might be overwritten by compiling other code between calling
82     the linestr callback and skip_declarator.
83
84 0.005000
85   - Port the documentation from %^H and Scope::Guard to B::Hooks::EndOfScope.
86   - Fix extracting multi-line strings using scan_str.
87   - Remove the nasty workaround for the above from Context::Simple.
88
89 0.004000
90   - Much improved documentation (osfameron).
91   - Make sure the linestr callback isn't invoked when a declarator is used as
92     part of some quoting construct like qq//, m//, s///, qr//, tr///, qx//, ``,
93     etc (Florian Ragwitz).
94     - Tests for this (osfameron, Florian Ragwitz).
95
96 0.003005
97   - Depend on a recent B::Hooks::EndOfScope to make semicolon injection more
98     robust (Florian Ragwitz).
99   - Add a couple of TODO tests for better error reporting (Marcus Ramberg).
100   - Context::Simple::inject_if_block now returns true if start of block was
101     found (Ash Berlin).
102
103 0.003004
104   - Make magic work within string evals on 5.10 if the hints hash is used.
105   - Bind S_scan_ident to perl. It allows scanning for simple identifiers.
106   - Add strip_ident to Context::Simple.
107
108 0.003003
109   - Devel::Declare::MethodInstaller::Simple now has code_for() which the
110     subclass can override to monkey with the magic shadowed subroutine.
111     This is handy if you want to employ Devel::BeginLift.
112
113 0.003002
114   - Depend on Sub::Name and B::Hooks::EndOfScope. MethodInstaller::Simple and
115     Context::Simple use them.
116
117 0.003001
118   - Don't use :lvalue in Context::Simple and MethodInstaller::Simple to keep
119     the debugger happy.
120
121 0.003000
122   - Add Devel::Declare::Context::Simple and
123     Devel::Declare::MethodInstaller::Simple as an experimental way to make
124     creating block- and sub-like keywords easier (Rhesa Rozendaal).
125
126 0.002999_01
127   - Use B::Hooks::OP::Check to register PL_check callbacks.
128   - Use B::Hooks::EndOfScope instead of %^H and Scope::Guard.
129   - Don't segfault if HvNAME(PL_curstash) == NULL.
130   - Don't segfault on 5.9.5+, where PL_parser is a symbol, not a define.
131   - Don't delete the previous symbol table entry when shadowing subs. This
132     makes us work within the debugger.
133   - Don't mix declarations and code.
134
135 0.002002
136   - switch done_declare call from call_argv to call_pv.
137   - Make get_linestr{,_offset} return sensible values when called while the
138     parser isn't running.
139   - Remove several compile time warnings.
140   - Allow enabling of debug mode using $ENV{DD_DEBUG}.
141
142 0.002001
143   - clean up checks for whether we're lexing and whether lex_stuff exists
144     to handle the PL_parser factor-out in 5.10
145   - check if reallocation of PL_linestr is necessary before doing it. this way
146     we can bail out properly instead of corrupting memory in some cases
147   - don't call strlen twice on the same sting
148   - try to be more portable
149     - stop using Nullsv
150     - don't use Perl_* functions directly.
151     - don't define PERL_CORE
152     - use NEWSV from handy.h instead of defining our own
153     - don't define PERL_NO_GET_CONTEXT
154     - don't support preprocessors (perl -P)
155
156 0.002000
157   - rewrite guts into perl, add tests for new declaration style
158
159 0.001011
160   - add support for 'method main' and other package names
161
162 0.001010
163   - fix traits code, again, so it compiles on 5.10.
164
165 0.001009
166   - only mangle evals if o->op_ppaddr is actually PL_ppaddr[OP_ENTERVAL]
167   - don't set OPf_SPECIAL on entereval ops, mistaken cargo cult from autobox
168   - fix traits code to work on older 5.8.x perls
169
170 0.001008
171   - turns out 0.1.7 in Makefile.PL results in that version going into
172     the .xs file as well as the dist name. Then everything breaks.
173
174 0.001007
175   - bail on SvGROW during declare process since that can't work
176   - use a source filter on files and an op wrap on evals to pre-grow
177     PL_linestr so we don't get to the point of needing to bail
178
179 0.001006
180   - nasty goto &$func hack to avoid :lvalue+list context weirdness
181   - correct SvGROW invocation
182
183 0.001005
184   - stop using & prototypes at all
185
186 0.001004
187   - correct idiotic typo if ifndef
188
189 0.001003
190   - internalise definitions for toke.c chunks to save hassle
191   - make NEWSV macro defined via ifndef rather than version check in case
192     of 5.8.8-maint (and 5.8.9)
193
194 0.001002
195   - compilation fixes for 5.9.5 and -DDEBUGGING
196
197 0.001001
198   - compilation fixes for 5.8.1+
199   - set Makefile.PL to bomb out for <5.8.1
200
201 0.001000
202   - Initial release to CPAN