Debian Codegraph @

Changes

raw
1 Revision history for XS-Parse-Sublike
2
3 0.41 2025-12-09
4 [CHANGES]
5 * Support optional refalias parameters with defaulting expressions
6 * Support named refalias parameters
7
8 0.40 2025-11-14
9 [CHANGES]
10 * Experimentally support refalias syntax in extended signatures
11
12 0.39 2025-09-12
13 [BUGFIXES]
14 * Make sure to set `B::Deparse`'s ->ambient_pragmas when running
15 deparse tests (https://github.com/Perl/perl5/issues/23674)
16
17 0.38 2025-08-08
18 [BUGFIXES]
19 * Improvements to handling of anonymous parameters or missing
20 defaulting expressions in subroutine signature parsing (RT168812)
21
22 0.37 2025-02-07
23 [CHANGES]
24 * Added `xps_signature_query_*()` API
25
26 [BUGFIXES]
27 * Don't store signature parsing state in the `PL_parser->sig_*` vars,
28 so as to cope when Perl v5.41.9 removes them
29
30 0.36 2025-01-15
31 [BUGFIXES]
32 * Handle the new shape of `PL_compiling.cop_features` in perl 5.41.8
33 or above
34
35 0.35 2025-01-07
36 [BUGFIXES]
37 * Restore the original kw/kwlen after a failed `my` prefix hack to
38 avoid confusing other modules that are doing the same thing
39
40 0.34 2025-01-06
41 [BUGFIXES]
42 * Don't get confused by function names immediately followed by the
43 colon of attribute syntax with no intervening whitespace
44
45 0.33 2025-01-02
46 [BUGFIXES]
47 * Ensure test .xs files are valid C before C23, by not using unnamed
48 parameters to functions (RT158225)
49
50 0.32 2024-12-20
51 [BUGFIXES]
52 * Ensure that signature start+finish hooks are run if present even on
53 empty signatures
54
55 0.31 2024-12-20
56 [CHANGES]
57 * Optionally permit named function declarations in fully-qualified
58 packages if all hooks agree
59 * Added experimental `start_signature` and `finish_signature` hook
60 stages
61 * Added experimental `xps_signature_add_param()` API
62
63 0.30 2024-10-18
64 [BUGFIXES]
65 * Ensure that named parameter variables are introduced before the
66 next variable's defaulting expression is parsed, just like
67 positional ones already do
68
69 0.29 2024-10-14
70 [CHANGES]
71 * Allow `Sublike::Extended` to take over core perl's handling of
72 `sub` or `method`, allowing extended sublike syntax without needing
73 the `extended` keyword.
74
75 0.28 2024-10-08
76 [CHANGES]
77 * Make the subroutine body optional when using `extended` subs
78 * Declare the named parameter and parameter attribute features as
79 non-experimental
80
81 [BUGFIXES]
82 * Use PTR2UV() properly when making debug values (RT155804)
83 * Avoid compiler warnings about unused var or label on Perl 5.16
84
85 0.27 2024-09-23
86 [BUGFIXES]
87 * Ensure that signature parameter attribute hook functions can
88 correctly see and modify the optree fragments
89
90 0.26 2024-09-20
91 [BUGFIXES]
92 * Don't segfault on attempts to use unnamed slurpy variables with
93 named parameters (RT155654)
94
95 0.25 2024-09-19
96 [BUGFIXES]
97 * Make sure not to introduce signature parameter variables until
98 after their own defaulting expression is parsed (RT155630)
99
100 0.24 2024-09-18
101 [CHANGES]
102 * Support lexical subs when prefixed with `my`
103 * Rewritten implementation of named parameters to avoid indirection
104 via a slurpy HV for much performance improvement
105 * Support also slurpy AVs along with named parameters
106 * Docs updates for clarity about named params
107
108 [BUGFIXES]
109 * Avoid some more C99 `for()` loop variable declarations and struct
110 initialisers as they upset some C compilers
111
112 0.23 2024-08-15
113 [CHANGES]
114 * New ABI version 6
115 + Adds a `ver` field to the `XSParseSublikeHooks` structure
116 * Support named parameters using defined-or and true-or defaulting
117 operators
118 * Support positional parameters using defined-or and true-or
119 defaulting operators in extension parser, on Perl version 5.38+
120 * Store the `File::ShareDir` data in the per-module path, not the
121 per-dist path
122
123 0.22 2024-07-08
124 [CHANGES]
125 * Use `File::ShareDir` for storing .h include file, rather than
126 storing the contents in the `__DATA__` section of the build helper
127
128 0.21 2023-10-11
129 [BUGFIXES]
130 * Ensure that exceptions thrown from runtime signature handling
131 appear to come from the callsite and not declaration
132 * Fix signedness of printf format when complaining about
133 mismatched `->ver`
134
135 0.20 2023-09-09
136 [BUGFIXES]
137 * Correct ->VERSION check for Object::Pad or Future::AsyncAwait
138 cross-module tests (RT149700)
139 * Don't upset gcc's -Wformat by passing an unbounded STRLEN into
140 %.*s format (RT133035)
141 * Avoid colons in filename of t/71extended+Object-Pad.t because
142 Windows doesn't like them (RT149712)
143 * Ensure that mixed positional + named params in signatures work
144 properly (thanks alh)
145 * Ensure name shadowing of param names prints the right diagnostic
146 warning (thanks alh)
147
148 0.19 2023-09-07
149 [CHANGES]
150 * Added `Sublike::Extended`, a prefix keyword to enable the extended
151 signature parser for named params and attributes
152 * Beginnings of an (experimental) XS-level API for attributes on
153 parameters
154 * Complain on attempts to register a sublike keyword with neither a
155 permit function nor hinthash key
156
157 0.18 2023-06-14
158 [CHANGES]
159 * Swap all the unit tests from Test::More to Test2::V0
160
161 [BUGFIXES]
162 * Remember to set `-std=c99` compiler flag on Perls before v5.36
163
164 0.17 2023-03-21
165 [CHANGES]
166 * Experimental support for named param syntax in parse_subsignature()
167 * Support core perl's `method` syntax when available by setting
168 CVf_IsMETHOD (perl >= 5.37.10)
169
170 0.16 2021-12-16
171 [CHANGES]
172 * No longer support ABI version 3 even in back-compatibility mode
173
174 [BUGFIXES]
175 * Remember to adjust the SET_CVNAME and INSTALL_SYMBOL actions bits
176 in the non-dynamic-actions case
177 * Avoid using C99-style `//` comments as some compilers dislike it
178 (mistagged RT140487)
179
180 0.15 2021-12-15
181 [CHANGES]
182 * Added ctx->actions, the DYNAMIC_ACTIONS compat flag, and associated
183 flags and machinery
184 * Added ctx->moddata
185
186 0.14 2021-10-28
187 [CHANGES]
188 * Added XS_PARSE_SUBLIKE_FLAG_PREFIX; discourage the _any() function
189 to achieve similar effect
190 * Added XS_PARSE_SUBLIKE_FLAG_BODY_OPTIONAL to permit bodyless sublike
191 declarations
192 * Better compiletime warnings when a sub declaration lacks a
193 body-delimiting brace
194
195 [BUGFIXES]
196 * Fix for Perl < 5.20 on Win32 (thanks ilmari) (RT139296)
197 * Handle the new OP_ARGCHECK aux structure of perl 5.31.5 (thanks
198 ilmari) (RT139295)
199 * Accomodate newly-added core sv_setrv_*() functions
200
201 0.13 2021-08-30
202 [CHANGES]
203 * New ABI version 4
204 + Set up functions in PL_modglobal instead of perl-visible global
205 symbol table
206 + Add a `permit_hintkey` convenient shortcut
207 * Better code structure of XS::Parse::Sublike::Builder
208
209 0.12 2021-06-21
210 [BUGFIXES]
211 * Try to work around parse_block()'s unbalanced scopestack messups
212 * Namespace the static variables in the .h file appropriately in case
213 both this as XSParseKeyword are loaded
214
215 0.11 2021-01-18
216 [BUGFIXES]
217 * Don't SEGV on signature parse error (RT133865)
218 * Account for change of signature validation error message in latest
219 bleadperl (RT134012)
220
221 0.10 2020-06-20
222 [BREAKING CHANGES]
223 * New ABI version 3
224
225 [CHANGES]
226 * Pass an additional 'hookdata' parameter around between caller and
227 hook stage functions
228
229 0.09 2020-06-15
230 [CHANGES]
231 * Define API for an optional stage for filtering and applying
232 attributes during parsing
233
234 0.08 2020-06-12
235 [CHANGES]
236 * Define API to either require or skip parsing the name of a sub, or
237 skip parsing attributes or signatures
238
239 0.07 2020-04-02
240 [BUGFIXES]
241 * Ensure that empty-signature functions are still parsed correctly
242 and include arg count check (RT132284)
243
244 0.06 2020-03-27
245 [CHANGES]
246 * Pass a standard shared context struct through the various hook
247 stages
248 * Add an early hook stage before the call to start_subparse()
249
250 0.05 2020-03-26
251 [BUGFIXES]
252 * Fix hax/parse_subsignature.c.inc to cope with whitespace between
253 parameter declarations
254
255 0.04 2020-03-18
256 [CHANGES]
257 * Pass a required module version number to boot_xs_parse_sublike()
258 * Added lots of unit tests
259
260 0.03 2020-03-18
261 [CHANGES]
262 * Added xs_parse_sublike_any() allowing custom keywords to combine
263 with registered hooks
264
265 [BUGFIXES]
266 * Avoid double-free of sigops in case of parse failure
267 * Fix hax/parse_subsignature.c.inc for named parameters with default
268 expressions
269
270 0.02 2020-03-17
271 [CHANGES]
272 * Added `register_xs_parse_sublike()` and the `permit` hook stage
273 * Added toplevel PL_keyword_hook parser function
274
275 0.01 2020-03-15
276 First version, released on an unsuspecting world.