X-From-Line: clanlib-devel-return-6885-grumbel=gmx.net@clanlib.org Thu Aug 21 16:10:34 2003 Delivered-To: postmaster@penpen Received: from pop.gmx.net (213.165.64.20) by penpen with POP3 for ; 21 Aug 2003 16:10:34 -0000 Return-Path: X-Flags: 0000 Delivered-To: GMX delivery to grumbel@gmx.net Received: (qmail 15153 invoked by uid 65534); 21 Aug 2003 15:54:08 -0000 Received: from vacuum1.xentive.com (EHLO vacuum1.xentive.com) (195.249.47.163) by mx0.gmx.net (mx007-rz3) with SMTP; 21 Aug 2003 17:54:08 +0200 Received: (qmail 17967 invoked from network); 21 Aug 2003 15:53:38 -0000 Received: from unknown (HELO dark.clansoft.dk) (217.116.224.121) by 192.168.2.2 with DES-CBC3-SHA encrypted SMTP; 21 Aug 2003 15:53:38 -0000 Received: (qmail 3985 invoked by alias); 21 Aug 2003 15:53:37 -0000 Mailing-List: contact clanlib-devel-help@clanlib.org; run by ezmlm Reply-To: clanlib-devel@clanlib.org Delivered-To: mailing list clanlib-devel@clanlib.org Received: (qmail 3946 invoked by uid 1001); 21 Aug 2003 15:53:26 -0000 Date: Thu, 21 Aug 2003 17:53:26 +0200 From: Magnus Norddahl To: clanlib-devel@clanlib.org Subject: Re: CL_Library classes X-Gnus-Mail-Source: file:/home/ingo/.procmaildir/incoming Message-ID: <20030821155326.GA30522@dark.clansoft.dk> References: <20030818125911.22616.qmail@cs06.tgv.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030818125911.22616.qmail@cs06.tgv.net> User-Agent: Mutt/1.5.4i X-GMX-Antivirus: -1 (not scanned, may not use virus scanner) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-Spam-Status: No, hits=-31.3 required=5.0 tests=BAYES_01,IN_REP_TO,QUOTED_EMAIL_TEXT,RCVD_IN_OSIRUSOFT_COM, RCVD_IN_SBL,REFERENCES,REPLY_WITH_QUOTES, SIGNATURE_SHORT_SPARSE,USER_AGENT_MUTT autolearn=ham version=2.53 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Status: RO X-Content-Length: 2328 Lines: 56 Xref: penpen.localdomain ClanLib.Devel:6901 Quoting sylvain HELLEGOUARCH (shellegouarch@programmationworld.com): > Here is my CL_Library classes. The package offers three classes : Ok I've now looked at the attached files, adjusted them some and commited it to cvs. I have not added the examples to CVS, seemed bit unclear which files were supposed to do what. A couple of notes: 1. To save me from spending a lot of time trying to figure out what exactly you changed, it is of high importance that send changes in the form of a real patch file. You eg. added your new source files to some Makefile.am files, but I cannot simply copy those over the versions I have - things might have changed elsewhere in the files, and I have to confirm that the changes you did indeed are correct changes. To build a patch file, you can checkout an anonymous copy of our CVS version, hack on that copy, and run the cvs command "cvs diff -u > my_patch" to produce a patch. The obvious advantages of this approach is that you can continue to code your changes while keeping your version up to date with ours. Alternatively you can use the Win32 PatchFile Maker available on clanlib.org, which is a frontend for doing a "diff -uNr origClanLib changedClanlib > my_patch" on a unix system. 2. Your classes do not follow the ClanLib "CL_ClassName_Generic" data hiding system. Basically we do not ever put variables in the API classes to minimize the chances of breaking binary compatibility. There should only be one attribute in the API classes, called "CL_ClassName_Generic *impl;", and inside your implementation you would put all member variables in the generic class. I commited your classes anyway because it looked like you had done a great effort trying to follow the syntax and behavior of ClanLib in general. But this should be fixed. :) 3. You use two spaces as indenting instead of a tab. Also there were some cases where you put { on the same line as the conditional code. I fixed these things before committing it. Thanks for your contribution, we appreciate it. Hope this didn't scare you away from contributing more stuff later on. :) -- Magnus Norddahl, Clansoft --------------------------------------------------------------------- To unsubscribe, e-mail: clanlib-devel-unsubscribe@clanlib.org For additional commands, e-mail: clanlib-devel-help@clanlib.org