Re: cmd: Avoid rereading batch file for every call/goto executed (try 2)
5 Sep
2011
5 Sep
'11
7:47 a.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
10: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
5215
Age (days ago)
5215
Last active (days ago)
1 comments
2 participants
participants (2)
-
Frédéric Delanoy -
Octavian Voicu