From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: babel C, C++, D enhancement Date: Tue, 17 Jun 2014 19:16:06 +0200 Message-ID: <87k38f78yx.fsf@Rainer.invalid> References: <878urc0zmw.fsf@bzg.ath.cx> <874n1ryeq1.fsf@bzg.ath.cx> <87y4xgxu74.fsf@Rainer.invalid> <87r438uycj.fsf@bzg.ath.cx> <538BA215.2050305@free.fr> <877g4uezak.fsf@gmail.com> <5394C55B.7010906@free.fr> <87tx7vq955.fsf@gmail.com> <87ha3p8fq9.fsf@Rainer.invalid> <539B762F.90406@free.fr> <878uowpv4b.fsf@Rainer.invalid> <539F5842.2060209@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51420) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwwze-0004oF-LK for emacs-orgmode@gnu.org; Tue, 17 Jun 2014 13:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwwzX-0002Kk-Jh for emacs-orgmode@gnu.org; Tue, 17 Jun 2014 13:16:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:33926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwwzX-0002K5-9S for emacs-orgmode@gnu.org; Tue, 17 Jun 2014 13:16:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WwwzW-0005uw-FI for emacs-orgmode@gnu.org; Tue, 17 Jun 2014 19:16:14 +0200 Received: from pd9eb3173.dip0.t-ipconnect.de ([217.235.49.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2014 19:16:14 +0200 Received: from Stromeko by pd9eb3173.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2014 19:16:14 +0200 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 Thierry Banel writes: > You are right, INT_MAX is the C++ constant to compare to. > It is defined in limits.h > > I'm not sure I want to locate limits.h (where is it ? are there several > versions ?), > and parse it, all from within Emacs-lisp... No, this isn't something you should even try. The only method that is known to work is what autoconf does: compile a program and check the output. > And this will have to be done for all languages (Python, Perl, Java, > and so on), not just C++. Let's stick with C(++) and solve that problem first, that there is a lot of boilerplate code in Babel language support that should be lifted off elsewhere is a discussion for another time. > Or we could assume that INT_MAX is always 2147483647. > (Which of course is not true). You've just made compilers customizable. For a start, make those constants customizable per compiler as well? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada