delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2019/11/29/19:31:38

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=draconx-ca.20150623.gappssmtp.com; s=20150623;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=rlTS5AEJr9HpYqvpcdGC4K/eYM+M9W5fKjnqA+NBlvY=;
b=uRhXhT0qWj8urDKO5iGNvxQturevAupOeH1ACCivhi17Gv6siPMU5N/T2aTgrHdK3d
o2dXmZT+TkQ/hDLfT6S4bNh9bsO62GxG3C/PzlqCWmqYO2/Lp092BYkq6jh3UO6/b8M3
iUxjd1P80Ul8G9avm/m+12cncz9nm/MSNkZwjoEisUtHksOQe+g1qw4NEzCp9rWrPmIe
vqMfUqERf50FUDfSKLHVC7ZSZ69zTF9xqguDahuU4MwUUpEsdnalXxwTBcA40E3H2fHr
0Zpr2dM9Was9fyVDGUdzxyOoMM9l1dRo9kYuFWHOY6jZYPqrfZl+5uwbfGS+8E/CgXia
0ejw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to;
bh=rlTS5AEJr9HpYqvpcdGC4K/eYM+M9W5fKjnqA+NBlvY=;
b=C2bBKl505hSBr6kcQx5G6X8s7ztPH+lnzNqv/YncqOdV3teWFVrRlbjYDQygRRXkJ3
eFxZo5XyOf9fIrTm//jQcyOYTxFlLfdKcDYDp6duj5ZA+d4aa+FQKEwk0rEnZQumzP7m
W4qNtfg9FwyVIJ+Aljq0le7O7nG5dbaIaYCBbwAAcf8wQK0DTI86cETPmSbetQqNB0HB
iPV+Ack8UoLL0xAFzWZ6BcuGowW5+vus8JN9ioOS4W/YAmEzhKjfzCR0NNielPoW74qD
io1WiAYTx2qxh5qJTlizZtpkPtDePq7B4Jn2JAQJ9j8Y/rxEFCqlqQHnE9KN1K837I79
6VyA==
X-Gm-Message-State: APjAAAW/Ysn20/0iip8pQlyblQiZbCZgm/xbAE1Mi/MQjDuaej4siRFQ
un5SVISJTl5ejfMJi300v8n95BfjClL7vWg4Utr8fj2BcBegJA==
X-Google-Smtp-Source: APXvYqyWDLqU6aaT9S3aBD8f8GtXZn6P0sWCeVvF4c8XWZKFRATnPirypYKHHfAGgAZj3Wk4q9bGLUqNznTjl843+4g=
X-Received: by 2002:a25:84cd:: with SMTP id x13mr29329039ybm.452.1575072585410;
Fri, 29 Nov 2019 16:09:45 -0800 (PST)
MIME-Version: 1.0
X-Originating-IP: [162.243.96.244]
In-Reply-To: <alpine.DEB.2.20.1911292306280.1620@nimbus>
References: <20191129180210 DOT 507F38038A58 AT turkos DOT aspodata DOT se> <alpine DOT DEB DOT 2 DOT 20 DOT 1911292306280 DOT 1620 AT nimbus>
From: "Nick Bowler (nbowler AT draconx DOT ca) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
Date: Fri, 29 Nov 2019 19:09:44 -0500
Message-ID: <CADyTPEyPtfpJkBgx8da6sV1iUWTNOuuKtt7E9yHzVsZqpxpnXg@mail.gmail.com>
Subject: Re: [geda-user] fam.h
To: geda-user AT delorie DOT com
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 11/29/19, Roland Lutz <rlutz AT hedmen DOT org> wrote:
> You should be fine using Nick's patch until I fixed this.  I don't
> recommend applying it when using FAM (or gamin), though, because
> sizeof(enum FAMCodes) isn't necessarily equal to sizeof(int).

I don't believe this matters, as I think the functions being modified
are totally internal to gschem unless I missed something.  I didn't see
anything that suggested the exact signatures of these functions
mattered at all.

In C, an int is guaranteed to be big enough to hold the value of any
enum constant because the constants themselves always have type int
(even if the type of 'enum FAMCodes' is different).

Cheers,
  Nick

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019