aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/fmt
Commit message (Collapse)AuthorAgeFilesLines
* all: update for new MIT licenseRuss Cox2021-03-231-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | On March 23, 2021, Nokia transferred the copyrights in the Plan 9 software to the Plan 9 Foundation, which relicensed them under the MIT license. This commit updates the Plan 9 from User Space license to reflect the new base license. The vast majority of the contributions beyond the base Plan 9 set were by me, many of them explicitly under an MIT license. Those are all under the new MIT license now as well. The port of mk to Unix was taken from Inferno via Vita Nuova and had been made available under GPL, but Vita Nuova has relicensed Inferno under the MIT license as well, to match the new Plan 9 license. Michael Teichgraber contributed src/lib9/zoneinfo.c explicitly under the Lucent Public License but has agreed to change the contribution to the MIT license now used in the rest of the distribution. There remain a few exceptions, most notably fonts. See the root LICENSE file for full details. The only mention of the Lucent Public License in the whole tree now is in the LICENSE file, explaining the history.
* fmt: adjust GCC version checkKurt H Maier2020-05-081-2/+2
| | | | atomics were added in GCC 4.9: https://gcc.gnu.org/gcc-4.9/changes.html
* fmt: disable use of stdatomic on AIX XL C and old GCCRuss Cox2020-05-071-0/+21
| | | | | | C11 is apparently too new for these systems. Fixes #55.
* lib9: make formatting lock-free againRuss Cox2020-01-143-107/+78
| | | | | | | | First use of <stdatomic.h>. We will see if any supported systems don't have it yet. (C11 was so last decade.) Fixes #338.
* lib9/fmt: avoid racy access to installed fmt formatsRuss Cox2020-01-133-17/+38
|
* Trivial changes: whitespace and modes.Dan Cross2020-01-1015-47/+36
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* convert to 4-byte UTF-8 and 32-bit RuneRuss Cox2009-09-111-5/+6
| | | | http://codereview.appspot.com/116075
* libfmt: add missing copyright notice to nan64.cRuss Cox2009-08-141-0/+2
| | | | | | | | nan64.c was part of change #1 in this repository and did not have a notice at that point (September 2003). An earlier copy of libfmt, dated January 14-15, 2003, makes it clear that nan64.c was extracted from fltfmt.c and strtod.c, so use the same notice they use.
* libfmt: use fmtstrtod, not system strtodRuss Cox2009-07-291-4/+4
| | | | http://codereview.appspot.com/96185
* lib9/fmt: fix printing of 1e308Russ Cox2009-07-281-4/+1
| | | | | | pow10 was giving up too easily http://codereview.appspot.com/96178
* lib9: fix memset in fmtnullinitRuss Cox2008-11-171-1/+1
|
* lib9: hide uvlong/double conversions to placate gcc (John Gosset)Russ Cox2008-05-101-26/+31
|
* lib9: gcc-4.2 bug in sprintRuss Cox2008-03-031-1/+4
|
* fix nan64rsc2007-05-101-4/+11
|
* another day, another __isNaNrsc2007-04-061-1/+2
|
* new __isNaN (Scott Schwartz)rsc2007-04-061-5/+1
|
* long doublersc2006-06-261-1/+1
|
* long doublersc2006-06-261-1/+4
|
* silence warningrsc2006-06-251-1/+1
|
* silence warningrsc2006-05-281-1/+1
|
* silence warningrsc2006-05-261-1/+1
|
* oopsrsc2006-05-264-0/+15
|
* incorporate changes from Googlersc2006-05-226-13/+67
|
* new, commented fltfmtrsc2006-05-221-223/+509
|
* fmt changes from Googlersc2006-05-2138-504/+211
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-013-3/+3
|
* use inttypesrsc2006-01-061-1/+1
|
* add stdint.h, uintptrrsc2005-12-291-0/+5
|
* set qid.vers (Erik Quanstrom)rsc2005-12-295-9/+9
|
* Properly size buffer to avoid overflow.wkj2005-11-011-1/+1
|
* checkpointrsc2005-01-142-0/+2
|
* these mkfiles only confusersc2005-01-131-56/+0
|
* sunos fixesrsc2005-01-072-2/+0
|
* change _p9pow10 to fmtpow10rsc2004-12-311-1/+1
|
* Formatting nits.wkj2004-12-2934-68/+68
|
* #define pow10 to _p9pow10 as a stop-gap.wkj2004-12-291-2/+4
|
* fmtdef.h needed for VA_COPYrsc2004-12-272-0/+2
|
* add isNaNrsc2004-12-271-3/+4
|
* portdatesrsc2004-12-261-0/+30
|
* more testsrsc2004-12-262-0/+61
|
* import changes from plan 9rsc2004-12-2618-167/+171
|
* pick up plan 9 fltfmt changesrsc2004-12-261-325/+138
|
* various little changes.rsc2004-12-261-19/+17
| | | | also pick up latest fltfmt from plan 9
* add for unix portrsc2004-12-261-0/+33
|
* clean up for unix portrsc2004-12-2637-97/+112
|
* print 0 %ux as 0x0rsc2004-10-221-1/+0
|
* Fix bug in rune half of __fmtcpy reported by rob.rsc2004-09-281-2/+0
|
* Get rid of 64-bit constants.rsc2004-09-231-3/+3
|
* small tweaksrsc2004-09-172-2/+2
|
* PowerPC Linux support from ericvh.rsc2004-08-2211-14/+34
| | | | | | Mainly adding va_copy/va_end. Also fix bug in sprint wrapping around top of memory.