path: root/lib/std
AgeCommit message (Collapse)Author
2020-10-27resolve: fix copy-paste errorHEADmasterOri Bernstein
2020-10-27readability: '.port=port' isn't helpful, it's just 53Ori Bernstein
2020-10-27cleanup dns: private maxns, skip failed connnectionsOri Bernstein
The previous patches made maxns show up as exported API, when it shouldn't have been. We would also put failed connections into the server list and try to query them.
2020-10-25Let dnsconnect handle IPv6.Frank Smit
2020-10-25Query nameservers in parallel.Frank Smit
2020-09-20Fix range checking for numbers.Ori Bernstein
2020-08-30Fix IPv6 parsing.Frank Smit
2001:b88:1202::10 resulted in [32, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] while it should be [32, 1, 11, 136, 18, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16]
2020-08-30Type was not applied to pdst.Frank Smit
2020-08-28test/ipparse: put expected and parsed in different buffersOri Bernstein
2020-08-28Fix typoOri Bernstein
2020-08-28copy bytes to a dest buffer.Ori Bernstein
2020-06-11Unify alignment for heterogeneous tuples.S. Gilles
This only appears to come into play when trying to match memory layout of tuples with structs, or when accessing deeply nested tuples.
2020-05-11add OSX recvfrom, fix UDP announce (thanks Int21h)Ori Bernstein
system call to libsys for OS X and also made a minor edit to announcesock so it would work with UDP.
2019-12-05[PATCH v2] Force correct sign for intermediate steps of
Since y1 is usually smaller than y0, the sign of (x0 - x1) * (y1 - y0) is usually the same as that of (x0 - x1). This isn't always the case, though, especially if y is 2^Large * small. Also, the result of umul should be trimmed, so that we can trust that z0, z1 are trimmed in kmul. Otherwise, if their signs are different, bigadd(z1, z0) may become confused about which has greater magnitude and perform an incorrect subtraction. Since the result of kmul comes from bigadd(), which trims already, we need only trim the result of smallmul to ensure that umul's result is trimmed.
2019-12-01[PATCH v2 4/3] Somewhat better error for std.put("{w=?}", "foo")"S. Gilles"
2019-12-04Allow specifying padding width from variableS. Gilles
So I can write std.put("{w=?}{w=?}\n", field_a, max_width, field_b, max_width)
2019-12-04Make vanext decrement tc.nelt unconditionallyS. Gilles
This allows formatting functions to pass off the valist to type-specific formatters, which may themselves consume elements from the valist, and still check for correct argument counts without passing around counter variables.
2019-12-04Convert lib/test/fmt.myr to use testrS. Gilles
2019-10-24Allow bigdivmod to return remainders between 2^31 and 2^32S. Gilles
2019-09-10Force scientific notation to print trailing 0sS. Gilles
Also, recalculate 2*R + M+ during the Fixup loop. This prevents rare digit miscalculations: e.g. std.put("{e,s=4}\n", std.flt32frombits(0x2899fbf7))
2019-09-09Allow printing fltXY in scientific notationS. Gilles
2019-09-09Split out intfmt to a separate file.S. Gilles
This prepares for intfmt being used within fltfmt for the exponent in scientific notation.
2019-09-09Specify sigfigs (cutoff + Relative mode) for fltXY formattingS. Gilles
2019-09-07Allow padding for fltXY formattingS. Gilles
2019-09-07Collect fltXYbfmt parameters into analogue of intparamsS. Gilles
2019-07-22Fix std.getcwd on OpenBSD -currentCarlin Bingham
The __getcwd syscall returning the length of the string was apparently unintended and was changed in 6.5 -current to return 0 on success: This causes std.getcwd to return an empty string, which at least breaks `mbld test`. This patch works with both the old and new behaviour.
2019-07-18Fix bigand/bigor: Thanks, MikeOri Bernstein
2019-07-13Oops, mangled something with git9.Ori Bernstein
2019-07-14Fix crash with large shifts in bigint.Ori Bernstein
2019-07-14Fix memory leak in bigparse. (Thanks, Mike)Ori Bernstein
2019-06-09Fix error message for {} without parameterS. Gilles
Move the nfmt > nvarargs check to where it can detect the imminent bad access.
2019-05-10Allow exact case of mkbigint(2^32)S. Gilles
2019-04-29Print "NaN" and "Inf" for floating-point NaNs and infinites.S. Gilles
2019-02-28Fix type substitution in sizeof.Ori Bernstein
2019-02-19Handle (-1) + (1) and (-3) - (-2) with bigintsS. Gilles
2019-02-19Allow bigparse to handle negative numbersS. Gilles
2019-02-19Convert bigint tests to use testrS. Gilles
2019-01-29Remove pointless call overhead and casting.Ori Bernstein
2019-01-29Align slices correctly in vaenter.Ori Bernstein
2019-01-27Fix formatting.Ori Bernstein
2019-01-05Add pathabsMura Li
2018-12-26Comment.Ori Bernstein
2018-12-26Implement `std.bygrapheme`.Ori Bernstein
2018-11-16Add some negative tests.Ori Bernstein
2018-11-16Add strfind tests.Ori Bernstein
2018-11-16Fix tests.Ori Bernstein
Missing dep.
2018-11-12Simplify strfind.Ori Bernstein
Stop trying to be so damn general.
2018-11-03Add tls hooks to libstd.Ori Bernstein
2018-10-12Fix typo in chartype.Ori Bernstein
2018-08-24Add -v option, make it print test output.Ori Bernstein