wine/programs/regedit regproc.h regproc.c rege ...
Dustin Navea
speeddymon at yahoo.com
Thu Aug 14 15:19:06 CDT 2003
--- Vincent Béron <vberon at mecano.gme.usherb.ca> wrote:
> Le jeu 14/08/2003 à 15:36, Dustin Navea a écrit :
> > if (action == ACTION_UNDEF)
> > {
> > if (*s)
> > action = ACTION_ADD;
> > return FALSE;
> > }
>
> This won't do the same thing (the return statement will always be
> executed).
oops mis-read the code lol.. action = ACTION_ADD if *s is not null or false
and so the return is not executed (good). In my code, the return is executed
regardless of action's value (bad).. but the first way i wrote (adding the
else) is better because you only check the value of action twice if *s is
null or false (!*s) (less processing if (*s)) heh confused yet?
=====
--
Dustin Navea
Minor Contributor, http://www.winehq.com
Bugzilla Janitor, http://bugs.winehq.com
Network Admin, irc://irc.blynk.net (down)
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the wine-devel
mailing list