14 years agoFail hard if strip_names_and_args fails. strip_names_and_args
Florian Ragwitz [Sun, 24 May 2009 15:14:10 +0000]
Fail hard if strip_names_and_args fails.

14 years agoAdd strip_names_and_args
Cory Watson [Wed, 20 May 2009 13:59:21 +0000]
Add strip_names_and_args

14 years agoPOD fix.
Florian Ragwitz [Tue, 19 May 2009 16:07:41 +0000]
POD fix.

14 years agoVersion 0.005002. 0.005002
Florian Ragwitz [Sun, 10 May 2009 00:05:34 +0000]
Version 0.005002.

14 years agoDon't invoke linestr callback if the parser is expecting an operator. This makes...
Florian Ragwitz [Sun, 10 May 2009 00:01:49 +0000]
Don't invoke linestr callback if the parser is expecting an operator. This makes calling a method with the name of a declarator work.

14 years agoAdd testcase for calling a method with the name of a declarator.
Florian Ragwitz [Sun, 10 May 2009 00:01:43 +0000]
Add testcase for calling a method with the name of a declarator.

14 years agoVersion 0.005001. 0.005001
Florian Ragwitz [Wed, 6 May 2009 00:33:14 +0000]
Version 0.005001.

14 years agoImplement skip_declarator in terms of scan_word in Context::Simple.
Florian Ragwitz [Wed, 6 May 2009 00:23:24 +0000]
Implement skip_declarator in terms of scan_word in Context::Simple.

15 years agoVersion 0.005000. 0.005000
Florian Ragwitz [Sat, 18 Apr 2009 08:42:17 +0000]
Version 0.005000.

15 years agoDon't compare signed to unsigned.
Florian Ragwitz [Sat, 18 Apr 2009 08:42:13 +0000]
Don't compare signed to unsigned.

15 years agoInclude the multiline scan_str in the releases.
Florian Ragwitz [Sat, 18 Apr 2009 08:42:10 +0000]
Include the multiline scan_str in the releases.

15 years agoAllow extracting strings going over multiple lines using scan_str.
Florian Ragwitz [Sat, 18 Apr 2009 08:42:06 +0000]
Allow extracting strings going over multiple lines using scan_str.

15 years agoThe extracted string should contain the newline as well.
Florian Ragwitz [Sat, 18 Apr 2009 08:42:00 +0000]
The extracted string should contain the newline as well.

15 years agoPort the docs from Scope::Guard + %^H to B::Hooks::EndOfScope.
Florian Ragwitz [Mon, 13 Apr 2009 17:08:45 +0000]
Port the docs from Scope::Guard + %^H to B::Hooks::EndOfScope.

15 years agoVersion 0.004000.
Florian Ragwitz [Fri, 10 Apr 2009 00:20:37 +0000]
Version 0.004000.

15 years agoTest for not invoking the linestr callback for barewords quoted using the fat comma.
Florian Ragwitz [Fri, 10 Apr 2009 00:03:29 +0000]
Test for not invoking the linestr callback for barewords quoted using the fat comma.

15 years agoUpdated t/quote.t to quash warnings and use cross-platform /dev/null
Florian Ragwitz [Fri, 10 Apr 2009 00:03:12 +0000]
Updated t/quote.t to quash warnings and use cross-platform /dev/null

15 years agoRemove unused variable.
Florian Ragwitz [Thu, 9 Apr 2009 00:57:52 +0000]
Remove unused variable.

15 years agoUnTODO passing tests.
Florian Ragwitz [Thu, 9 Apr 2009 00:54:43 +0000]
UnTODO passing tests.

15 years agoDon't fire the linestr callback for const ops in backticks, qx or qq.
Florian Ragwitz [Thu, 9 Apr 2009 00:54:28 +0000]
Don't fire the linestr callback for const ops in backticks, qx or qq.

15 years agoSimplify the quoting fix.
Florian Ragwitz [Thu, 9 Apr 2009 00:54:13 +0000]
Simplify the quoting fix.

