mirror of
https://github.com/curl/curl.git
synced 2026-07-24 12:17:16 +03:00
lib/src: white space edits to comply better with code style
... as checksrc now finds and complains about these. Closes #14921
This commit is contained in:
parent
a57b45c386
commit
fbf5d507ce
128 changed files with 854 additions and 837 deletions
|
|
@ -101,27 +101,27 @@ typedef enum {
|
|||
|
||||
/* conversion and display flags */
|
||||
enum {
|
||||
FLAGS_SPACE = 1<<0,
|
||||
FLAGS_SHOWSIGN = 1<<1,
|
||||
FLAGS_LEFT = 1<<2,
|
||||
FLAGS_ALT = 1<<3,
|
||||
FLAGS_SHORT = 1<<4,
|
||||
FLAGS_LONG = 1<<5,
|
||||
FLAGS_LONGLONG = 1<<6,
|
||||
FLAGS_LONGDOUBLE = 1<<7,
|
||||
FLAGS_PAD_NIL = 1<<8,
|
||||
FLAGS_UNSIGNED = 1<<9,
|
||||
FLAGS_OCTAL = 1<<10,
|
||||
FLAGS_HEX = 1<<11,
|
||||
FLAGS_UPPER = 1<<12,
|
||||
FLAGS_WIDTH = 1<<13, /* '*' or '*<num>$' used */
|
||||
FLAGS_WIDTHPARAM = 1<<14, /* width PARAMETER was specified */
|
||||
FLAGS_PREC = 1<<15, /* precision was specified */
|
||||
FLAGS_PRECPARAM = 1<<16, /* precision PARAMETER was specified */
|
||||
FLAGS_CHAR = 1<<17, /* %c story */
|
||||
FLAGS_FLOATE = 1<<18, /* %e or %E */
|
||||
FLAGS_FLOATG = 1<<19, /* %g or %G */
|
||||
FLAGS_SUBSTR = 1<<20 /* no input, only substring */
|
||||
FLAGS_SPACE = 1 << 0,
|
||||
FLAGS_SHOWSIGN = 1 << 1,
|
||||
FLAGS_LEFT = 1 << 2,
|
||||
FLAGS_ALT = 1 << 3,
|
||||
FLAGS_SHORT = 1 << 4,
|
||||
FLAGS_LONG = 1 << 5,
|
||||
FLAGS_LONGLONG = 1 << 6,
|
||||
FLAGS_LONGDOUBLE = 1 << 7,
|
||||
FLAGS_PAD_NIL = 1 << 8,
|
||||
FLAGS_UNSIGNED = 1 << 9,
|
||||
FLAGS_OCTAL = 1 << 10,
|
||||
FLAGS_HEX = 1 << 11,
|
||||
FLAGS_UPPER = 1 << 12,
|
||||
FLAGS_WIDTH = 1 << 13, /* '*' or '*<num>$' used */
|
||||
FLAGS_WIDTHPARAM = 1 << 14, /* width PARAMETER was specified */
|
||||
FLAGS_PREC = 1 << 15, /* precision was specified */
|
||||
FLAGS_PRECPARAM = 1 << 16, /* precision PARAMETER was specified */
|
||||
FLAGS_CHAR = 1 << 17, /* %c story */
|
||||
FLAGS_FLOATE = 1 << 18, /* %e or %E */
|
||||
FLAGS_FLOATG = 1 << 19, /* %g or %G */
|
||||
FLAGS_SUBSTR = 1 << 20 /* no input, only substring */
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
@ -760,7 +760,7 @@ static int formatf(
|
|||
}
|
||||
else if(flags & FLAGS_HEX) {
|
||||
/* Hexadecimal unsigned integer */
|
||||
digits = (flags & FLAGS_UPPER)? upper_digits : lower_digits;
|
||||
digits = (flags & FLAGS_UPPER) ? upper_digits : lower_digits;
|
||||
base = 16;
|
||||
is_neg = FALSE;
|
||||
}
|
||||
|
|
@ -906,7 +906,7 @@ number:
|
|||
if(iptr->val.ptr) {
|
||||
/* If the pointer is not NULL, write it as a %#x spec. */
|
||||
base = 16;
|
||||
digits = (flags & FLAGS_UPPER)? upper_digits : lower_digits;
|
||||
digits = (flags & FLAGS_UPPER) ? upper_digits : lower_digits;
|
||||
is_alt = TRUE;
|
||||
num = (size_t) iptr->val.ptr;
|
||||
is_neg = FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue