summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Add sideEffect pragma to importC procs in posix, winlean and time module ↵Tomohiro2020-02-081-3/+3
| | | | | | | | | (#13370) * Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-081-2/+2
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* fix #6736: templates in unittest now show actual value (#13354)Miran2020-02-071-1/+1
|
* [backport] remove 'CountTable.mget' (#13355)Miran2020-02-071-13/+0
| | | It didn't work, and it was an oversight to be included in v1.0.
* [backport] fix #13352narimiran2020-02-071-1/+3
|
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-071-2/+2
| | | | * printing float values will have one more digit. Fixes #13196
* Added a basic example how to handle a Post request. (#13339)Henrique Dias2020-02-071-3/+55
| | | | | | | | | | | | * Added a basic example how to handle a Post request. They were also made minor cosmetic changes. * Minor fixes suggested by Yardanico * Fixed a wrong value in chunkSize constant. * Re-added the request.body for compatibility!
* Option to allow the request body to be processed outside the asynchttpserver ↵Henrique Dias2020-02-041-16/+48
| | | | | | library. (#13147) Allow the request body to be processed outside the asynchttpserver library to break big files into chunks of data. This change does not break anything.
* Fix capture for object types (#13315)Clyybber2020-02-021-1/+1
| | | | | | * Fix capture for object|tuple|... types * Add test case
* refs #8391 std/os now shows runtime context for raiseOSError exceptions (#13294)Timothee Cour2020-01-301-52/+51
| | | | | | | | * refs #8391: fix errmsg for setCurrentDir * raiseOSError calls for copyFile * refs #8391 std/os now shows runtime context for raiseOSError exceptions
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-1/+1
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* csize => csize_t for sysctlTimothee Cour2020-01-283-11/+10
|
* Tiny since cleanup (#13286)Clyybber2020-01-283-118/+118
|
* unittest add resetOutputFormatters proc (#13267)cooldome2020-01-281-0/+5
| | | | | | | | * add resetOutputFormatters * remove space * resolve comments
* Rename isNilOrWhitespace to isEmptyOrWhitespace and make it use ↵hlaaftana2020-01-261-10/+13
| | | | | | | | allCharsInSet (#13258) * Rename isNilOrWhitespace to isEmptyOrWhitespace * Make isEmptyOrWhitespace use allCharsInSet(Whitespace)
* Fix typo for literal `[` (#13243)Euan2020-01-241-1/+1
| | | The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
* Fixes asyncftpclient multiline reading, fixes #4684 (#13242)hlaaftana2020-01-241-5/+6
| | | | | Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line. Also made it work for taint mode.
* [backport] Make all parseutils examples auto-checking (#13238)Kaushal Modi2020-01-231-32/+25
| | | - Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-231-14/+23
|
* [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵Mera2020-01-231-2/+3
| | | | (#13231) [ci skip]
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵Juan Carlos2020-01-211-5/+9
| | | | headers argument instead of hardcoded empty (#13207)
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-212-2/+6
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+2
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add idxmin() which returns the index of the minimum value * Add idxmax() which returns the index of the maximum value * Add tests for idxmin() * Add tests for idxmax() * Remove initialization of result = 0 * Adds overloading for arrays (no enums indexed arrays yet) * Add support for enum index arrays * Fix tests with enum * Fix tests for idxmax * Change names of the procedures to minIndex and maxIndex * address Araq's comments: - remove 'array' versions - add .since pragma - return 'int' instead of 'Natural' - add changelog entry Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com>
* Add link to packaging.html (#13194)Federico Ceratto2020-01-191-0/+2
|
* times: toUnixFloat, fromUnixFloat (#13044)Timothee Cour2020-01-182-10/+29
|
* ARC works for async on Windows (#13179)Andreas Rumpf2020-01-172-35/+33
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-164-20/+20
|
* export normalizePathEnd (#13152)Timothee Cour2020-01-151-0/+9
|
* fix the ftp store function read the local file bug (#13108) [backport]perter lee2020-01-131-4/+4
| | | | | | | | * Update asyncftpclient.nim When use newStringOfCap function not have assign memory for the string data,so if use this address the fault is rasise. * complelete the bugfix
* [backport] fix #12813, fix #13079 (#13099)Miran2020-01-101-4/+14
| | | Correctly remove a key from CountTable when it is set to zero.
* fixes an asyncftpclient bug; refs #13096 [backport]Andreas Rumpf2020-01-101-1/+1
|
* typetraits: fixes #6454; genericParams; added lenTuple; added tuple type get ↵Timothee Cour2020-01-101-0/+40
| | | | | | (#13064)
* Fix error check code in osproc (#13090) [backport]Tomohiro2020-01-091-1/+1
|
* Deleted misplaced separator (#13085) [backport]Teashrock2020-01-091-1/+0
| | | Misplaced separator, which was constantly breaking compilation on Haiku OS, was deleted.
* distinctBase type trait for distinct types (#13031)cooldome2020-01-082-32/+8
|
* clean up deprecated stuff and unused imports in tests (#13059)Miran2020-01-071-1/+1
|
* fixes #12996Araq2020-01-051-1/+2
|
* fixes #13032Araq2020-01-041-2/+2
|
* Added fix for handling TaintedStrings in streams and httpclient (#12969)Sam Wang2019-12-292-6/+14
| | | | | | * Added fix for taint mode in streams and httpclient * Removed taintMode export from system.nim
* parsecfg: retain CRLF line breaks, fixes #12970 (#12971)Simon Krauter2019-12-291-3/+3
|
* Allow customize Host headerJack Tang2019-12-281-4/+5
|
* osproc: fixes regressionAraq2019-12-241-1/+1
|
* ported osproc.nim to ARCAraq2019-12-241-1/+1
|
* fixes the distros.nim regressionAraq2019-12-241-1/+1
|
* Auto-initialize deques (#12879)Ico Doornekamp2019-12-211-3/+17
|
* Implement NixOS distro check (#12914)Emery Hemingway2019-12-181-1/+5
|
* fix json regression D20191212T144944 (#12902) [backport]Timothee Cour2019-12-151-0/+1
|