Re: [gentoo-dev] evar_push/pop helpers

2013-06-17 Thread Greg KH
On Mon, Jun 17, 2013 at 01:46:02AM -0400, Mike Frysinger wrote: > here's v2 These changes look good to me, and quite useful, thanks for doing this work. greg k-h

Re: [gentoo-dev] evar_push/pop helpers

2013-06-16 Thread Mike Frysinger
here's v2 -mike --- eutils.eclass 22 May 2013 05:10:29 - 1.421 +++ eutils.eclass 17 Jun 2013 05:41:58 - @@ -146,6 +146,79 @@ estack_pop() { eval unset ${__estack_name}\[${__estack_i}\] } +# @FUNCTION: evar_push +# @USAGE: [more vars to save] +# @DESCRIPTION: +#

Re: [gentoo-dev] evar_push/pop helpers

2013-06-16 Thread Mike Frysinger
On Sunday 02 June 2013 03:48:17 Tom Wijsman wrote: > On Sun, 2 Jun 2013 03:29:33 -0400 Mike Frysinger wrote: > > except you aren't handling edge cases (like set vs unset) > > You've got me there, though this is quite an exception; I don't see > why we have to introduce something that's barely used

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Andreas K. Huettel
Am Sonntag, 2. Juni 2013, 17:40:45 schrieb Mike Frysinger: > > i snipped the rest of your e-mail because it wasn't worth responding to > -mike Please. Save your social skills for other people. -- Andreas K. Huettel Gentoo Linux developer dilfri...@gentoo.org http://www.akhuettel.de/

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Mike Frysinger
On Sunday 02 June 2013 04:39:32 Michał Górny wrote: > Dnia 2013-06-02, o godz. 03:29:33 Mike Frysinger napisał(a): > > On Sunday 02 June 2013 03:16:53 Michał Górny wrote: > > > Dnia 2013-06-02, o godz. 03:09:31 Mike Frysinger napisał(a): > > > > On Sunday 02 June 2013 02:51:34 Michał Górny wrote: >

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Michał Górny
Dnia 2013-06-02, o godz. 03:29:33 Mike Frysinger napisał(a): > On Sunday 02 June 2013 03:16:53 Michał Górny wrote: > > Dnia 2013-06-02, o godz. 03:09:31 Mike Frysinger napisał(a): > > > On Sunday 02 June 2013 02:51:34 Michał Górny wrote: > > > > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger na

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Tom Wijsman
On Sun, 2 Jun 2013 03:29:33 -0400 Mike Frysinger wrote: > except you aren't handling edge cases (like set vs unset) You've got me there, though this is quite an exception; I don't see why we have to introduce something that's barely used... `qgrep -eH '^\s*\bset\b' | wc -l` yields 150 `qgrep -

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Tom Wijsman
On Sun, 2 Jun 2013 03:09:31 -0400 Mike Frysinger wrote: > there's no way to undo the local thus it affects the rest of the > func. this makes sure the change is actually localized to where it > is needed. -mike In other languages you can freely introduce local scopes { ... }, this isn't possibl

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Mike Frysinger
On Sunday 02 June 2013 03:16:53 Michał Górny wrote: > Dnia 2013-06-02, o godz. 03:09:31 Mike Frysinger napisał(a): > > On Sunday 02 June 2013 02:51:34 Michał Górny wrote: > > > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisał(a): > > > > simple set of helpers to save/restore a variable in a

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Michał Górny
Dnia 2013-06-02, o godz. 03:09:31 Mike Frysinger napisał(a): > On Sunday 02 June 2013 02:51:34 Michał Górny wrote: > > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisał(a): > > > simple set of helpers to save/restore a variable in a limited section of > > > code > > > > > > you can see an

Re: [gentoo-dev] evar_push/pop helpers

2013-06-02 Thread Mike Frysinger
On Sunday 02 June 2013 02:51:34 Michał Górny wrote: > Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisał(a): > > simple set of helpers to save/restore a variable in a limited section of > > code > > > > you can see an example of it in action at the end of the file where i > > need to tweak e

Re: [gentoo-dev] evar_push/pop helpers

2013-06-01 Thread Michał Górny
Dnia 2013-06-01, o godz. 23:03:20 Mike Frysinger napisał(a): > simple set of helpers to save/restore a variable in a limited section of code > > 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=C set -- ` does not work).

[gentoo-dev] evar_push/pop helpers

2013-06-01 Thread Mike Frysinger
simple set of helpers to save/restore a variable in a limited section of code 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=C set -- ` does not work). -mike --- eutils.eclass 22 May 2013 05:10:29 - 1.421 ++