Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] evar_push/pop helpers
Date: Sun, 02 Jun 2013 07:09:39
Message-Id: 201306020309.31841.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] evar_push/pop helpers by "Michał Górny"
1 On Sunday 02 June 2013 02:51:34 Michał Górny wrote:
2 > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisał(a):
3 > > simple set of helpers to save/restore a variable in a limited section of
4 > > code
5 > >
6 > > you can see an example of it in action at the end of the file where i
7 > > need to tweak epatch (and no, doing `LC_COLLATE=C set -- ....` does not
8 > > work).
9 >
10 > Why the ugly hackery instead of proper 'local' scope?
11
12 there's no way to undo the local thus it affects the rest of the func. this
13 makes sure the change is actually localized to where it is needed.
14 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] evar_push/pop helpers "Michał Górny" <mgorny@g.o>
Re: [gentoo-dev] evar_push/pop helpers Tom Wijsman <TomWij@g.o>