From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61334 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: io.readnumber / l-io.lua (with patch) Date: Mon, 30 Aug 2010 14:11:55 +0200 Message-ID: <20100830121139.GA17394@aides> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1830340842==" X-Trace: dough.gmane.org 1283170320 8018 80.91.229.12 (30 Aug 2010 12:12:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 12:12:00 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 30 14:11:55 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq3DP-00031g-2I for gctc-ntg-context-518@m.gmane.org; Mon, 30 Aug 2010 14:11:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 12A24CA5BB; Mon, 30 Aug 2010 14:11:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id KzICgWZARbTw; Mon, 30 Aug 2010 14:11:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 757CFCA59B; Mon, 30 Aug 2010 14:11:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BCCD0CA59B for ; Mon, 30 Aug 2010 14:11:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PH4K+y8pH7CV for ; Mon, 30 Aug 2010 14:11:34 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 2BF15CA593 for ; Mon, 30 Aug 2010 14:11:34 +0200 (CEST) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7UCBQXR016280 for ; Mon, 30 Aug 2010 14:11:27 +0200 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id o7UCBOEe003913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 Aug 2010 14:11:24 +0200 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id o7UCBPE4007039 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 30 Aug 2010 14:11:25 +0200 Original-Received: from localhost (mnhm-4d012b5b.pool.mediaWays.net [77.1.43.91]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id o7UCBFIW030179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Mon, 30 Aug 2010 14:11:16 +0200 X-Operating-System: Linux aides 2.6.35-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rD0Abq4m - 2da908313bff - 20100830 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61334 Archived-At: --===============1830340842== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZJcv+A0YCCLh2VIg" Content-Disposition: inline --ZJcv+A0YCCLh2VIg Content-Type: multipart/mixed; boundary="5G06lTa6Jq83wMTw" Content-Disposition: inline --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, the function io.readnumber fails to call itself. I append a patch. Philipp --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --5G06lTa6Jq83wMTw Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch_l-io-lua Content-Transfer-Encoding: quoted-printable --- l-io.lua 2010-08-18 17:37:25.000000000 +0200 +++ /home/laokoon/versuche/lua/dok/examples/io/l-io.lua 2010-08-30 14:01:02= =2E000000000 +0200 @@ -186,7 +186,7 @@ end end =20 -function io.readnumber(f,n,m) +local function readnumber(f,n,m) if m then f:seek("set",n) n =3D m @@ -201,7 +201,7 @@ return 256^3 * a + 256^2 * b + 256*c + d elseif n =3D=3D 8 then local a, b =3D readnumber(f,4), readnumber(f,4) - return 256 * b + c + return 256 * a + b elseif n =3D=3D 12 then local a, b, c =3D readnumber(f,4), readnumber(f,4), readnumber(f,4) return 256^2 * a + 256 * b + c @@ -210,6 +210,8 @@ end end =20 +io.readnumber =3D readnumber + function io.readstring(f,n,m) if m then f:seek("set",n) --5G06lTa6Jq83wMTw-- --ZJcv+A0YCCLh2VIg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkx7oAoACgkQ02lYlJYWs9JhfwCfZoJRJVJyCzQnWeKLd+FlyNZi fNwAnjBMBY0D0WQor/vbo675EAGx4Vcm =5FtZ -----END PGP SIGNATURE----- --ZJcv+A0YCCLh2VIg-- --===============1830340842== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1830340842==--