Revision: 41530
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41530&view=rev
Author:   brlcad
Date:     2010-12-07 01:26:07 +0000 (Tue, 07 Dec 2010)

Log Message:
-----------
simplify, break unreached.  msvc complains about set statements within 
expressions, prefer moving them to separate lines.

Modified Paths:
--------------
    brlcad/trunk/src/libbu/parse.c

Modified: brlcad/trunk/src/libbu/parse.c
===================================================================
--- brlcad/trunk/src/libbu/parse.c      2010-12-07 01:05:58 UTC (rev 41529)
+++ brlcad/trunk/src/libbu/parse.c      2010-12-07 01:26:07 UTC (rev 41530)
@@ -768,12 +768,11 @@
                retval = _bu_parse_double(value, sdp->sp_count, (double *)loc);
                break;
            case 'p':
-               if((retval = _bu_struct_lookup((struct bu_structparse 
*)sdp->sp_count, name, base, value)) == 0) {
-                       return retval;
-               } else {
-                       continue;
+               retval = _bu_struct_lookup((struct bu_structparse 
*)sdp->sp_count, name, base, value);
+               if (retval == 0) {
+                   return 0; /* found */
                }
-               break;
+               continue;
            default:
                bu_log("_bu_struct_lookup(%s): unknown format '%s'\n",
                       name, sdp->sp_fmt);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to