15 years agoUnTODO passing tests.
Florian Ragwitz [Thu, 9 Apr 2009 00:35:58 +0000]
UnTODO passing tests.

15 years agoDon't issue the linestr callback if the const op comes from m//, s///, qr// or tr///.
Florian Ragwitz [Thu, 9 Apr 2009 00:35:42 +0000]
Don't issue the linestr callback if the const op comes from m//, s///, qr// or tr///.

15 years agoRemember the previously compiled op.
Florian Ragwitz [Thu, 9 Apr 2009 00:35:26 +0000]
Remember the previously compiled op.

15 years agoUnTODO passing tests.
Florian Ragwitz [Thu, 9 Apr 2009 00:09:12 +0000]
UnTODO passing tests.

15 years agoTest that quoted words aren't interpreted as keywords.
Florian Ragwitz [Thu, 9 Apr 2009 00:07:57 +0000]
Test that quoted words aren't interpreted as keywords.

15 years agoFirst draft of documentation. This focuses on core API rather than the ::Simple...
Florian Ragwitz [Thu, 9 Apr 2009 00:05:46 +0000]
First draft of documentation.  This focuses on core API rather than the ::Simple:: modules

15 years agoVersion 0.003005.
Florian Ragwitz [Mon, 30 Mar 2009 18:50:27 +0000]
Version 0.003005.

15 years agoContext::Simple::inject_if_block returns true value on block
Ash Berlin [Sun, 18 Jan 2009 19:47:32 +0000]
Context::Simple::inject_if_block returns true value on block

15 years agoDepend on B::Hooks::EndOfScope 0.05.
Florian Ragwitz [Sun, 4 Jan 2009 20:38:57 +0000]
Depend on B::Hooks::EndOfScope 0.05.

This makes semicolon injection work even if a string eval is compiled inside of
the same block.

15 years agoAdd test for unicode methods
Marcus Ramberg [Fri, 2 Jan 2009 21:35:12 +0000]
Add test for unicode methods

15 years agoCheck failure for subs starting with numbers
Marcus Ramberg [Fri, 2 Jan 2009 21:21:54 +0000]
Check failure for subs starting with numbers

15 years agoFirst buckit of FAIL
Marcus Ramberg [Fri, 2 Jan 2009 21:11:01 +0000]
First buckit of FAIL

15 years agoFix some compiler warnings.
Florian Ragwitz [Sat, 15 Nov 2008 15:04:26 +0000]
Fix some compiler warnings.

15 years agoEliminate undefined symbols.
Florian Ragwitz [Mon, 10 Nov 2008 01:35:52 +0000]
Eliminate undefined symbols.

15 years agoTest if we're loadable without deferred symbol resolution.
Florian Ragwitz [Mon, 10 Nov 2008 01:28:01 +0000]
Test if we're loadable without deferred symbol resolution.

15 years agoVersion 0.003004.
Florian Ragwitz [Mon, 10 Nov 2008 01:27:55 +0000]
Version 0.003004.

15 years agoAdd strip_indent to Ctx::Simple.
Florian Ragwitz [Fri, 7 Nov 2008 06:51:47 +0000]
Add strip_indent to Ctx::Simple.

15 years agoExpose scan_ident to perl space.
Florian Ragwitz [Fri, 7 Nov 2008 06:51:40 +0000]
Expose scan_ident to perl space.

15 years agoAdd S_scan_ident from toke.c.
Florian Ragwitz [Fri, 7 Nov 2008 06:51:34 +0000]
Add S_scan_ident from toke.c.

15 years agoMake things work within evals with a hint hash.
Florian Ragwitz [Wed, 5 Nov 2008 23:55:50 +0000]
Make things work within evals with a hint hash.

15 years agoAdd a failing testcase for string eval mangling if there's a hints hash.
Florian Ragwitz [Wed, 5 Nov 2008 18:57:58 +0000]
Add a failing testcase for string eval mangling if there's a hints hash.

15 years agoMake t/method-installer-runtime.t more sane.
Florian Ragwitz [Mon, 27 Oct 2008 20:34:14 +0000]
Make t/method-installer-runtime.t more sane.

