Fossil

File History
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/printf.c

2018-01-16
16:30
Update the codecheck1.c utility program to find unsafe format strings for recently added varargs functions. Fix unsafe varargs found by this update. This is a continuation of the fix in check-in [3c2ef25d03fb48d5]. file: [3a56bc49] check-in: [2fac7df4] user: drh branch: trunk, size: 37233
2017-12-11
16:53
Add the "," qualifier to %d formats in printf() and use the capability for improve display of stats. file: [4f21f3d8] check-in: [2cdbdbb1] user: drh branch: trunk, size: 37227
2017-09-25
17:24
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. file: [df915ce1] check-in: [517b9a56] user: drh branch: trunk, size: 36698
2017-03-01
15:35
Change references to "SHA1 hash" in comments and UI labels to be "artifact hash" or similar. file: [1cf52da2] check-in: [b9a1a3b9] user: drh branch: fossil-2.0, size: 36583
2016-11-07
01:29
Remove some tabs and end-of-line whitespace file: [26a2f002] check-in: [bf9669f5] user: andygoth branch: trunk, size: 36575
00:50
Merge trunk file: [dd829a12] check-in: [7ea74acf] user: andygoth branch: andygoth-crlf, size: 36576
2016-11-05
05:46
Merge fork file: [fc5ca159] check-in: [3cb9ba4d] user: andygoth branch: trunk, size: 36576
04:30
Fix extra empty lines in diff output from non-interactive process on Windows; similar to [f2fc37c0]. file: [d1b1b05f] check-in: [476fe9e9] user: ashepilko branch: trunk, size: 36617
2016-11-04
22:37
Consistently use the count(X) macro in place of sizeof(X)/sizeof(*X) throughout the Fossil core, excluding things that don't use makeheaders. Also use count(X) instead of ArraySize(X) which has the same definition. file: [12190004] check-in: [e5b62edb] user: andygoth branch: trunk, size: 36340
2016-05-23
15:34
Rename crnl-glob to crlf-glob, retaining support for crnl-glob as a compatibility alias. Change terminology from NL to LF throughout, excepting cases where NL means newline and not line feed. Also don't change linenoise.c which is third-party code. file: [d4fe5c01] check-in: [2bc3cfeb] user: andygoth branch: andygoth-crlf, size: 36381
2016-01-26
13:18
Fix a comment with wrong parameters description file: [2de9ca8e] check-in: [12cf825f] user: baruch branch: trunk, size: 36381
2015-12-02
20:23
Experimental changes to deal with the reserved 12 characters (e.g. 'FILENAME.EXT') always needed for long directory names on Windows. file: [78a4915a] check-in: [6ebef28f] user: mistachkin branch: pending-review, size: 36841
2015-02-26
03:12
Additional changes associated with check-in [43b30dcfc330b] on 2014-10-20: Change the %!w format to %!W. file: [3d86d4ec] check-in: [3b92154a] user: drh branch: trunk, size: 36845
2015-02-13
02:36
Add the "hash-digits" setting for controling the number of digits of the SHA1 hash to display in output intended for humans. The minimum is 6 and the default is 10. Compile-time option FOSSIL_HASH_DIGITS can set a different default. URLs use at least 6 more digits than human output. Compile-time option FOSSIL_HASH_DIGITS_URL sets a lower-bound on the number of hash digits in URLs. file: [32bafb09] check-in: [cc94bd07] user: drh branch: trunk, size: 36845
2015-02-11
11:09
Use the "%S" formatting option for human-readable SHA1 hashes and "%!S" for SHA1 hashes in URLs. The length of these hashes are compile-time configurable using FOSSIL_SHA1_PREFIX_LEN and FOSSIL_SHA1_URLPREFIX_LEN, respectively. Defaults: 10 and 16. file: [a6f0ff1d] check-in: [1fee0377] user: drh branch: trunk, size: 35914
2014-10-20
10:07
In the built-in customized printf(), change the wiki conversion format character from "%w" to "%W". Then add "%w" to for SQL identifiers within double-quotes, the same as used for SQLite. UPDATE: See follow-up change at [3b92154af8d] on 2015-02-26. file: [98dae687] check-in: [43b30dcf] user: drh branch: trunk, size: 35532
2014-07-20
02:10
Merge updates from trunk. file: [4c2382a0] check-in: [5ea6a95a] user: mistachkin branch: experimental, size: 35324
2014-07-01
22:27
Fix off-by-one issue in the previous check-in. file: [d5e075f1] check-in: [c405c1be] user: mistachkin branch: 16-digit-event-ids, size: 35290
2014-06-30
19:07
Coding style adjustments.    Remark (nijtmans): This commit contains more than just a coding style adjustment, changes the output of UUID's different than the proposed algorithm; if longer than 10 characters, the final non-digit char is missing. Demonstration: /timeline?n=20&y=e. Look at the last UUID in the timeline , it is [347871278941] but it should have been [347871278941b]! file: [f75f22fe] check-in: [b6f137a0] user: mistachkin branch: 16-digit-event-ids, size: 35241
09:13
Use the same algorithm for event-id's for UUID's as in other UI locations: Make sure that the UUID contains at least a single lower-case hex digit, with a minimum of length 10. file: [31405cbb] check-in: [734d4299] user: jan.nijtmans branch: 16-digit-event-ids, size: 35194
2014-06-19
02:39
Experimental changes for more precise handling of new lines. file: [6e4566fb] check-in: [816faa5a] user: mistachkin branch: experimental, size: 35125
2014-01-27
09:08
Put various other constant tables in constant memory. file: [49a234dc] check-in: [214899ac] user: jan.nijtmans branch: trunk, size: 35091
09:05
Remove unnecessary end-of-line spaces. (My editor does that automatically, but I don't want it to happen together with other functional changes in a single commit). No change in code. file: [9b1a4ef3] check-in: [52b35c8b] user: jan.nijtmans branch: trunk, size: 35085
2013-11-07
13:29
Use fossil_getenv/fossil_fopen in stead of getenv/fopen in a few places, so on Win32 non-ASCII characters in filenames and environment variable values are handled correctly. For shell.c this must be handled by the makefiles, because this file comes from SQLite. file: [d0518aa2] check-in: [aab8ce2f] user: jan.nijtmans branch: trunk, size: 35086
2013-08-30
12:18
Add the --errorlog command-line option and the errorlog: parameter to CGI scripts. Log all panics, fatal errors, and warnings to the error log, if defined. Panic if file descriptor 2 is not open on unix. Clean up some routines that deal with close(). file: [50cf5ba5] check-in: [4727ef4a] user: drh branch: trunk, size: 34970
06:41
Further improvements to the fossil_panic() procedure to prevent it from looping and to force an early close of the database file. file: [d7231364] check-in: [9d73d4c1] user: drh branch: trunk, size: 33819
03:06
Change most uses of fossil_panic() to fossil_fatal(). Modify fossil_panic() to avoid allocating heap memory and to close the database connection before doing anything else. file: [28abd1ea] check-in: [320f1436] user: drh branch: trunk, size: 33853
2013-05-17
12:04
Remove excess verbage from the output of "fossil clean" unless the --verbose or -v command-line option is used. Issue an error if an unrecognized command-line argument is seen, to prevent mistakes like using --dryrun instead of --dry-run. file: [538f09b7] check-in: [273ec22f] user: drh branch: trunk, size: 33756
2013-02-28
20:10
Show check-in comments in block style in all contexts other than timeline regardless of the timeline-block-markup setting. The timeline-block-markup setting only effects the timeline. file: [dfb60656] check-in: [cae8b696] user: drh branch: trunk, size: 33580
2013-02-21
15:51
merge fork file: [f469cb61] check-in: [32bb8c28] user: jan.nijtmans branch: trunk, size: 33251
15:50
Make win32 build compile again: - missing headers <io.h> and <fcntl.h> - WCHAR -> wchar_t file: [5ec7aa49] check-in: [e3add2c1] user: jan.nijtmans branch: trunk, size: 33191
15:50
Make sure warning and panic messages appear on a fresh line on the console. file: [ede57a02] check-in: [2091a11d] user: drh branch: trunk, size: 33183
14:39
Error message changes: Omit the executable name at the beginning of error messages to the console, and try to make sure new error messages begin on a fresh line and do not overwrite prior status text. file: [6027a8d9] check-in: [871a9492] user: drh branch: trunk, size: 33123
14:24
Code refactoring: Move utility routines (ex: fossil_malloc()) out of main.c and into a new file util.c. Try to gather I/O routines into the printf.c source file. file: [4430e80f] check-in: [bb0cedb1] user: drh branch: trunk, size: 33100
2013-01-30
13:10
Make sure that "fossil_strcmp" is used everywhere in stead of "strcmp": The "strcmp" function from the C library is not usable in all situations, e.g. with --static on Linux Do an #undef in printf.c, preventing that the fossil_strcmp function is optimized for non-null arguments. file: [eda142ab] check-in: [afffe486] user: jan.nijtmans branch: trunk, size: 31174
2013-01-27
11:24
Typo fixes from Edward Berner. file: [ae215f9a] check-in: [0421c136] user: stephan branch: trunk, size: 31047
2013-01-07
18:58
Improved error message handling. Fix the "fossil server" command so that it works when run as root on a repository in the root directory. file: [fea8142f] check-in: [baa1ebb7] user: drh branch: trunk, size: 31051
2012-11-28
19:28
Take care that xfer error messages and user prompts always begin at the start of a new line. file: [7a4d5d41] check-in: [f1ef2213] user: drh branch: trunk, size: 30779
2012-11-22
23:35
Be consistent about display of check-in comments as either text/plain or text/x-fossil-wiki. When the user configures text/plain, use that format everywhere. file: [0b747a77] check-in: [2c6fa9c3] user: drh branch: trunk, size: 30224
2012-11-04
12:59
Fix typos. file: [f9afe033] check-in: [45065c5c] user: dmitry branch: spelling, size: 29911
2012-09-07
07:53
Enable unicode commandline and unicode console output for msvc builds. file: [8478f895] check-in: [28695020] user: jan.nijtmans branch: unicode-cmdline, size: 29913
2012-09-05
08:15
write unicode to console, when possible. file: [df1de1c1] check-in: [7fd74e72] user: jan.nijtmans branch: eclipse-project, size: 29916
07:31
make output to the Windows console binary-safe file: [56a1d694] check-in: [a830168d] user: jan.nijtmans branch: eclipse-project, size: 29915
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [6aa06b14] check-in: [9f6abc59] user: jan.nijtmans branch: msvc-broken, size: 30160
2012-07-13
18:01
Replaced free() with fossil_free() for pedantic correctness. Minor related doc fix. file: [366d56c1] check-in: [9f98585e] user: stephan branch: trunk, size: 30161
16:56
Fixed a segfault which could/did happen when running content through wikification in CLI mode (which g.zTop is not set). file: [f3ef7204] check-in: [a3dd2cfe] user: stephan branch: trunk, size: 30147
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. file: [dd9c3d80] check-in: [68239127] user: drh branch: sqlite4, size: 30133
2012-06-11
17:33
merge trunk again... (previous merge was not from latest trunk from fossil-scm.org) file: [58151b91] check-in: [7a57ab64] user: mgagnon branch: mgagnon_fix, size: 30175
2012-04-28
07:15
Changes anchor tags (<a>) so that the href= attribute can be set by javascript rather than by HTML. This is to make it harder for spiders to follow the hyperlinks to every diff and annotation in the project history. It all seems to work, but it needs further testing and review before going live. file: [aa268359] check-in: [8ae52fc4] user: drh branch: spider-defense, size: 30133
2012-04-13
22:42
Fix the /dir webpages to that it treats folders whos names differ only in case as the same folder when case-sensitive is off. file: [5eb21c5b] check-in: [4290a801] user: drh branch: trunk, size: 29932
2012-04-02
00:11
Try to make the "stat" page more readable by inserting commas in larger integers. This experiment did not work out. file: [a8aa1b0b] check-in: [ef9ec5d7] user: drh branch: comma-in-stat, size: 30009
2012-03-29
14:54
Add vim modline everywhere file: [c4586f16] check-in: [a496d8e8] user: meeks branch: mgagnon_fix, size: 29617
2012-02-04
14:58
Make sure diff output is flushed to screen in a timely manner. file: [f010e75a] check-in: [dc96d73d] user: drh branch: trunk, size: 29575
2011-10-21
23:44
Improved formatting for command-line side-by-side diff. Extend command-line side-by-side diff to all diff operations, including stash diffs. file: [ab6d4166] check-in: [ab47cc73] user: drh branch: trunk, size: 29537
2011-06-29
11:20
Fix the fossil_strcmp() routine so that it compares strings in the correct order even if some of the characters have their high-order bits set. Ticket [5982aa506467d]. file: [f36e734f] check-in: [f23e90da] user: drh branch: trunk, size: 29565
2011-05-27
12:03
Do not use strcmp() for comparison since the sort order can vary by locale. Use fossil_strcmp() instead. Ticket [3f0216560679fd41]. file: [52559402] check-in: [32ad9a15] user: drh branch: trunk, size: 29533
2011-05-13
15:46
When translating UTF8 text for display on the console, use the codepage obtained from GetConsoleCP(), not the CP_ACP code page that is used for system calls. file: [df08accb] check-in: [55b32701] user: drh branch: windows-i18n, size: 29080
2011-05-10
13:29
Always write UTF8 to the console. Change the console output mode on windows to UTF8 at startup. file: [7da4f194] check-in: [ab934c6b] user: drh branch: windows-i18n, size: 28691
2011-04-27
18:21
Attempt to get Fossil working on windows systems that do not use UTF8 in the shell. file: [e4b55f39] check-in: [e805fa8d] user: drh branch: windows-i18n, size: 29140
2011-01-03
22:23
Fix the fossil_print() interface to use the internal printf() implementation (which we control) rather than the system printf() since might vary from one platform to the next. Ticket [6883bdd1eff926009c] file: [a0eea6c9] check-in: [d394120c] user: drh branch: trunk, size: 28338
2010-12-09
13:56
Use the built-in SQLite caseless string comparison functions instead of the C-library strcasecmp(). Accept mime-type application/x-fossil-uncompressed and avoid decompression when seen. file: [2a72fb4a] check-in: [0b6c414c] user: drh branch: trunk, size: 28233
2010-10-15
17:13
Replace all malloc() calls with fossil_malloc(). The fossil_malloc() routine panics rather than return a NULL pointer. file: [90eaff0b] check-in: [8f41b2fa] user: drh branch: trunk, size: 27664
2010-10-02
00:25
First working code for displaying and editing events. file: [610bb309] check-in: [419903eb] user: drh branch: experimental, size: 27679
2010-05-16
19:08
Change from GPL to the Simplified BSD License. file: [12bfcbcc] check-in: [c06edd23] user: drh branch: clear-title, size: 27667
2010-04-22
15:48
Infrastructure changes that will allow the client-side sync to be run from a web interface - the status messages now go to CGI output if the sync is run from a web page. This is a partial implementation of the "SyncNow" button. The button itself has not yet been added. file: [163d81e4] check-in: [c56af61e] user: drh branch: trunk, size: 27943
2010-03-21
21:51
Avoid the use of rowids in URLs, since they can change on a rebuild. Use SHA1-derived artifact IDs instead. file: [26b83508] check-in: [a4b10f43] user: drh branch: trunk, size: 27584
2009-12-18
21:38
Change the name of the strnlen_() function in printf.c to StrNLen32(). file: [8a4feba8] check-in: [9a8fdf72] user: drh branch: trunk, size: 27387
2008-04-25
21:45
s/strnlen/strnlen_/g for the local strnlen impementation because the name fataly collides with a func from standard headers in some gcc versions (e.g. GnuSolaris/Nexenta w/ gcc 4.0.x). file: [e955d821] check-in: [0c78ba2e] user: stephan branch: trunk, size: 27384
2008-02-04
19:07
On the printf extension converters (ex: %T, %w) the "alternate form flag" (ex: %#T, %#w) means first read an integer from the argument list and then only process that number of characters from the string or blob that is read next from the argument list. file: [cefba922] check-in: [8c3ec003] user: drh branch: trunk, size: 27381
2007-11-22
22:55
Add the %w and %W formatting options for internal printf usage. Use these formatting characters to render wiki. Fix additional problems of unterminated wiki on webpage rendering by using %w. (There are probably more problems yet to be discovered and fixed.) file: [af38cba6] check-in: [28592937] user: drh branch: trunk, size: 26235
2007-09-22
06:47
Win32 port now functional except network operations. This commit was done on windows :-). See win32.txt for status of all commands. No networking commands are functional yet. All path operations are now functioning. file: [63619c9e] check-in: [c7278fd0] user: jnc branch: trunk, size: 25657
2007-07-21
14:10
Initial check-in of m1 sources. file: [48f1118d] check-in: [dbda8d6c] user: drh branch: trunk, size: 25202 Added