X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com 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=JXabpGmM5+ZmqtHnUetobO3eBcn9Tb3P9U5/scNdUFE=; b=RsME9zmZ/a1/lN7GIRE4bK1GrO4F6+fF0f+UiavLce4c5nGJlAxYz3qGg2u/sKd+bf nw+w8QZl59QYjpJV1Hmagkn7EgfOyoRqJi9XtZYklkNpgxf9SuoTxmSnYY4JfM5UMWsL ijOvDDutqC9vZORvm81iWPi+/XnzCyKzJiOxH1GOHOFWgrgxt2TDVUDjGZ6mR/gyvWu/ HJdVj4UjUNmwuNt8aARkf1hfQoYcUVwHoZO8wXVfrk93pBJsdQByW+HPTgyY6gq3eF66 V4r/TnFHRtZDutm9fpAB1H+ytxJmyGI1+rTI9lU8QZ9tdZED5wrYOQ4+YtqI2+7z45db yjjw== MIME-Version: 1.0 X-Received: by 10.180.24.72 with SMTP id s8mr11185559wif.20.1398601254080; Sun, 27 Apr 2014 05:20:54 -0700 (PDT) Date: Sun, 27 Apr 2014 15:20:53 +0300 Message-ID: Subject: [geda-user] From: Volodumur Koval To: "geda-user AT delorie DOT com" Content-Type: multipart/mixed; boundary=f46d0438933feead6704f8053a9c Reply-To: geda-user AT delorie DOT com --f46d0438933feead6704f8053a9c Content-Type: multipart/alternative; boundary=f46d0438933feead6204f8053a9a --f46d0438933feead6204f8053a9a Content-Type: text/plain; charset=UTF-8 Apply current patch for get netname list and end wire. --f46d0438933feead6204f8053a9a Content-Type: text/html; charset=UTF-8
Apply current patch for get netname list and end wire.
--f46d0438933feead6204f8053a9a-- --f46d0438933feead6704f8053a9c Content-Type: text/x-patch; charset=US-ASCII; name="0001-Add-search-list-netname-and-autoclose-wire-connectio.patch" Content-Disposition: attachment; filename="0001-Add-search-list-netname-and-autoclose-wire-connectio.patch" Content-Transfer-Encoding: base64 X-Att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ZXJvX2xlbmd0 aDsKQEAgLTUwOSw2ICs1MTAsNyBAQCBpbnQgb19uZXRfZW5kKEdzY2hlbVRvcGxldmVsICp3X2N1 cnJlbnQsIGludCB3X3gsIGludCB3X3kpCiAgICAgICAvKiBMRUFLIENIRUNLIDEgKi8KICAgICAg IHByZXZfY29ubl9vYmplY3RzID0gc19jb25uX3JldHVybl9vdGhlcnMgKE5VTEwsIG5ld19uZXQp OwogICAgICAgb19uZXRfYWRkX2J1c3JpcHBlcnMgKHdfY3VycmVudCwgbmV3X25ldCwgcHJldl9j b25uX29iamVjdHMpOworCSAgcmV0dmFsdWUgPSBvX25ldF9lbmRfd2lyZSh3X2N1cnJlbnQsIG5l d19uZXQsIHByZXZfY29ubl9vYmplY3RzKTsKICAgICAgIGdfbGlzdF9mcmVlIChwcmV2X2Nvbm5f b2JqZWN0cyk7CiAKICNpZiBERUJVRyAKQEAgLTU0NCw2ICs1NDYsNyBAQCBpbnQgb19uZXRfZW5k KEdzY2hlbVRvcGxldmVsICp3X2N1cnJlbnQsIGludCB3X3gsIGludCB3X3kpCiAgICAgICAvKiBM RUFLIENIRUNLIDIgKi8KICAgICAgIHByZXZfY29ubl9vYmplY3RzID0gc19jb25uX3JldHVybl9v dGhlcnMgKE5VTEwsIG5ld19uZXQpOwogICAgICAgb19uZXRfYWRkX2J1c3JpcHBlcnMgKHdfY3Vy cmVudCwgbmV3X25ldCwgcHJldl9jb25uX29iamVjdHMpOworCSAgcmV0dmFsdWUgPSBvX25ldF9l bmRfd2lyZSh3X2N1cnJlbnQsIG5ld19uZXQsIHByZXZfY29ubl9vYmplY3RzKTsKICAgICAgIGdf bGlzdF9mcmVlIChwcmV2X2Nvbm5fb2JqZWN0cyk7CiAjaWYgREVCVUcKICAgICAgIHNfY29ubl9w cmludChuZXdfbmV0LT5jb25uX2xpc3QpOwpAQCAtNTYyLDkgKzU2NSw3OCBAQCBpbnQgb19uZXRf ZW5kKEdzY2hlbVRvcGxldmVsICp3X2N1cnJlb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