summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* times.Timezone changes (#8527)Oscar Nihlgård2018-08-171-63/+139
| | | | | | | | | | * Use floorDiv in times.nim * New implementation of times.Timezone * Tweak doc comments * Fix typo
* Look for user nim.cfg in "nim/" subdir in usual config dir locations (#8662)Kaushal Modi2018-08-171-2/+2
| | | Fixes https://github.com/nim-lang/Nim/issues/8661.
* fixes #8658; addQuoted on Option[T] (#8659)Arne Döring2018-08-171-3/+5
|
* fixes #7187 sequtils.toSeq produces the sequence from the iterator twice (#8586)Timothee Cour2018-08-161-14/+26
| | | | | * cleanups refs #8584 * fixes #7187
* Genode fixes (#8501)Emery Hemingway2018-08-162-4/+12
| | | | | | | | | | | | | * Genode fixes - wrap strings in "Genode::Cstring" when logging - define SIGABRT for Genode - disable GCC -fstack-protector - use log RPC for fatal messages - add --os:genode build to appveyor - define paramStr and paramCount * Select fixups for Genode POSIX
* added a variant of quoteShellCommand that takes an openArray of arguments ↵Timothee Cour2018-08-161-0/+14
| | | | (#8272)
* Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-1611-55/+146
|\
| * Merge pull request #8628 from hlaaftana/patch-1Dominik Picheta2018-08-141-2/+2
| |\ | | | | | | Small documentation typo in math
| | * Small documentation typo in mathhlaaf2018-08-141-2/+2
| | |
| * | fixes #8577, fixes #8580, other bug fixes (#8584)Timothee Cour2018-08-141-38/+86
| | |
| * | Haiku support for Nim (#8542)alaviss2018-08-149-14/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
| * | Adds get for Option[T]. (#8462)Dominik Picheta2018-08-141-1/+8
| |/
* | make more tests greenAndreas Rumpf2018-08-142-2/+1
| |
* | renames threadpool.await to blockUntil; refs #7853Araq2018-08-141-24/+24
| |
* | Merge branch 'devel' into araq-miscAraq2018-08-131-11/+20
|\|
| * Fixed 7478: splitLines keepEol option (#8621)Iván Montes2018-08-131-12/+21
| |
* | fixes more nil handling regressionsAraq2018-08-131-7/+7
| |
* | make more tests greenAndreas Rumpf2018-08-135-69/+10
| |
* | WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-1311-67/+77
| |
* | Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-103-5/+59
|\|
| * fixes #8519; implements T.distinctBase to reverse T = distinct A (#8531)Timothee Cour2018-08-101-0/+38
| |
| * Fix regression for mapIt (#8567)LemonBoy2018-08-081-3/+8
| | | | | | | | | | | | Don't try to be too smart and limit the use of `evalOnce` where strictly needed as not every value can be assigned with a `let`. Fixes #8566
| * Merge pull request #8559 from ehmry/fix_8109Dominik Picheta2018-08-081-2/+13
| |\ | | | | | | AsyncHttpClient: return from requests before body completion
| | * AsyncHttpClient: return from requests before body completionEmery Hemingway2018-08-081-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Store the body completion future at the client and wait for it to complete before issuing additional requests. This allows the body FutureStream reader to drain the stream and read buffers to be freed asynchronously. Fix #8109
* | | rework the exception hierarchy; refs #8363Andreas Rumpf2018-08-101-4/+2
| | |
* | | deprecated regionized pointersAraq2018-08-101-4/+2
| | |
* | | fixes more nil string bugsAraq2018-08-081-4/+6
| | |
* | | make async tests green for LinuxAraq2018-08-081-2/+0
| | |
* | | strutils: minor code cleanupAraq2018-08-081-4/+1
|/ /
* / Make mapIt work on openArray's (#8543)LemonBoy2018-08-071-3/+30
|/
* fixes #8421, fixes #7968, Nim compiler compiles with MSVC C89 version (#8556)andri lim2018-08-071-24/+58
|
* OSX: make tioslectors test greenAndreas Rumpf2018-08-061-1/+4
|
* remove redundant test for nil before `add` (#8460)Timothee Cour2018-08-061-2/+0
|
* Merge pull request #8364 from timotheecour/pr_expandTildeDominik Picheta2018-08-051-14/+12
|\ | | | | ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSep
| * ospaths.expandTilde: handle ~ correctly; refactor to use DirSep, AltSepTimothee Cour2018-07-181-14/+12
| |
* | Update example code for UDP socketsEuan T2018-07-301-1/+1
| |
* | fixes #8468, stdlib.encodings.convert not crash anymore on windows (#8470)andri lim2018-07-301-4/+4
| |
* | Add checks for random.rand() (#8431)Quelklef2018-07-301-2/+15
| |
* | Fixed typo introduced in #8428 that leads to InvalidIdent assertion failure ↵Yuriy Glukhov2018-07-301-1/+1
| | | | | | | | (#8464)
* | Allow async stdinYuriy Glukhov2018-07-255-48/+51
| |
* | fix issue #8349 FileSystemCaseSensitive should be false on OSX (#8411)Timothee Cour2018-07-231-1/+6
| |
* | addresses issue #8391 show runtime context on some failed operations (#8393)Timothee Cour2018-07-232-5/+5
| |
* | Use enum string values in times.nim (#8413)Oscar Nihlgård2018-07-231-16/+19
| |
* | Add application/wasm to mimetypes.nim (#8389)Zachary Carter2018-07-211-0/+1
| | | | | | | | | | | | | | ``` To serve wasm in the most efficient way over the network, make sure your web server has the proper MIME time for .wasm files, which is application/wasm. That will allow streaming compilation, where the browser can start to compile code as it downloads. ``` http://kripken.github.io/emscripten-site/docs/compiling/WebAssembly.html#web-server-setup
* | add sets.pop procedure (analogue to python) (#8383)skilchen2018-07-211-0/+12
| |
* | sequtils: remove some aligning spaces around == to silence warningsskilchen2018-07-211-13/+13
| |
* | fixes #8037, json.to support object with distinct types (#8086)andri lim2018-07-191-5/+30
|/ | | | | | * add distinct types to json 'to' macro * fix json 'to' macro and add more test
* fixes #8338Andreas Rumpf2018-07-171-1/+1
|
* Fix setCursorPos and setCursorXPos on POSIX (#8310)John Novak2018-07-171-2/+2
|
* fix #8273 times format regression, and fix inconsistent ordering in 1 format ↵Timothee Cour2018-07-161-29/+29
| | | | | | | | | | | | | | overload (#8290) * Fix issue #8273 [regression] [times.format] Error: attempting to call undeclared routine: 'format' * rename format to f for consistency with other overloads and avoid similar bugs as #8273 * breaking change since PR 8094: changed format*(f: TimeFormat, dt: DateTime) to format*(dt: DateTime, f: TimeFormat) for consistency w other overloads * use consistent ordering for times.parse procs