X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Tue, 28 Nov 2017 17:44:09 +0100 (CET) From: Roland Lutz To: geda-user AT delorie DOT com Subject: [geda-user] Object data validation/normalization Message-ID: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Reply-To: geda-user AT delorie DOT com Hi, I just pushed a series of patches for gEDA/gaf. While most are small improvements and bugfixes, there's one change that may be worth extra mention: Object data is now validated and normalized when it enters a revision object. Validation means that an attribute can only hold a value which is valid for this kind of attribute in order for the operation to succeed; e.g., an angle can only be set to 0, 90, 180, or 270. Normalization means that unused fields are stored as a valid default; e.g., if an object has a hatched fill, retrieving the second angle or pitch value always yields zero. In theory, this shouldn't affect the behavior of gEDA/gaf in any way. However, there were several places in the code which relied on storing technically invalid values in some fields; most importantly, unused fields were set to -1 internally. I believe I fixed all relevant places in the code, and the tests run fine, but I'd be grateful if you could run the current netlister against your designs anyway and report any unexpected errors. Roland