15 years agoMake parse_proto default to an empty string.
Florian Ragwitz [Mon, 27 Oct 2008 20:34:03 +0000]
Make parse_proto default to an empty string.

15 years agoAdd a VERSION to MethodInstaller::Simple.
Florian Ragwitz [Mon, 27 Oct 2008 20:30:50 +0000]
Add a VERSION to MethodInstaller::Simple.

15 years agoVersion 0.003003.
Florian Ragwitz [Mon, 27 Oct 2008 20:30:40 +0000]
Version 0.003003.

15 years agoRefactor MethodInstaller::Simple.
Florian Ragwitz [Mon, 27 Oct 2008 20:27:13 +0000]
Refactor MethodInstaller::Simple.

It now has code_for() which the subclass can override to monkey with the magic
shadowed subroutine. This is handy if you want to employ Devel::BeginLift.

15 years agochanged runtime test to use can()
Rhesa Rozendaal [Mon, 27 Oct 2008 03:20:25 +0000]
changed runtime test to use can()

15 years agoprevent warnings in t/method-installer-runtime.t
Rhesa Rozendaal [Sun, 26 Oct 2008 17:28:34 +0000]
prevent warnings in t/method-installer-runtime.t

15 years agoadded test demonstrating that "method" works at runtime
Rhesa Rozendaal [Sun, 26 Oct 2008 17:11:49 +0000]
added test demonstrating that "method" works at runtime

15 years agoVersion 0.003002.
Florian Ragwitz [Sat, 25 Oct 2008 17:44:34 +0000]
Version 0.003002.

15 years agoAdd dependency for B::Hooks::EndOfScope and Sub::Name.
Florian Ragwitz [Sat, 25 Oct 2008 17:44:18 +0000]
Add dependency for B::Hooks::EndOfScope and Sub::Name.

15 years agoVersion 0.003001.
Florian Ragwitz [Sat, 25 Oct 2008 10:38:58 +0000]
Version 0.003001.

15 years agousing :lvalue subs breaks the debugger, so I added a inc_offset method to Context...
Rhesa Rozendaal [Sat, 25 Oct 2008 10:32:32 +0000]
using :lvalue subs breaks the debugger, so I added a inc_offset method to Context::Simple

15 years agoVersion 0.003000.
Florian Ragwitz [Fri, 24 Oct 2008 21:26:27 +0000]
Version 0.003000.

15 years agoMerge branch 'context_object'
Florian Ragwitz [Fri, 24 Oct 2008 21:17:24 +0000]
Merge branch 'context_object'

15 years agoctx-simple: integrated multiline proto handling from M::S context_object
Rhesa Rozendaal [Fri, 24 Oct 2008 11:43:49 +0000]
ctx-simple: integrated multiline proto handling from M::S

15 years agoVersion 0.002999_01.
Florian Ragwitz [Fri, 24 Oct 2008 08:30:42 +0000]
Version 0.002999_01.

15 years agoChangelogging
Florian Ragwitz [Fri, 24 Oct 2008 07:53:50 +0000]
Changelogging

15 years agoAdd an abstract.
Florian Ragwitz [Fri, 24 Oct 2008 07:34:21 +0000]
Add an abstract.

15 years agoDon't mix declarations and code when declaring the stack pointer.
Florian Ragwitz [Fri, 24 Oct 2008 07:17:20 +0000]
Don't mix declarations and code when declaring the stack pointer.

15 years agoDon't delete the previous symbol table entry when shadowing subs.
Florian Ragwitz [Thu, 23 Oct 2008 21:54:03 +0000]
Don't delete the previous symbol table entry when shadowing subs.

Instead just overwrite the CODE slot within. That prevents the GV from being
freed, which totally throws off the tokenizer, that holds a pointer to the gv
already.

This makes t/method.t and others work under the debugger, although I have no
idea why it ever worked, even with the debugger disabled.

15 years agoimprovements from MX::MS and MX::Declare
Rhesa Rozendaal [Wed, 22 Oct 2008 22:09:49 +0000]
improvements from MX::MS and MX::Declare

