summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* system.nim deprecate 'getRefcount'; refs #2839, refs #3713Araq2018-10-151-3/+6
|
* system.nim: fixes typoAraq2018-10-151-1/+1
|
* implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-141-2/+19
|
* correctly render AST in doAssert/assert condition: fixes #8518; refs #9301 ↵Timothee Cour2018-10-141-6/+8
| | | | | | (#9332) * fixes #8518; refs #9301; correctly render AST in doAssert condition
* deprecate accumulateResult => sequtils.toSeq (#8666)Timothee Cour2018-10-131-1/+4
|
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)c-blake2018-10-121-0/+2
| | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s.
* compile date and compile time tz written in doc (#9283)eqperes2018-10-111-2/+2
|
* Unchecked arrays now have their own type (#9267)LemonBoy2018-10-101-1/+7
|
* Separate high/low/len docs for each overload (#8816)hlaaf2018-10-091-19/+99
|
* development version is 0.19.1Araq2018-10-091-1/+1
|
* update version to 0.19Andreas Rumpf2018-09-251-2/+2
|
* .error for routines now can also have a custom error message; improve error ↵Araq2018-09-251-2/+10
| | | | message for 'nil' strings
* Implements the equals operator for openarrayZahary Karadjov2018-09-181-0/+10
|
* documents system.cmp's platform specific behaviour; fixes #8930Araq2018-09-151-0/+2
|
* Merge branch 'devel' into araq-better-docgenAraq2018-09-141-8/+11
|\
| * Merge pull request #8941 from timotheecour/pr_fix_8928Andreas Rumpf2018-09-121-2/+5
| |\ | | | | | | fix #8928 regression
| | * fix #8928Timothee Cour2018-09-111-2/+5
| | |
| * | Fix add(string, cstring) when the lhs is null (#8951)LemonBoy2018-09-121-3/+4
| |/
| * JS strings have no trailing zero anymore (#8936)LemonBoy2018-09-111-2/+1
| |
| * Fix insert/delete for JS (#8915)LemonBoy2018-09-081-2/+2
| | | | | | Fixes #8914
* | fixes #8961Araq2018-09-141-2/+2
| |
* | system.nim: fix doc comment for 'once'Andreas Rumpf2018-09-071-6/+6
|/
* Automatic deref for everything but pointers in asm/emit (#8891)LemonBoy2018-09-071-3/+3
| | | Fixes #7249
* fix items for cstring for the JS target; makes tests green againAraq2018-09-031-4/+11
|
* deprecate system.onRaise; fixes #1652Araq2018-09-031-1/+4
|
* fixes #8847Araq2018-09-031-1/+1
|
* introduce precise string '[]', '[]=' accessors; fixes #8049 (#8817)Andreas Rumpf2018-08-301-0/+9
|
* Deprecate xlen() for strings and seqs (#8782)awr12018-08-261-2/+7
| | | | | | * deprecates xlen() for strings and seqs * added docs
* doAssert, assert now print full path of failing line on error (#8555)Timothee Cour2018-08-251-15/+13
|
* fixes merge conflictAraq2018-08-231-8/+8
|\
| * Fixes #8719 (onFailedAssert now works for doAssert) (#8731)awr12018-08-231-8/+8
| |
| * exploit nil seqs for performance (#8688)Andreas Rumpf2018-08-201-4/+1
| | | | | | | | | | * changes $ for seqs to never produce 'nil' * exploit the fact that empty seqs don't have to allocate in the code generator
* | even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-2/+11
| |
* | make tests green againAraq2018-08-211-0/+1
| |
* | fixes merge conflictAndreas Rumpf2018-08-191-93/+92
|\ \
| * | changes $ for seqs to never produce 'nil'Andreas Rumpf2018-08-181-4/+1
| |/
| * Genode fixes (#8501)Emery Hemingway2018-08-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-161-1/+1
| |\
| | * Haiku support for Nim (#8542)alaviss2018-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | implement the --nilseqs switch properlyAndreas Rumpf2018-08-151-2/+3
| | |
| * | changes how the now illegal 'string == nil' comparison is detectedAndreas Rumpf2018-08-151-0/+4
| | |
| * | make tests green againAraq2018-08-131-2/+6
| | |
| * | WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-6/+15
| | |
| * | rename SystemError to CatchableError in order to avoid breaking Nimble and ↵Araq2018-08-101-4/+4
| | | | | | | | | | | | probably lots of other code
| * | rework the exception hierarchy; refs #8363Andreas Rumpf2018-08-101-71/+33
| | |
| * | deprecate isNil for strings and seqsAraq2018-08-081-4/+4
| |/
| * fixes #6255, add `system.ashr` arithmetic right shift (#8547)andri lim2018-08-071-0/+17
| |
| * Stricter signature for countdown/countup (#8549)Oscar Nihlgård2018-08-071-3/+3
| |
* | make at least bootstrapping workAraq2018-08-051-4/+6
|\|
| * fixes #7492 excessiveStackTrace:on shows non-absolute file in stacktrace (#8469)Timothee Cour2018-07-301-1/+3
| |