From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Evans Newsgroups: gmane.lisp.guile.devel Subject: guile struct members are not a good 1-1 match for c structs Date: Tue, 29 Apr 2014 18:51:46 -0700 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1398822724 31590 80.91.229.3 (30 Apr 2014 01:52:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 01:52:04 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Apr 30 03:51:58 2014 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfJge-0008PB-0K for guile-devel@m.gmane.org; Wed, 30 Apr 2014 03:51:52 +0200 Original-Received: from localhost ([::1]:54353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfJgd-0008DI-Jk for guile-devel@m.gmane.org; Tue, 29 Apr 2014 21:51:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfJga-0008D0-7z for guile-devel@gnu.org; Tue, 29 Apr 2014 21:51:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfJgZ-0003li-EZ for guile-devel@gnu.org; Tue, 29 Apr 2014 21:51:48 -0400 Original-Received: from mail-yk0-x229.google.com ([2607:f8b0:4002:c07::229]:60905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfJgZ-0003le-Av for guile-devel@gnu.org; Tue, 29 Apr 2014 21:51:47 -0400 Original-Received: by mail-yk0-f169.google.com with SMTP id 142so951844ykq.14 for ; Tue, 29 Apr 2014 18:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=24fk8Q2T1atbBkYiLb91/eJ6LLa7tpxEWpTeVKGHI2I=; b=RTRyYsTrpe8uaZIjscCzz25xPerWiNANkUcsKdSnXkB4judjLj/jo+zOU0RS2R9H3a YbEwwmGZEebCkg0h4FdTd5UNHNmJjQKUUeDz+YjXbXfcIsFLYkeCD1tDne8ZN4sxTXrA aQ8YA19EsHiiY85c0TC23vN5yurqxCzsrRhe2obCyvPwe+Ba/MO5dKCOjdsLBc/L0UB9 wUOwEiEvj7WsLAqtFXH7tu4ZAUjIS90OAXXtIxld1iwV7cmzS0kOU2VIg03Cd2DPyIZd 5hzUd7sVU9B558nngNXOuIpjMz1Nhm3lbRKBnU6t9UPu6mR8xcCkJ41FoNlK7tBs2zXI ugIg== X-Received: by 10.236.113.69 with SMTP id z45mr2001082yhg.0.1398822706821; Tue, 29 Apr 2014 18:51:46 -0700 (PDT) Original-Received: by 10.170.214.130 with HTTP; Tue, 29 Apr 2014 18:51:46 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::229 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:17120 Archived-At: Hi all. While reading guile sources I happened across the implementation of struct scm_print_state. ref: libguile/print.h It (tries to) map a C struct to a set of Guile struct fields: ref: SCM_PRINT_STATE_LAYOUT. I *could* be missing something, but I think my angst can be represented with the following question: Has anyone tried to use scm_print_state from Scheme as a Guile struct on a host with 64 bit words and 32 bit ints and 32 bit longs? [P.S. This is with guile 2.0.9., which is what I have on my laptop - currently travelling and don't currently have access to the git tree.]