Revision: 50712
          http://brlcad.svn.sourceforge.net/brlcad/?rev=50712&view=rev
Author:   tbrowder2
Date:     2012-05-27 01:10:30 +0000 (Sun, 27 May 2012)
Log Message:
-----------
change macros to local const ints

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

Modified: brlcad/trunk/src/libbu/vls.c
===================================================================
--- brlcad/trunk/src/libbu/vls.c        2012-05-27 00:00:31 UTC (rev 50711)
+++ brlcad/trunk/src/libbu/vls.c        2012-05-27 01:10:30 UTC (rev 50712)
@@ -772,31 +772,30 @@
     const char *ep; /* end pointer */
     int len;
 
-/* flags for fmt specifier attributes */
-/* short (char) length modifiers */
-#define SHORTINT  0x0001
-#define SHHRTINT  0x0002
-/* integer length modifiers */
-#define LONG_INT  0x0004
-#define LLONGINT  0x0008
-/* double length modifiers */
-#define LONGDBLE  0x0010
-/* other integer length modifiers */
-#define INTMAX_T  0x0020
-#define PTRDIFFT  0x0040
-#define SIZETINT  0x0080
-/* misc */
-#define FIELDLEN  0x0100
-#define PRECISION 0x0200
+    /* bit flags for fmt specifier attributes */
+    /* short (char) length modifiers */
+    const int SHORTINT =  0x0001;
+    const int SHHRTINT =  0x0002;
+    /* integer length modifiers */
+    const int LONG_INT =  0x0004;
+    const int LLONGINT =  0x0008;
+    /* double length modifiers */
+    const int LONGDBLE =  0x0010;
+    /* other integer length modifiers */
+    const int INTMAX_T =  0x0020;
+    const int PTRDIFFT =  0x0040;
+    const int SIZETINT =  0x0080;
+    /* misc */
+    const int FIELDLEN =  0x0100;
+    const int PRECISION = 0x0200;
+    /* groups */
+    const int MISCINTMODS    = (INTMAX_T | PTRDIFFT | SIZETINT);
+    const int SHORTINTMODS   = (SHORTINT | SHHRTINT);
+    const int LONGINTMODS    = (LONG_INT | LLONGINT);
+    const int ALL_INTMODS    = (SHORTINTMODS | LONGINTMODS | MISCINTMODS);
+    const int ALL_DOUBLEMODS = (LONGDBLE);
+    const int ALL_LENGTHMODS = (ALL_INTMODS | ALL_DOUBLEMODS);
 
-/* groups */
-#define MISCINTMODS    (INTMAX_T | PTRDIFFT | SIZETINT)
-#define SHORTINTMODS   (SHORTINT | SHHRTINT)
-#define LONGINTMODS    (LONG_INT | LLONGINT)
-#define ALL_INTMODS    (SHORTINTMODS | LONGINTMODS | MISCINTMODS)
-#define ALL_DOUBLEMODS (LONGDBLE)
-#define ALL_LENGTHMODS (ALL_INTMODS | ALL_DOUBLEMODS)
-
     /* flag variables are reset for each fmt specifier */
     vflags_t f;
 

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


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to