You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/07/06 23:40:56 UTC
[1/3] git commit: Fix DocuComment extraction from C headers
Repository: lucy-clownfish
Updated Branches:
refs/heads/cfc-pod-wip2 273ce8f8a -> 19dd70ee1
Fix DocuComment extraction from C headers
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/75388f0b
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/75388f0b
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/75388f0b
Branch: refs/heads/cfc-pod-wip2
Commit: 75388f0b61f22b2a8da46160498c42d4fdadc880
Parents: 273ce8f
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Jul 6 23:32:07 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Jul 6 23:32:07 2014 +0200
----------------------------------------------------------------------
compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/75388f0b/compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm
----------------------------------------------------------------------
diff --git a/compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm b/compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm
index f12b543..93643e7 100644
--- a/compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm
+++ b/compiler/perl/buildlib/Clownfish/CFC/Build/Binding.pm
@@ -266,7 +266,17 @@ sub class_from_c {
$class->add_method($method);
}
else {
- $name = 'init' if $name eq 'new';
+ if ($name eq 'new') {
+ $name = 'init';
+
+ # Add 'self' parameter.
+ if ($c_params =~ /^\(\s*\)$/) {
+ $c_params = "($cfc_class_name *self)";
+ }
+ else {
+ $c_params =~ s/^\(/($cfc_class_name *self, /;
+ }
+ }
my $param_list = $parser->parse($c_params)
or die("Invalid param list: $c_params");
[2/3] git commit: Fix documentation of CFCHierarchy
Posted by nw...@apache.org.
Fix documentation of CFCHierarchy
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/b1131422
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/b1131422
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/b1131422
Branch: refs/heads/cfc-pod-wip2
Commit: b11314223256b9bacb8742df5cd4d6b90aa7721c
Parents: 75388f0
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Jul 6 23:32:58 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Jul 6 23:40:05 2014 +0200
----------------------------------------------------------------------
compiler/src/CFCHierarchy.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/b1131422/compiler/src/CFCHierarchy.h
----------------------------------------------------------------------
diff --git a/compiler/src/CFCHierarchy.h b/compiler/src/CFCHierarchy.h
index 955ddda..9531157 100644
--- a/compiler/src/CFCHierarchy.h
+++ b/compiler/src/CFCHierarchy.h
@@ -56,7 +56,7 @@ CFCHierarchy_add_source_dir(CFCHierarchy *self, const char *source_dir);
/** Add a path to the list of include directories.
*
- * @param source_dir The include directory.
+ * @param include_dir The include directory.
*/
void
CFCHierarchy_add_include_dir(CFCHierarchy *self, const char *include_dir);
[3/3] git commit: Fix documentation of CFCPerlClass
Posted by nw...@apache.org.
Fix documentation of CFCPerlClass
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/19dd70ee
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/19dd70ee
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/19dd70ee
Branch: refs/heads/cfc-pod-wip2
Commit: 19dd70ee15b646481623e9f09fb8926bdee98e65
Parents: b113142
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Jul 6 23:33:34 2014 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Jul 6 23:40:17 2014 +0200
----------------------------------------------------------------------
compiler/src/CFCPerlClass.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/19dd70ee/compiler/src/CFCPerlClass.h
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlClass.h b/compiler/src/CFCPerlClass.h
index f23b6d0..9c6cdf3 100644
--- a/compiler/src/CFCPerlClass.h
+++ b/compiler/src/CFCPerlClass.h
@@ -143,7 +143,7 @@ CFCPerlClass_get_xs_code(CFCPerlClass *self);
/** Supply a specification which will cause POD to be generated for this class
* binding.
*
- * @param method A Clownfish::CFC::Binding::Perl::Pod object.
+ * @param pod_spec A Clownfish::CFC::Binding::Perl::Pod object.
*/
void
CFCPerlClass_set_pod_spec(CFCPerlClass *self, struct CFCPerlPod *pod_spec);