Revision: 50687
          http://brlcad.svn.sourceforge.net/brlcad/?rev=50687&view=rev
Author:   tbrowder2
Date:     2012-05-25 16:42:34 +0000 (Fri, 25 May 2012)
Log Message:
-----------
add two more helper functions for bu_vls_vprintf; comment out temporarily to 
prevent unused warning/error

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

Modified: brlcad/trunk/src/libbu/vls.c
===================================================================
--- brlcad/trunk/src/libbu/vls.c        2012-05-25 16:25:28 UTC (rev 50686)
+++ brlcad/trunk/src/libbu/vls.c        2012-05-25 16:42:34 UTC (rev 50687)
@@ -650,6 +650,55 @@
        bu_vls_nibble(vp, 1);
 }
 
+#if 0 /* comment out temporarily to prevent unused warning/error */
+static int _is_format_flag(const char c);
+static
+int
+_is_format_flag(const char c)
+{
+    /* from 'man sprintf' */
+    switch (c) {
+        /* defined in C standard; */
+        case '#':
+        case '0':
+        case '-':
+        case ' ':
+        case '+':
+        case '\'': /* SUSv2 */
+        case 'I':  /* glibc 2.2 */
+            return 1;
+            break;
+        default:
+            return 0;
+            break;
+    }
+}
+
+static int _is_format_length_modifier(const char c);
+static
+int
+_is_format_length_modifier(const char c)
+{
+    /* from 'man sprintf' */
+    switch (c) {
+        /* defined in C standard; */
+        case 'h': /* can be doubled: 'hh' */
+        case 'l': /* can be doubled: 'll' */
+        case 'L':
+        case 'j':
+        case 'z':
+        case 't':
+
+        /* obsolete */
+        case 'q': /* 4.4BSD and libc5 only--don't use */
+            return 1;
+            break;
+        default:
+            return 0;
+            break;
+    }
+}
+
 static int _is_format_conversion_specifier(const char c);
 static
 int
@@ -692,6 +741,7 @@
             break;
     }
 }
+#endif
 
 void
 bu_vls_vprintf(struct bu_vls *vls, const char *fmt, va_list ap)

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