Repository: lucy Updated Branches: refs/heads/master 91dfa85ae -> 00ece7148
Add custom POD for $doc->get_fields "void*" return type throws off the code sample generator. Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/00ece714 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/00ece714 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/00ece714 Branch: refs/heads/master Commit: 00ece714822831ce49459e9594a8326a6f6dd452 Parents: 91dfa85 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Sat Feb 27 15:35:26 2016 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Sat Feb 27 15:35:26 2016 +0100 ---------------------------------------------------------------------- perl/buildlib/Lucy/Build/Binding/Document.pm | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/00ece714/perl/buildlib/Lucy/Build/Binding/Document.pm ---------------------------------------------------------------------- diff --git a/perl/buildlib/Lucy/Build/Binding/Document.pm b/perl/buildlib/Lucy/Build/Binding/Document.pm index 8004d58..f40c190 100644 --- a/perl/buildlib/Lucy/Build/Binding/Document.pm +++ b/perl/buildlib/Lucy/Build/Binding/Document.pm @@ -64,6 +64,13 @@ B<value> - The value. =back END_POD + my $get_fields_pod = <<'END_POD'; +=head2 get_fields + + my $hashref = $doc->get_fields(); + +Return the Doc's backing fields hash. +END_POD $pod_spec->set_synopsis($synopsis); $pod_spec->add_constructor( alias => 'new', sample => $constructor ); $pod_spec->add_method( @@ -74,6 +81,7 @@ END_POD $pod_spec->add_method( method => 'Get_Fields', alias => 'get_fields', + pod => $get_fields_pod, ); my $xs_code = <<'END_XS_CODE';