Lines Matching refs:flags
153 unsigned int flags; member
226 unsigned int flags; in parsefmt() local
254 optr->flags = FLAGS_SUBSTR; in parsefmt()
263 flags = 0; in parsefmt()
287 flags |= FLAGS_SPACE; in parsefmt()
290 flags |= FLAGS_SHOWSIGN; in parsefmt()
293 flags |= FLAGS_LEFT; in parsefmt()
294 flags &= ~(unsigned int)FLAGS_PAD_NIL; in parsefmt()
297 flags |= FLAGS_ALT; in parsefmt()
302 flags |= FLAGS_PRECPARAM; in parsefmt()
317 flags |= FLAGS_PREC; in parsefmt()
333 if((flags & (FLAGS_PREC | FLAGS_PRECPARAM)) == in parsefmt()
340 flags |= FLAGS_SHORT; in parsefmt()
346 flags |= FLAGS_LONG; in parsefmt()
350 flags |= FLAGS_LONGLONG; in parsefmt()
355 flags |= FLAGS_LONGLONG; in parsefmt()
357 flags |= FLAGS_LONG; in parsefmt()
363 if(flags & FLAGS_LONG) in parsefmt()
364 flags |= FLAGS_LONGLONG; in parsefmt()
366 flags |= FLAGS_LONG; in parsefmt()
369 flags |= FLAGS_LONGDOUBLE; in parsefmt()
372 flags |= FLAGS_LONGLONG; in parsefmt()
378 flags |= FLAGS_LONGLONG; in parsefmt()
380 flags |= FLAGS_LONG; in parsefmt()
385 flags |= FLAGS_LONGLONG; in parsefmt()
387 flags |= FLAGS_LONG; in parsefmt()
391 if(!(flags & FLAGS_LEFT)) in parsefmt()
392 flags |= FLAGS_PAD_NIL; in parsefmt()
396 flags |= FLAGS_WIDTH; in parsefmt()
408 flags |= FLAGS_WIDTHPARAM; in parsefmt()
428 flags |= FLAGS_ALT; in parsefmt()
441 if(flags & FLAGS_LONGLONG) in parsefmt()
443 else if(flags & FLAGS_LONG) in parsefmt()
449 if(flags & FLAGS_LONGLONG) in parsefmt()
451 else if(flags & FLAGS_LONG) in parsefmt()
455 flags |= FLAGS_UNSIGNED; in parsefmt()
458 if(flags & FLAGS_LONGLONG) in parsefmt()
460 else if(flags & FLAGS_LONG) in parsefmt()
464 flags |= FLAGS_OCTAL|FLAGS_UNSIGNED; in parsefmt()
467 if(flags & FLAGS_LONGLONG) in parsefmt()
469 else if(flags & FLAGS_LONG) in parsefmt()
473 flags |= FLAGS_HEX|FLAGS_UNSIGNED; in parsefmt()
476 if(flags & FLAGS_LONGLONG) in parsefmt()
478 else if(flags & FLAGS_LONG) in parsefmt()
482 flags |= FLAGS_HEX|FLAGS_UPPER|FLAGS_UNSIGNED; in parsefmt()
486 flags |= FLAGS_CHAR; in parsefmt()
493 flags |= FLAGS_FLOATE; in parsefmt()
497 flags |= FLAGS_FLOATE|FLAGS_UPPER; in parsefmt()
501 flags |= FLAGS_FLOATG; in parsefmt()
505 flags |= FLAGS_FLOATG|FLAGS_UPPER; in parsefmt()
512 if(flags & FLAGS_WIDTHPARAM) { in parsefmt()
531 if(flags & FLAGS_PRECPARAM) { in parsefmt()
568 optr->flags = flags; in parsefmt()
586 optr->flags = FLAGS_SUBSTR; in parsefmt()
706 unsigned int flags = optr->flags; in formatf() local
712 if(optr->flags & FLAGS_SUBSTR) in formatf()
718 if(flags & FLAGS_WIDTHPARAM) { in formatf()
727 flags |= FLAGS_LEFT; in formatf()
728 flags &= ~(unsigned int)FLAGS_PAD_NIL; in formatf()
735 if(flags & FLAGS_PRECPARAM) { in formatf()
742 else if(flags & FLAGS_PREC) in formatf()
747 is_alt = (flags & FLAGS_ALT) ? 1 : 0; in formatf()
754 flags |= FLAGS_UNSIGNED; in formatf()
760 if(flags & FLAGS_CHAR) { in formatf()
762 if(!(flags & FLAGS_LEFT)) in formatf()
766 if(flags & FLAGS_LEFT) in formatf()
771 if(flags & FLAGS_OCTAL) { in formatf()
776 else if(flags & FLAGS_HEX) { in formatf()
778 digits = (flags & FLAGS_UPPER) ? upper_digits : lower_digits; in formatf()
782 else if(flags & FLAGS_UNSIGNED) { in formatf()
838 if(is_neg || (flags & FLAGS_SHOWSIGN) || (flags & FLAGS_SPACE)) in formatf()
841 if(!(flags & FLAGS_LEFT) && !(flags & FLAGS_PAD_NIL)) in formatf()
847 else if(flags & FLAGS_SHOWSIGN) in formatf()
849 else if(flags & FLAGS_SPACE) in formatf()
854 if(flags & FLAGS_UPPER) in formatf()
860 if(!(flags & FLAGS_LEFT) && (flags & FLAGS_PAD_NIL)) in formatf()
869 if(flags & FLAGS_LEFT) in formatf()
885 flags &= ~(unsigned int)FLAGS_ALT; in formatf()
901 if(flags & FLAGS_ALT) in formatf()
904 if(!(flags & FLAGS_LEFT)) in formatf()
910 if(flags & FLAGS_LEFT) in formatf()
914 if(flags & FLAGS_ALT) in formatf()
924 digits = (flags & FLAGS_UPPER) ? upper_digits : lower_digits; in formatf()
935 if(flags & FLAGS_LEFT) in formatf()
940 if(!(flags & FLAGS_LEFT)) in formatf()
952 if(flags & FLAGS_WIDTH) in formatf()
955 if(flags & FLAGS_PREC) in formatf()
958 if(flags & FLAGS_LEFT) in formatf()
960 if(flags & FLAGS_SHOWSIGN) in formatf()
962 if(flags & FLAGS_SPACE) in formatf()
964 if(flags & FLAGS_ALT) in formatf()
998 if(flags & FLAGS_LONG) in formatf()
1001 if(flags & FLAGS_FLOATE) in formatf()
1002 *fptr++ = (char)((flags & FLAGS_UPPER) ? 'E' : 'e'); in formatf()
1003 else if(flags & FLAGS_FLOATG) in formatf()
1004 *fptr++ = (char)((flags & FLAGS_UPPER) ? 'G' : 'g'); in formatf()
1033 if(flags & FLAGS_LONGLONG) in formatf()
1037 if(flags & FLAGS_LONG) in formatf()
1039 else if(!(flags & FLAGS_SHORT)) in formatf()