Differences From Artifact [1cf52da2f0]:
- File src/printf.c — part of check-in [b9a1a3b9d8] at 2017-03-01 15:35:43 on branch fossil-2.0 — Change references to "SHA1 hash" in comments and UI labels to be "artifact hash" or similar. (user: drh size: 36583) [more...]
To Artifact [df915ce19a]:
- File src/printf.c — part of check-in [517b9a5652] at 2017-09-25 17:24:39 on branch trunk — Improved limit handling for annotation. The limit can now be expressed in compute-time seconds rather than versions analyzed, and defaults to "1.0s", which is enough to compute a complete annotation on most reasonable files. (user: drh size: 36698) [more...]
| ︙ | |||
59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | + + + + + + + |
if( nDigitHuman > 40 ) nDigitHuman = 40;
nDigitUrl = nDigitHuman + 6;
if( nDigitUrl < FOSSIL_HASH_DIGITS_URL ) nDigitUrl = FOSSIL_HASH_DIGITS_URL;
if( nDigitUrl > 40 ) nDigitUrl = 40;
}
return bForUrl ? nDigitUrl : nDigitHuman;
}
/*
** Return the number of characters in a %S output.
*/
int length_of_S_display(void){
return hashDigits(0);
}
/*
** Conversion types fall into various categories as defined by the
** following enumeration.
*/
#define etRADIX 1 /* Integer types. %d, %x, %o, and so forth */
#define etFLOAT 2 /* Floating point. %f */
|
| ︙ |