Revision: 42208
http://brlcad.svn.sourceforge.net/brlcad/?rev=42208&view=rev
Author: brlcad
Date: 2011-01-13 05:04:41 +0000 (Thu, 13 Jan 2011)
Log Message:
-----------
a lot more manual BU_STR_EQUAL conversions
Modified Paths:
--------------
brlcad/trunk/src/burst/burst.c
brlcad/trunk/src/burst/error.c
brlcad/trunk/src/burst/fb.c
brlcad/trunk/src/burst/ui.c
Modified: brlcad/trunk/src/burst/burst.c
===================================================================
--- brlcad/trunk/src/burst/burst.c 2011-01-13 05:03:17 UTC (rev 42207)
+++ brlcad/trunk/src/burst/burst.c 2011-01-13 05:04:41 UTC (rev 42208)
@@ -155,7 +155,7 @@
brst_log(" ");
brst_log("^\n");
} else
- if (strcmp(cmdname, CMD_COMMENT) == 0) {
+ if (BU_STR_EQUAL(cmdname, CMD_COMMENT)) {
/* special handling for comments */
cmdptr = cmdbuf;
cmdbuf[strlen(cmdbuf)-1] = '\0'; /* clobber newline */
Modified: brlcad/trunk/src/burst/error.c
===================================================================
--- brlcad/trunk/src/burst/error.c 2011-01-13 05:03:17 UTC (rev 42207)
+++ brlcad/trunk/src/burst/error.c 2011-01-13 05:04:41 UTC (rev 42208)
@@ -46,7 +46,7 @@
{
va_list ap;
va_start(ap, fmt);
- if (tty && (errfile[0] == '\0' || ! strcmp(errfile, "/dev/tty"))) {
+ if (tty && (errfile[0] == '\0' || BU_STR_EQUAL(errfile, "/dev/tty"))) {
clr_Tabs(HmTtyFd);
if (ScDL != NULL) {
(void) ScMvCursor(1, SCROLL_TOP);
Modified: brlcad/trunk/src/burst/fb.c
===================================================================
--- brlcad/trunk/src/burst/fb.c 2011-01-13 05:03:17 UTC (rev 42207)
+++ brlcad/trunk/src/burst/fb.c 2011-01-13 05:04:41 UTC (rev 42208)
@@ -61,7 +61,7 @@
if (fbiop == FBIO_NULL || fb_getwidth(fbiop) != devwid)
needopen = 1; /* not currently open or size changed */
else
- if (lastfbfile[0] != NUL && strcmp(fbfile, lastfbfile) != 0)
+ if (lastfbfile[0] != NUL && !BU_STR_EQUAL(fbfile, lastfbfile))
needopen = 1; /* name changed */
bu_strlcpy(lastfbfile, fbfile, LNBUFSZ);
Modified: brlcad/trunk/src/burst/ui.c
===================================================================
--- brlcad/trunk/src/burst/ui.c 2011-01-13 05:03:17 UTC (rev 42207)
+++ brlcad/trunk/src/burst/ui.c 2011-01-13 05:04:41 UTC (rev 42208)
@@ -534,15 +534,15 @@
static int
unitStrToInt(char *str)
{
- if (strcmp(str, UNITS_INCHES) == 0)
+ if (BU_STR_EQUAL(str, UNITS_INCHES))
return U_INCHES;
- if (strcmp(str, UNITS_FEET) == 0)
+ if (BU_STR_EQUAL(str, UNITS_FEET))
return U_FEET;
- if (strcmp(str, UNITS_MILLIMETERS) == 0)
+ if (BU_STR_EQUAL(str, UNITS_MILLIMETERS))
return U_MILLIMETERS;
- if (strcmp(str, UNITS_CENTIMETERS) == 0)
+ if (BU_STR_EQUAL(str, UNITS_CENTIMETERS))
return U_CENTIMETERS;
- if (strcmp(str, UNITS_METERS) == 0)
+ if (BU_STR_EQUAL(str, UNITS_METERS))
return U_METERS;
return U_BAD;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits