From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Banel Subject: Re: Babel support for the D language Date: Sat, 14 Dec 2013 18:49:15 +0000 (UTC) Message-ID: References: <52977819.6000901@free.fr> <87bo10u09u.fsf@gmail.com> <877gbotpm4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39070) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VruHa-0001WU-QZ for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 13:49:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VruHU-0000tU-MF for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 13:49:46 -0500 Received: from plane.gmane.org ([80.91.229.3]:46913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VruHU-0000tP-FQ for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 13:49:40 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VruHS-0001aB-C9 for emacs-orgmode@gnu.org; Sat, 14 Dec 2013 19:49:38 +0100 Received: from mna75-5-82-226-29-239.fbx.proxad.net ([82.226.29.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Dec 2013 19:49:38 +0100 Received: from tbanelwebmin by mna75-5-82-226-29-239.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 14 Dec 2013 19:49:38 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > > I think this incorporation into ob-C.el would be the next logical step. > You'd want to use the `org-babel-c-variant' in the same manner as C++ > does currently. But there's no rush, and any changes there couldn't be > merged until after your FSF copyright assignment forms have been > completed. > > Best Regards, > Hi Eric Done. The merging of ob-C.el and ob-D.el is done. It is at the end of this file: http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-D.html Actually, you are right, it makes sense to share common processing in a single *.el. I fixed what seems to be a bug. Tables were translated in C & C++ as something like: char MyTable[7][2][11] = { ... }; I changed that to: const char* MyTable[7][2] = { ... }; Because the former assumed that all content in the Org table were strings 11-1 characters long. Other than that, the behavior of C & C++ remains the same, and the code is very close to the original ob-C.el Also, in the future we may lift the constraint that tables have to be homogeneous (all ints, or all doubles, or all strings). But that's another story. 12 days have passed since I paper-mailed my copyright assignment to the FSF. No news. In the meantime, if you want to use my work, do so: it is copyrighted with the GPL 3 or later. Regards, Thierry