Re: cmd: Avoid rereading batch file for every call/goto executed (try 2)
4 Sep
2011
4 Sep
'11
11:47 p.m.
2011/9/5 Frédéric Delanoy <frederic.delanoy(a)gmail.com>:
+ static WCHAR string[MAX_PATH];
Why make this static? It's only a temporary buffer and it's only used once, when building the cache. Octavian
5 Sep
5 Sep
2:15 a.m.
New subject: cmd: Avoid rereading batch file for every call/goto executed (try 2)
On Mon, Sep 5, 2011 at 06:47, Octavian Voicu <octavian.voicu(a)gmail.com> wrote:
2011/9/5 Frédéric Delanoy <frederic.delanoy(a)gmail.com>:
+ static WCHAR string[MAX_PATH];
Why make this static? It's only a temporary buffer and it's only used once, when building the cache.
Yeah true. Bad copy-paste from old WCMD_goto, although making it non-static won't change much, save conserving some memory. Will resubmit without the "static" part. Frédéric
5302
Age (days ago)
5302
Last active (days ago)
1 comments
2 participants
participants (2)
-
Frédéric Delanoy -
Octavian Voicu