Revision: 42166
          http://brlcad.svn.sourceforge.net/brlcad/?rev=42166&view=rev
Author:   brlcad
Date:     2011-01-12 19:38:56 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
multicharacter string constants are not valid to cpp, so move the literal to a 
define in order to catch future auto-expansions

Modified Paths:
--------------
    brlcad/trunk/src/conv/iges/iges.c

Modified: brlcad/trunk/src/conv/iges/iges.c
===================================================================
--- brlcad/trunk/src/conv/iges/iges.c   2011-01-12 19:37:19 UTC (rev 42165)
+++ brlcad/trunk/src/conv/iges/iges.c   2011-01-12 19:38:56 UTC (rev 42166)
@@ -53,6 +53,7 @@
 
 /* define defaulted entry for directory entry array */
 #define DEFAULT (-99999)
+#define COMMA ','
 
 extern int verbose;
 static int solids_to_nmg=0;/* Count of solids that were converted to nmg's in 
CSG mode */
@@ -474,7 +475,7 @@
                        }
                        field_start = curr_loc;
 
-                       if (s[curr_loc] == ', ' || s[curr_loc] == ';') {
+                       if (s[curr_loc] == COMMA || s[curr_loc] == ';') {
                            /* empty field */
                            curr_loc++;
                        } else {
@@ -506,11 +507,11 @@
                                /* this is not a string and cannot be continued 
to next line */
 
                                /* find end of this field */
-                               while (curr_loc < str_len && s[curr_loc] != ', 
' && s[curr_loc] != ';') {
+                               while (curr_loc < str_len && s[curr_loc] != 
COMMA && s[curr_loc] != ';') {
                                    curr_loc++;
                                }
 
-                               if (s[curr_loc] == ', ' || s[curr_loc] == ';')
+                               if (s[curr_loc] == COMMA || s[curr_loc] == ';')
                                    curr_loc++;
 
                                if (curr_loc > line_end) {


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

Reply via email to