Return-Path: Delivered-To: apmail-lucene-lucy-dev-archive@minotaur.apache.org Received: (qmail 55527 invoked from network); 19 Jun 2010 13:33:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Jun 2010 13:33:54 -0000 Received: (qmail 28027 invoked by uid 500); 19 Jun 2010 13:33:54 -0000 Delivered-To: apmail-lucene-lucy-dev-archive@lucene.apache.org Received: (qmail 27961 invoked by uid 500); 19 Jun 2010 13:33:53 -0000 Mailing-List: contact lucy-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@lucene.apache.org Delivered-To: mailing list lucy-dev@lucene.apache.org Received: (qmail 27953 invoked by uid 99); 19 Jun 2010 13:33:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 13:33:53 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.116.39.62] (HELO rectangular.com) (68.116.39.62) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jun 2010 13:33:45 +0000 Received: from marvin by rectangular.com with local (Exim 4.63) (envelope-from ) id 1OPyAk-00045h-SS for lucy-dev@lucene.apache.org; Sat, 19 Jun 2010 06:33:22 -0700 Date: Sat, 19 Jun 2010 06:33:22 -0700 To: lucy-dev@lucene.apache.org Subject: Re: Do you need help on Lucy? Message-ID: <20100619133322.GA15522@rectangular.com> References: <20100619025503.GA14433@rectangular.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) From: Marvin Humphrey X-Virus-Checked: Checked by ClamAV on apache.org On Sat, Jun 19, 2010 at 07:00:56AM +0200, VOITPTRPTR wrote: > How one can contribute (I'm a C developer) to Lucy? We have a wiki page up that covers the mechanics of contributing: http://wiki.apache.org/lucy/HowToContribute Most people choose what they want to work on based on what they need or what interests them. Since you don't mention wanting to work on a particular problem, there are a some general C tasks we could use help on and that don't require a lot of prior knowledge about the code base; I'll describe one of those. A lot of Lucy code was originally written for C89. We have since changed our C dialect to "the overlap of C99 and C++", allowing us to use a number of idioms which result in cleaner, more readable code. One of these is the declaration of loop variables within a "for" construct: Index: core/Lucy/Object/VArray.c =================================================================== --- core/Lucy/Object/VArray.c (revision 956160) +++ core/Lucy/Object/VArray.c (working copy) @@ -55,8 +55,7 @@ VA_dump(VArray *self) { VArray *dump = VA_new(self->size); - uint32_t i, max; - for (i = 0, max = self->size; i < max; i++) { + for (uint32_t i = 0, max = self->size; i < max; i++) { Obj *elem = VA_Fetch(self, i); if (elem) { VA_Store(dump, i, Obj_Dump(elem)); } } A good place to start would be that file, VArray.c. Thanks for inquiring, Marvin Humphrey