From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.user Subject: Re: (fcntl fd F_GETLK ...) from Guile Date: Tue, 11 Sep 2007 09:03:00 -0700 (PDT) Message-ID: <288513.2678.qm@web37902.mail.mud.yahoo.com> References: <87ejh5uu09.fsf@doganov.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1189526932 29787 80.91.229.12 (11 Sep 2007 16:08:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 16:08:52 +0000 (UTC) To: Kaloian Doganov , guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 11 18:08:50 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV8I2-0000C9-2A for guile-user@m.gmane.org; Tue, 11 Sep 2007 18:08:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IV8I2-0007uK-4T for guile-user@m.gmane.org; Tue, 11 Sep 2007 12:08:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IV8Ch-0001Nh-08 for guile-user@gnu.org; Tue, 11 Sep 2007 12:03:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IV8Cf-0001LU-CP for guile-user@gnu.org; Tue, 11 Sep 2007 12:03:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IV8Cf-0001LD-8a for guile-user@gnu.org; Tue, 11 Sep 2007 12:03:05 -0400 Original-Received: from web37902.mail.mud.yahoo.com ([209.191.91.164]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IV8Ce-00032t-Ky for guile-user@gnu.org; Tue, 11 Sep 2007 12:03:04 -0400 Original-Received: (qmail 2877 invoked by uid 60001); 11 Sep 2007 16:03:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=ZWVFc4xtCPTtENiRm3EFNxTn3A17b1wWO4yhU9CWnfukR2iQJHe4FahFxTk4ey67cB+APnm+IKw6ndwq3b8eIDc1tOf/r7HZKfCqB3YNYiudbSbHavP/6F9Pi34GsLttXoZCWHWqeZMob89uXua6p4ixDp14pA8edpgcO8XN2aE=; X-YMail-OSG: buF.7QsVM1l4gOOUDP89brFM7HxCpVLtFu3r55ZiRensUZ0ihKuRXtpUgciv.cWvog.8uclkQw-- Original-Received: from [76.80.200.209] by web37902.mail.mud.yahoo.com via HTTP; Tue, 11 Sep 2007 09:03:00 PDT In-Reply-To: <87ejh5uu09.fsf@doganov.org> X-Detected-Kernel: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6142 Archived-At: --- Kaloian Doganov wrote: > I've just managed to backport your example to Guile 1.6.x. and come > up > with the following table of correspondence: > > Guile 1.8.x Guile 1.6.x > -------------- ----------- > scm_is_integer SCM_INUMP > scm_is_true SCM_NFALSEP > scm_to_int SCM_INUM > scm_to_int32 SCM_INUM > scm_from_int SCM_MAKINUM > scm_from_int32 SCM_MAKINUM > scm_to_short (x) scm_num2short (x, 0, NULL) > scm_from_short scm_short2num > That appears correct. > Not sure whether it is correct, but works for the trivial examples I > run for now. I don't know what to do with scm_to_int64 and > scm_from_int64, though. For many machines 64bits is long long integers. Try scm_num2long_long and scm_long_long2num. -Mike Gran _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user