Revision: 50660
http://brlcad.svn.sourceforge.net/brlcad/?rev=50660&view=rev
Author: tbrowder2
Date: 2012-05-24 19:34:52 +0000 (Thu, 24 May 2012)
Log Message:
-----------
move all length modifier checks to end of format specifier parse, add comment
to that effect
Modified Paths:
--------------
brlcad/trunk/src/libbu/vls.c
Modified: brlcad/trunk/src/libbu/vls.c
===================================================================
--- brlcad/trunk/src/libbu/vls.c 2012-05-24 19:30:30 UTC (rev 50659)
+++ brlcad/trunk/src/libbu/vls.c 2012-05-24 19:34:52 UTC (rev 50660)
@@ -759,16 +759,6 @@
} else {
left_justify = 1;
}
- } else if (*ep == 'l') {
- /* clear all length modifiers first */
- flags ^= ALL_LENGTHMODS;
- if (flags & LONG_INT) {
- /* 'l' can be doubled, this step recognizes that */
- flags |= LLONGINT;
- } else {
- /* set the new flag */
- flags |= LONG_INT;
- }
} else if (*ep == '*') {
/* the first occurrence is the field width, but the
second occurrence is the precision specifier */
@@ -780,6 +770,23 @@
precision = va_arg(ap, int);
flags |= PRECISION;
}
+ } else if (*ep == 'j') {
+ flags |= INTMAX_T;
+ } else if (*ep == 't') {
+ flags |= PTRDIFFT;
+ } else if (*ep == 'z') {
+ flags |= SIZETINT;
+ /* all length modifiers below here */
+ } else if (*ep == 'l') {
+ /* clear all length modifiers first */
+ flags ^= ALL_LENGTHMODS;
+ if (flags & LONG_INT) {
+ /* 'l' can be doubled, this step recognizes that */
+ flags |= LLONGINT;
+ } else {
+ /* set the new flag */
+ flags |= LONG_INT;
+ }
} else if (*ep == 'h') {
/* clear all length modifiers first */
flags ^= ALL_LENGTHMODS;
@@ -790,12 +797,6 @@
/* set the new flag */
flags |= SHORTINT;
}
- } else if (*ep == 'j') {
- flags |= INTMAX_T;
- } else if (*ep == 't') {
- flags |= PTRDIFFT;
- } else if (*ep == 'z') {
- flags |= SIZETINT;
} else if (*ep == 'L') {
/* a length modifier for doubles */
/* clear all length modifiers first */
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