Commit Graph

828 Commits

Author SHA1 Message Date
narimiran
c6f601d48e bump version to 0.19.6 2019-05-10 13:35:12 +02:00
narimiran
f1c297e439 fix duplicate definition 2019-04-12 09:38:22 +02:00
narimiran
56d213ca9b bump version number to 0.19.5 2019-02-05 15:41:00 +01:00
narimiran
b6d96cafc8 bump the version to 0.19.4 2019-01-31 09:46:55 +01:00
Araq
3ffa9b2e78 fixes #9149 [backport]
(cherry picked from commit 07a0a61875)
2019-01-31 08:28:30 +01:00
alaviss
5499ec084c fix system.nim documentations (#10168)
* system: fix nimGC_getStackBottom doc
* system/helpers: avoid leaking docs to system

(cherry picked from commit be0a4d1342)
2019-01-09 11:02:43 +01:00
Miran
82818d23b1 [backport] correctly document toInt, fixes #2764 [ci skip] (#10176)
(cherry picked from commit 77166ba795)
2019-01-04 16:34:32 +01:00
Araq
f0a78b8ef1 hotfix: discriminants can be of size 8 bytes [backport]
(cherry picked from commit 24106ade8f)
2018-12-15 10:07:03 +01:00
Ștefan Talpalaru
7dfb2a8cd3 fix segfault when calling shallow() on an empty string (#9782) [backport]
shallow() casts its string argument to a seq and then tries to access
its fields. Guess what happens when that string is nil, which seems to
be the representation of an empty string (both the default value and an
explicitly assigned "").

Segfault encountered when running "ntags -R ." on a large project. The relevant line:
a1c62c38e5/ntags.nim (lines-125)

(cherry picked from commit f8fa94cb20)
2018-11-24 12:21:04 +01:00
ishowta
9fcdc14527 Empty check in shallow [backport] (#9676) 2018-11-24 12:20:35 +01:00
Araq
b0217beadf preparations for version 0.19.2 2018-11-04 10:03:50 +01:00
Araq
8172ac8c0b system.nim: workaround for the fixed documentation generator
(cherry picked from commit 1dd1d66f16)
2018-11-01 18:07:13 +01:00
narimiran
939ffc3615 more examples for mod and div, plus corrections [ci skip]
(cherry picked from commit 80b78b50d0)
2018-11-01 18:03:16 +01:00
Andreas Rumpf
4b06f19b71 stdlib: documenation updates, the exception names have been changed
(cherry picked from commit 223e92b83a)
2018-11-01 17:58:07 +01:00
Araq
4f432688a3 system.nim: fixes typo
(cherry picked from commit fe091997aa)
2018-11-01 17:43:46 +01:00
eqperes
8a9680e3a2 compile date and compile time tz written in doc (#9283)
(cherry picked from commit 00c4aba828)
2018-11-01 17:32:21 +01:00
hlaaf
8120d8bede Separate high/low/len docs for each overload (#8816)
(cherry picked from commit c68ea019f9)
2018-11-01 17:27:53 +01:00
Araq
66c0f7c3fb development version is 0.19.1 2018-10-09 10:31:27 +02:00
Andreas Rumpf
c240806756 update version to 0.19 2018-09-25 12:21:04 +02:00
Araq
548fc778c9 .error for routines now can also have a custom error message; improve error message for 'nil' strings 2018-09-25 00:28:39 +02:00
Zahary Karadjov
27734852da Implements the equals operator for openarray 2018-09-18 18:19:54 +03:00
Araq
a34184bf88 documents system.cmp's platform specific behaviour; fixes #8930 2018-09-15 00:23:27 +02:00
Araq
5709736e82 Merge branch 'devel' into araq-better-docgen 2018-09-14 15:48:07 +02:00
Araq
4ab9953787 fixes #8961 2018-09-14 11:40:43 +02:00
Andreas Rumpf
8f046792cf Merge pull request #8941 from timotheecour/pr_fix_8928
fix #8928 regression
2018-09-12 10:28:57 +02:00
LemonBoy
b195204549 Fix add(string, cstring) when the lhs is null (#8951) 2018-09-12 10:10:00 +02:00
Timothee Cour
b5f463c3f6 fix #8928 2018-09-11 11:36:15 -07:00
LemonBoy
9ba80d2044 JS strings have no trailing zero anymore (#8936) 2018-09-11 11:45:02 +02:00
LemonBoy
3f16711254 Fix insert/delete for JS (#8915)
Fixes #8914
2018-09-08 10:38:18 +02:00
Andreas Rumpf
b5730ec01f system.nim: fix doc comment for 'once' 2018-09-07 19:21:15 +02:00
LemonBoy
af1e84f54d Automatic deref for everything but pointers in asm/emit (#8891)
Fixes #7249
2018-09-07 01:54:59 +02:00
Araq
e0fd1cdb5f fix items for cstring for the JS target; makes tests green again 2018-09-03 11:13:59 +02:00
Araq
7ace82440f deprecate system.onRaise; fixes #1652 2018-09-03 09:22:19 +02:00
Araq
fa338768a3 fixes #8847 2018-09-03 08:37:32 +02:00
Andreas Rumpf
df4d5b77a1 introduce precise string '[]', '[]=' accessors; fixes #8049 (#8817) 2018-08-30 23:01:15 +02:00
awr1
96d44fdd0a Deprecate xlen() for strings and seqs (#8782)
* deprecates xlen() for strings and seqs

* added docs
2018-08-26 17:15:19 +02:00
Timothee Cour
3a626179ee doAssert, assert now print full path of failing line on error (#8555) 2018-08-25 21:48:37 +02:00
Araq
30597e643f fixes merge conflict 2018-08-23 11:30:55 +02:00
awr1
bf973d29da Fixes #8719 (onFailedAssert now works for doAssert) (#8731) 2018-08-23 10:20:58 +02:00
Araq
64517445ea even more strict isNil handling for strings/seqs in order to detect bugs 2018-08-22 12:35:46 +02:00
Araq
f12a5431a1 make tests green again 2018-08-21 20:33:47 +02:00
Andreas Rumpf
2def616069 exploit nil seqs for performance (#8688)
* changes $ for seqs to never produce 'nil'
* exploit the fact that empty seqs don't have to allocate in the code generator
2018-08-20 11:54:18 +02:00
Andreas Rumpf
696c0c48c7 fixes merge conflict 2018-08-19 15:14:03 +02:00
Andreas Rumpf
b2d5bfd076 changes $ for seqs to never produce 'nil' 2018-08-18 16:59:37 +02:00
Emery Hemingway
2da0341b4d Genode fixes (#8501)
* 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
2018-08-16 18:12:37 +02:00
Andreas Rumpf
e4c759fbff Merge branch 'devel' into araq-misc 2018-08-16 01:22:21 +02:00
Andreas Rumpf
27e1fbe7db implement the --nilseqs switch properly 2018-08-15 16:56:32 +02:00
Andreas Rumpf
0da91aa744 changes how the now illegal 'string == nil' comparison is detected 2018-08-15 16:31:56 +02:00
alaviss
7ef268274f Haiku support for Nim (#8542)
* 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
2018-08-14 09:35:07 +02:00
Araq
f91a181f58 make tests green again 2018-08-13 23:16:03 +02:00