aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-05-15 11:44:13 +0000
committerdrh <drh@noemail.net>2002-05-15 11:44:13 +0000
commit9adf9ac4e4e990fe7a1575333e8bb809919de4ae (patch)
tree1a603597f3e3fd9077076bdfcbff5d173cda4da8 /src/printf.c
parent5b87fa2a57aa8470f3db624e47dd88807a0a0e96 (diff)
downloadsqlite-9adf9ac4e4e990fe7a1575333e8bb809919de4ae.tar.gz
sqlite-9adf9ac4e4e990fe7a1575333e8bb809919de4ae.zip
Remove all tabs from the beginning of source code lines. Replace tabs with
the appropriate number of spaces. (CVS 565) FossilOrigin-Name: 690f9a163173c4c7af7e8e92e942cee4184c7974
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/printf.c b/src/printf.c
index 3a765600e..8cc511a07 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -336,7 +336,7 @@ static int vxprintf(
case etORDINAL:
case etRADIX:
if( flag_long ) longvalue = va_arg(ap,long);
- else longvalue = va_arg(ap,int);
+ else longvalue = va_arg(ap,int);
#ifdef etCOMPATIBILITY
/* For the format %#x, the value zero is printed "0" not "0x0".
** I think this is stupid. */
@@ -356,7 +356,7 @@ static int vxprintf(
}else prefix = 0;
if( flag_zeropad && precision<width-(prefix!=0) ){
precision = width-(prefix!=0);
- }
+ }
bufpt = &buf[etBUFSIZE];
if( xtype==etORDINAL ){
long a,b;
@@ -386,18 +386,18 @@ static int vxprintf(
*(--bufpt) = cset[longvalue%base];
longvalue = longvalue/base;
}while( longvalue>0 );
- }
+ }
length = (long)&buf[etBUFSIZE]-(long)bufpt;
for(idx=precision-length; idx>0; idx--){
*(--bufpt) = '0'; /* Zero pad */
- }
+ }
if( prefix ) *(--bufpt) = prefix; /* Add sign */
if( flag_alternateform && infop->prefix ){ /* Add "0" or "0x" */
char *pre, x;
pre = infop->prefix;
if( *bufpt!=pre[0] ){
for(pre=infop->prefix; (x=(*pre))!=0; pre++) *(--bufpt) = x;
- }
+ }
}
length = (long)&buf[etBUFSIZE]-(long)bufpt;
break;
@@ -411,11 +411,11 @@ static int vxprintf(
if( realvalue<0.0 ){
realvalue = -realvalue;
prefix = '-';
- }else{
+ }else{
if( flag_plussign ) prefix = '+';
else if( flag_blanksign ) prefix = ' ';
else prefix = 0;
- }
+ }
if( infop->type==etGENERIC && precision>0 ) precision--;
rounder = 0.0;
#ifdef COMPATIBILITY
@@ -439,7 +439,7 @@ static int vxprintf(
length = 3;
break;
}
- }
+ }
bufpt = buf;
/*
** If the field type is etGENERIC, then convert to either etEXP
@@ -458,9 +458,9 @@ static int vxprintf(
precision = precision - exp;
xtype = etFLOAT;
}
- }else{
+ }else{
flag_rtz = 0;
- }
+ }
/*
** The "exp+precision" test causes output to be of type etEXP if
** the precision is too large to fit in buf[].
@@ -482,7 +482,7 @@ static int vxprintf(
if( bufpt>=buf && *bufpt=='.' ) *(bufpt--) = 0;
}
bufpt++; /* point to next free slot */
- }else{ /* etEXP or etGENERIC */
+ }else{ /* etEXP or etGENERIC */
flag_dp = (precision>0 || flag_alternateform);
if( prefix ) *(bufpt++) = prefix; /* Sign */
*(bufpt++) = et_getdigit(&realvalue,&nsd); /* First digit */
@@ -501,11 +501,11 @@ static int vxprintf(
if( exp>=100 ){
*(bufpt++) = (exp/100)+'0'; /* 100's digit */
exp %= 100;
- }
+ }
*(bufpt++) = exp/10+'0'; /* 10's digit */
*(bufpt++) = exp%10+'0'; /* 1's digit */
}
- }
+ }
/* The converted number is in buf[] and zero terminated. Output it.
** Note that the number is in the usual order, not reversed as with
** integer conversions. */
@@ -541,9 +541,9 @@ static int vxprintf(
if( precision>=0 ){
for(idx=1; idx<precision; idx++) buf[idx] = c;
length = precision;
- }else{
+ }else{
length =1;
- }
+ }
bufpt = buf;
break;
case etSTRING:
@@ -599,7 +599,7 @@ static int vxprintf(
nspace = nspace/2;
width -= nspace;
flag_leftjustify = 1;
- }
+ }
count += nspace;
while( nspace>=etSPACESIZE ){
(*func)(arg,spaces,etSPACESIZE);