15 years agoMerge branch 'hooks_endofscope'
Florian Ragwitz [Wed, 22 Oct 2008 18:33:31 +0000]
Merge branch 'hooks_endofscope'

* hooks_endofscope:
  Use B::Hooks::EndOfScope instead of %^H and Scope::Guard.
  Create branch 'hooks_op_endofscope'.

Conflicts:
Makefile.PL

15 years agoMerge branch 'hook_op_check'
Florian Ragwitz [Wed, 22 Oct 2008 18:29:36 +0000]
Merge branch 'hook_op_check'

* hook_op_check:
  Update for latest B::Hooks::OP::Check API.
  Use B::Hooks::OP::Check to register PL_check callbacks.
  Create branch hook_op_check

15 years agoUpdate for latest B::Hooks::OP::Check API. hook_op_check
Florian Ragwitz [Wed, 22 Oct 2008 18:27:57 +0000]
Update for latest B::Hooks::OP::Check API.

15 years agoClean up tests.
Florian Ragwitz [Mon, 20 Oct 2008 11:35:00 +0000]
Clean up tests.

15 years agoRemove test intended to be used for debugging.
Florian Ragwitz [Mon, 20 Oct 2008 11:34:51 +0000]
Remove test intended to be used for debugging.

15 years agoOn 5.9.5+ PL_parser is always available, although not always a define, but a symbol.
Florian Ragwitz [Mon, 20 Oct 2008 11:29:34 +0000]
On 5.9.5+ PL_parser is always available, although not always a define, but a symbol.

15 years agoadded 2 tests wrt utf string manipulations causing segfaults
Rhesa Rozendaal [Mon, 20 Oct 2008 11:00:19 +0000]
added 2 tests wrt utf string manipulations causing segfaults

15 years agoDon't segfault if HvNAME(PL_curstash) == NULL.
Florian Ragwitz [Sun, 19 Oct 2008 17:23:19 +0000]
Don't segfault if HvNAME(PL_curstash) == NULL.

15 years agoUse B::Hooks::EndOfScope instead of %^H and Scope::Guard. hooks_endofscope
Florian Ragwitz [Sun, 19 Oct 2008 07:53:54 +0000]
Use B::Hooks::EndOfScope instead of %^H and Scope::Guard.

15 years agoRemove unused inject_scope from method.t
Florian Ragwitz [Sun, 19 Oct 2008 07:50:00 +0000]
Remove unused inject_scope from method.t

15 years agoVersion 0.002002.
Florian Ragwitz [Sun, 19 Oct 2008 04:39:58 +0000]
Version 0.002002.

15 years agoChangelogging.
Florian Ragwitz [Sun, 19 Oct 2008 04:39:51 +0000]
Changelogging.

15 years agoDon't include the multiline proto test in releases.
Florian Ragwitz [Sun, 19 Oct 2008 04:39:43 +0000]
Don't include the multiline proto test in releases.

15 years agoAdd a multiline proto test in an extra file.
Florian Ragwitz [Sun, 19 Oct 2008 04:30:23 +0000]
Add a multiline proto test in an extra file.

15 years agoRevert "Test multiline signatures where the closing parent has a smaller offset than...
Florian Ragwitz [Sun, 19 Oct 2008 04:30:18 +0000]
Revert "Test multiline signatures where the closing parent has a smaller offset than the opening one."

This reverts commit aafff9cd2deac1c87315f9289b1bac210f71b16a.

15 years agobranches/context_object: reformatted with 2-space indent, and "if ("
Rhesa Rozendaal [Sat, 18 Oct 2008 13:40:29 +0000]
branches/context_object: reformatted with 2-space indent, and "if ("

15 years agoTest multiline signatures where the closing parent has a smaller offset than the...
Florian Ragwitz [Sat, 18 Oct 2008 11:49:59 +0000]
Test multiline signatures where the closing parent has a smaller offset than the opening one.

15 years agoswitch done_declare from call_argv to call_pv
Matt S Trout [Sat, 18 Oct 2008 09:06:13 +0000]
switch done_declare from call_argv to call_pv

15 years agoMake get_linestr_offset return -1 if we're not parsing.
Florian Ragwitz [Sun, 12 Oct 2008 14:27:04 +0000]
Make get_linestr_offset return -1 if we're not parsing.

15 years agoMake get_linestr return NULL/undef if we aren't parsing.
Florian Ragwitz [Sun, 12 Oct 2008 14:26:44 +0000]
Make get_linestr return NULL/undef if we aren't parsing.

15 years agoclear_lex_stuff returns void, not char *.
Florian Ragwitz [Sun, 12 Oct 2008 14:26:12 +0000]
clear_lex_stuff returns void, not char *.

15 years agoRemove unused vars.
Florian Ragwitz [Sun, 12 Oct 2008 14:25:52 +0000]
Remove unused vars.

15 years agoadded DD::Context::Simple, which packages the synopsis (or method_no_semi.t) for...
Rhesa Rozendaal [Mon, 6 Oct 2008 11:40:27 +0000]
added DD::Context::Simple, which packages the synopsis (or method_no_semi.t) for easier reuse

15 years agoCreate branch context_object
Rhesa Rozendaal [Mon, 6 Oct 2008 11:20:13 +0000]
Create branch context_object

15 years agoAllow enabling of debug mode with an env var.
Florian Ragwitz [Sun, 5 Oct 2008 23:36:08 +0000]
Allow enabling of debug mode with an env var.

15 years agoRemove DD_DEBUG_S. It's unused.
Florian Ragwitz [Sun, 5 Oct 2008 23:36:01 +0000]
Remove DD_DEBUG_S. It's unused.

15 years agoVersion 0.002001.
Florian Ragwitz [Sat, 4 Oct 2008 22:30:57 +0000]
Version 0.002001.

15 years agoAdd myself to AUTHORS.
Florian Ragwitz [Sat, 4 Oct 2008 22:30:47 +0000]
Add myself to AUTHORS.

15 years agoChangelogging.
Florian Ragwitz [Sat, 4 Oct 2008 22:30:39 +0000]
Changelogging.

15 years agoRemove support for long-deprecated -P for better portability.
Florian Ragwitz [Sat, 4 Oct 2008 15:23:15 +0000]
Remove support for long-deprecated -P for better portability.

15 years agoCheck if reallocation of PL_linestr is necessary before doing it.
Florian Ragwitz [Sat, 4 Oct 2008 13:18:02 +0000]
Check if reallocation of PL_linestr is necessary before doing it.

That way memory curruption caused by SvGROW on a PL_linestr comming from perl
-e goes away.

15 years agoRevert "nuke PERL_5_9_PLUS"
Florian Ragwitz [Sat, 4 Oct 2008 02:32:03 +0000]
Revert "nuke PERL_5_9_PLUS"

Using #ifdef PL_parser is not enough. In some perls, depending on
configuration, PL_parser is a real symbol and not a define.

15 years agoDon't define PERL_NO_GET_CONTEXT.
Florian Ragwitz [Sat, 4 Oct 2008 02:31:56 +0000]
Don't define PERL_NO_GET_CONTEXT.

Seems to be cargo-culted from Data::Alias and works just fine without.

15 years agoDon't define NEWSV. handy.h does that for us.
Florian Ragwitz [Sat, 4 Oct 2008 02:31:51 +0000]
Don't define NEWSV. handy.h does that for us.

15 years agoDon't define PERL_CORE.
Florian Ragwitz [Sat, 4 Oct 2008 02:31:46 +0000]
Don't define PERL_CORE.

Seems to be cargo-culted anyway. Everything works just fine without it on
5.8.1, 5.8.8 and 5.10.0.

15 years agoDon't call strlen() twice on the same string.
Florian Ragwitz [Sat, 4 Oct 2008 02:31:41 +0000]
Don't call strlen() twice on the same string.

15 years agoUse croak instead of Perl_croak.
Florian Ragwitz [Sat, 4 Oct 2008 02:31:35 +0000]
Use croak instead of Perl_croak.