From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id B618D1381F3 for ; Sun, 2 Jun 2013 07:09:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC960E081D; Sun, 2 Jun 2013 07:09:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 06491E07D1 for ; Sun, 2 Jun 2013 07:09:30 +0000 (UTC) Received: from vapier.localnet (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 374DF33E0FF; Sun, 2 Jun 2013 07:09:30 +0000 (UTC) From: Mike Frysinger Organization: wh0rd.org To: =?utf-8?q?Micha=C5=82_G=C3=B3rny?= Subject: Re: [gentoo-dev] evar_push/pop helpers Date: Sun, 2 Jun 2013 03:09:31 -0400 User-Agent: KMail/1.13.7 (Linux/3.8.3; KDE/4.6.5; x86_64; ; ) Cc: gentoo-dev@lists.gentoo.org References: <201306012303.21261.vapier@gentoo.org> <20130602085134.40151bd2@gentoo.org> In-Reply-To: <20130602085134.40151bd2@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1461478.BtqqSCqlQO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201306020309.31841.vapier@gentoo.org> X-Archives-Salt: 3f499f7f-ea5b-4717-821f-96d3166c923d X-Archives-Hash: e75b7a160caef437006d272958555229 --nextPart1461478.BtqqSCqlQO Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sunday 02 June 2013 02:51:34 Micha=C5=82 G=C3=B3rny wrote: > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisa=C5=82(a): > > simple set of helpers to save/restore a variable in a limited section of > > code > >=20 > > you can see an example of it in action at the end of the file where i > > need to tweak epatch (and no, doing `LC_COLLATE=3DC set -- ....` does n= ot > > work). >=20 > Why the ugly hackery instead of proper 'local' scope? there's no way to undo the local thus it affects the rest of the func. thi= s=20 makes sure the change is actually localized to where it is needed. =2Dmike --nextPart1461478.BtqqSCqlQO Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAABAgAGBQJRqu+rAAoJEEFjO5/oN/WB7FIQAMFlluuAyMA8JVMf7je36vvK YSQbNNj4L/1/XqNwt15cGXPG25PTyjmaHyJ6af/jFmeCh/FS8PmRb4K+aEnimCXy TQsZ+E4tJg4d5e+3Yvo1cC2Wgex5UOCBUdA4oqrsH59gzW6n1DMjvVQMo7T4QcDp 2WJbyvMwk8BqadKrojhw2a3ILe7kShN85yC5TN2QaW0Oa7jtIhtQjWWIK8Qwrxkq gegnhqqw6Q1sx5HAibsfSYDtdjmFXS1eRDp2FHoysyTtZHRnK4b04GAWVQqIeEk7 ULfhbh2GHtqLauu0pXsvpzVUDpQtCqPs5LeM+u0PXo+27MGIMuiTZ6iEqXfw+hJf XtztkZNSK6SiuYEuqwsjyVtEY0i92UawWwn5cxjU2WcMw89H4bV9M6RcHkGGShMw Tfv56pMrTVW0K642gUzPtivFKdzn88Zkj0nQqLjjBri9tPJT515I76c9tP2mLIjg u7eBUH7zMdHN18rUudb09bBQy40MxIe7CPhUj+lDVdaldMLzEvyc/BscytAiwOHF b4vrYZziaget6aA018W9Uz0J2S3aWglRU0spiUQOjOzC5BxuUaDIwryiZmKHK0zt 7yg5Ie15zypYwlTnP2YEfL5+u2Y5bPLbDJZU2NRBQg6v5fHMdl9oGuj85RdyH1m0 A5bMRaQ3/VAOD+DltAAE =A1ki -----END PGP SIGNATURE----- --nextPart1461478.BtqqSCqlQO--