From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: babel C, C++, D enhancement Date: Mon, 16 Jun 2014 18:24:57 -0400 Message-ID: <87lhswwkzq.fsf@alphaville.bos.redhat.com> 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]:60661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwfL8-0004eI-Hk for emacs-orgmode@gnu.org; Mon, 16 Jun 2014 18:25:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwfL1-0000pB-F1 for emacs-orgmode@gnu.org; Mon, 16 Jun 2014 18:25:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:37710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwfL1-0000p5-7m for emacs-orgmode@gnu.org; Mon, 16 Jun 2014 18:25:15 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WwfKx-0006Y4-Oy for emacs-orgmode@gnu.org; Tue, 17 Jun 2014 00:25:11 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2014 00:25:11 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Jun 2014 00:25:11 +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 tsd@tsdye.com (Thomas S. Dye) writes: > Aloha Thierry, > > How about a user-customizable variable with a default value of > 2147483647? > > All the best, > Tom > > Thierry Banel writes: > >> Hi Achim. >> >> 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... >> And this will have to be done for all languages (Python, Perl, Java, and >> so on), >> not just C++. >> >> Or we could assume that INT_MAX is always 2147483647. >> (Which of course is not true). >> >> Not so easy... >> You don't need to parse limits.h: for POSIX systems, one can use `getconf INT_MAX' from the shell. `getconf -a' will list all the names. Nick