delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2013/09/01/09:03:15

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Date: Sun, 1 Sep 2013 15:13:57 +0200 (CEST)
X-X-Sender: igor2 AT igor2priv
To: geda-user AT delorie DOT com
X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu"
From: gedau AT igor2 DOT repo DOT hu
Subject: Re: [geda-user] PCB file format - compatibility suggestion
In-Reply-To: <5223378D.4010208@jump-ing.de>
Message-ID: <alpine.DEB.2.00.1309011501520.11551@igor2priv>
References: <alpine DOT DEB DOT 2 DOT 00 DOT 1309010843540 DOT 11551 AT igor2priv> <5223378D DOT 4010208 AT jump-ing DOT de>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
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

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--0-563823897-1378041237=:11551
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed



On Sun, 1 Sep 2013, Markus Hitter wrote:

> Am 01.09.2013 09:00, schrieb gedau AT igor2 DOT repo DOT hu:
>> I've started a local branch/fork/whatever of PCB to add a few features I
>> need daily. These features required adding new element and pin/pad
>> flags. Mainstream PCB does not understand these flags, and that is
>> expected.
>
> Is it possible these additional flags are interesting for everybody? Or
> are they more like arbitrary notes?


Arbitrary ones. If you want to implement a new feature 
_optionally_ affecting elements, pins, pads, text, lines, etc. in your 
branch, it may end up requiring a new flag. If another branch or release 
of PCB deletes these flags in a load&save cycle, incompatibility between 
such branches are guaranteed.

> Together with some means to edit these flags I'd call this not a hack,
> but a valueable feature. Even if I can't imagine right now, how such
> custom flags might be useful.

In my version:
  - nonetlist flag of an element means the element is not in the netlist 
and should not cause a short (useful for 1206 jumpers - I hated to add 
them on schematics)
  - intconn(g) for pins and pads, representing internal connections of an 
element, which my version of find.c can track (g being an integer group ID)
  - shape(i) for pins to have more polygon shaped pins beyond square and 
octagon

>
> Anyways, patches are always welcome. Here, or better into the Launchpad
> bug tracker. If you feel like you'd prefer to apply them yourselfs, it
> isn't hard to convince DJ Delorie to give you write access to the repo.
> Just ask.

The only patch I could extract is from my svn; if anyone wants to invest 
the time to merge it with current versions (but I based my branch 
on the last stable release, which is like 2 years old), attached. It 
doesn't add an UI for editing those unknown flags. Since this patch was 
for my fork, I did not follow the (inconsistent) whitespace and naming 
conventions of the existing code.

Regards,

Tibor
--0-563823897-1378041237=:11551
Content-Type: TEXT/x-diff; name=flagcomp.diff
Content-Transfer-Encoding: BASE64
Content-ID: <alpine DOT DEB DOT 2 DOT 00 DOT 1309011513570 DOT 11551 AT igor2priv>
Content-Description: 
Content-Disposition: attachment; filename=flagcomp.diff

SW5kZXg6IGRyYXcuYw0KPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KLS0tIGRy
YXcuYwkocmV2aXNpb24gNDUpDQorKysgZHJhdy5jCShyZXZpc2lvbiA0OCkN
CkBAIC0xNDg3LDYgKzE0ODcsMTggQEANCiAgIEVORF9MT09QOw0KIH0NCiAN
Cit2b2lkDQorRXJhc2VGbGFncyhGbGFnVHlwZSAqZikNCit7DQorCXVua25v
d25fZmxhZ190ICp1LCAqbmV4dDsNCisJZm9yKHUgPSBmLT51bmtub3duczsg
dSAhPSBOVUxMOyB1ID0gbmV4dCkgew0KKwkJZnJlZSh1LT5zdHIpOw0KKwkJ
bmV4dCA9IHUtPm5leHQ7DQorCQlmcmVlKHUpOw0KKwl9DQorCWYtPnVua25v
d25zID0gTlVMTDsNCit9DQorDQogLyogLS0tLS0tLS0tLS0tLS0tLS0tLS0t
LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t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ogICB1bnNpZ25l
ZCBjaGFyIGludF9jb25uX2dycDsNCisgIHVua25vd25fZmxhZ190ICp1bmtu
b3duczsNCiB9IEZsYWdUeXBlLCAqRmxhZ1R5cGVQdHI7DQogDQogI2lmbmRl
ZiBfX0dOVUNfXw0KSW5kZXg6IHN0cmZsYWdzLmMNCj09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT0NCi0tLSBzdHJmbGFncy5jCShyZXZpc2lvbiA0NSkNCisrKyBz
dHJmbGFncy5jCShyZXZpc2lvbiA0OCkNCkBAIC00MzksOSArNDM5LDM1IEBA
DQogCSAgaWYgKCFmb3VuZCkNCiAJICAgIHsNCiAJICAgICAgY29uc3QgY2hh
ciAqZm10ID0gIlVua25vd24gZmxhZzogXCIlLipzXCIgaWdub3JlZCI7DQot
CSAgICAgIGNoYXIgKm1zZyA9IGFsbG9jX2J1ZiAoc3RybGVuIChmbXQpICsg
Zmxlbik7DQorCSAgICAgIHVua25vd25fZmxhZ190ICp1Ow0KKwkgICAgICBj
aGFyICptc2csICpzOw0KKw0KKwkgICAgICAvKiBpbmNsdWRlICgpICovDQor
CSAgICAgIHMgPSBmcCArIGZsZW47DQorCSAgICAgIGlmICgqcyA9PSAnKCcp
IHsNCisJICAgICAgCXdoaWxlKCpzICE9ICcpJykgew0KKwkgICAgICAJCWZs
ZW4rKzsNCisJICAgICAgCQlzKys7DQorCSAgICAgIAl9DQorCSAgICAgIH0N
CisJICAgICAgaWYgKCpzID09ICcpJykNCisJICAgICAgCWZsZW4rKzsNCisN
CisJICAgICAgbXNnID0gYWxsb2NfYnVmIChzdHJsZW4gKGZtdCkgKyBmbGVu
KTsNCiAJICAgICAgc3ByaW50ZiAobXNnLCBmbXQsIGZsZW4sIGZwKTsNCiAJ
ICAgICAgZXJyb3IgKG1zZyk7DQorDQorCSAgICAgIHUgPSBtYWxsb2Moc2l6
ZW9mKHVua25vd25fZmxhZ190KSk7DQor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dSA9IHUtPm5leHQpIHsNCisJ
CWludCBsZW47DQorCQlsZW4gPSBzdHJsZW4odS0+c3RyKTsNCisJCWlmIChi
cCAhPSBidWYgKyAxKQ0KKwkJCSpicCsrID0gJywnOw0KKwkJbWVtY3B5KGJw
LCB1LT5zdHIsIGxlbik7DQorCQlicCArPSBsZW47DQorCX0NCisNCiAgICpi
cCsrID0gJyInOw0KICAgKmJwID0gMDsNCiAgIHJldHVybiBidWY7DQo=

--0-563823897-1378041237=:11551--

- Raw text -


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