Commit Graph

6432 Commits

Author SHA1 Message Date
narimiran
c6f601d48e bump version to 0.19.6 2019-05-10 13:35:12 +02:00
Jasper Jenkins
f575cdc1ae Add len check for newIfStmt to avoid segfault (#11032)
(cherry picked from commit a68c5662f2)
2019-05-07 17:36:49 +02:00
Miran
a62685372f json: add '\v' support, fixes #10541 (#10987)
(cherry picked from commit 2608bc369e)
2019-05-07 17:35:55 +02:00
genotrance
8b7cd2e19f Fix #10907 - remove unused typedef string (#10908)
(cherry picked from commit 0378bfa402)
2019-05-07 17:35:33 +02:00
Andreas Rumpf
80e9270580 macros: typo
(cherry picked from commit 802ecbc49e)
2019-05-07 17:34:45 +02:00
narimiran
f1c297e439 fix duplicate definition 2019-04-12 09:38:22 +02:00
cooldome
3cf038027b fixes #10765 (#10993) [backport]
(cherry picked from commit de02fd0b89)
2019-04-11 15:15:43 +02:00
Andreas Rumpf
897b63e5cd stats.nim: bugfix: use min in '+' [backport]
(cherry picked from commit 1332f649b2)
2019-03-24 19:07:33 +01:00
Araq
aa2dfd1cef fixes a critical strutils bug [backport]
(cherry picked from commit 68ce92d4eb)
2019-02-20 19:47:02 +01:00
Andreas Rumpf
99fc4029e0 fixes #10584 [backport]
(cherry picked from commit 65f3e390e8)
2019-02-20 19:25:33 +01:00
Arne Döring
c9441c6f79 Vm bitops fixes (#10520) 2019-02-05 15:51:08 +01: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
Miran
74275112a5 fixes #2796 (#10500) [backport]
(cherry picked from commit 9ac0cbdd51)
2019-01-31 08:29:40 +01:00
Araq
3ffa9b2e78 fixes #9149 [backport]
(cherry picked from commit 07a0a61875)
2019-01-31 08:28:30 +01:00
Christian Lyder Jacobsen
2853aeda8e Use hexadecimal in json escaping (#10437) [backport]
(cherry picked from commit 8313e5f24e)
2019-01-25 10:02:03 +01:00
Araq
81fd1147db fixes #8294 [backport]
(cherry picked from commit 27e366eaec)
2019-01-25 09:56:34 +01:00
LemonBoy
1932da018f Restore the docstring during the .async. transform (#10404) [backport]
Fixes #9816

(cherry picked from commit 792dbed57e)
2019-01-22 09:42:07 +01:00
narimiran
e8aaec0153 [backport] fix documentation leak to os.nim[ci skip]
(cherry picked from commit 29e0a792ff)
2019-01-14 09:34:22 +01:00
Araq
98cdfe073e fixes #10271 [backport]
(cherry picked from commit 451377f737)
2019-01-14 09:18:19 +01:00
alaviss
efa75215e6 system/strmantle: avoid leaking docs to system.nim [ci skip] (#10233)
thanks @timotheecour for spotting this

(cherry picked from commit 20402579a2)
2019-01-14 09:16:07 +01:00
Leonardo Cecchi
dd8192fc1d Fix ODBC SQL Error string decoding (#10207) [backport]
ODBC Errors were presented to the users as a sequence of characters.
I.e.:

    >test_oracle.exe

    Error: ['H', 'Y', '0', '0', '0', '\x00', '\x00', ...]

    test_oracle.nim(15)      test_oracle
    test_oracle.nim(8)       test_oracle
    db_odbc.nim(534)         open
    db_odbc.nim(168)         dbError
    Error: unhandled exception: ODBC Error [DbError]

This patch fix the string decoding, creating a real string:

    >test_oracle.exe

    Error: HY000 [Oracle][ODBC][Ora]ORA-12541: TNS:no listener

    test_oracle.nim(15)      test_oracle
    test_oracle.nim(8)       test_oracle
    db_odbc.nim(534)         open
    db_odbc.nim(168)         dbError
    Error: unhandled exception: ODBC Error [DbError]

(cherry picked from commit b7be67349b)
2019-01-14 09:15:17 +01:00
Ico Doornekamp
187cc9f6bd Added examples to strtabs module (#10160)
(cherry picked from commit be9d1280ae)
2019-01-09 11:04:27 +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
alaviss
1134f85faa os.walkDir: correctly evaluate paths when relative = true [0.19] (#10173) 2019-01-03 16:35:14 +01:00
Araq
32d7fa35a9 fixes #9728
(cherry picked from commit 4929f74023)
2019-01-03 13:36:31 +01:00
narimiran
7beea1642d Revert "os.walkDir: correctly evaluate paths when relative = true"
This reverts commit 123c568236.
2018-12-31 11:20:10 +01:00
alaviss
123c568236 os.walkDir: correctly evaluate paths when relative = true 2018-12-29 10:51:43 +01:00
Andreas Rumpf
d02bf88f21 GC: avoid pathological behaviour; fixes #10040 [backport] 2018-12-29 10:47:20 +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
pgkos
a8b20e8129 fixes #9800 (#9804) [backport]
* fixes #9800
* add tests for #9800

(cherry picked from commit 518c72e57a)
2018-11-28 17:49:33 +01:00
alaviss
b53d726c57 don't raise exception in the default handler 2018-11-24 21:53:35 +01:00
Yuriy Glukhov
219942658b Fixes 9716 [backport] 2018-11-24 17:35:24 +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
Arne Döring
ae26351a0e changelog entry
(cherry picked from commit 80843373ba)
2018-11-01 18:08:38 +01:00
Arne Döring
899ce95420 fix typo
(cherry picked from commit 84db658eb4)
2018-11-01 18:08:25 +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
Araq
78f9a55287 nre: don't use the deprecated import syntax
(cherry picked from commit 895ac5bec4)
2018-11-01 18:06:57 +01:00
Arne Döring
758c20dc84 fixes #9557
(cherry picked from commit e653121633)
2018-11-01 18:06:42 +01:00
B3liever
1a9b954cd9 Fix names set and get procs in macros
(cherry picked from commit fb75e3bb49)
2018-11-01 18:06:32 +01:00
Araq
5d3756ed3f fixes #7667; underlying issue is that dot calls in generics have no concept of 'friend' symbols, will be addressed later
(cherry picked from commit e44df5dca6)
2018-11-01 18:03:28 +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
Clyybber
20b6c47d3f actually do ceiling division, not a similar operation
Co-Authored-By: flaviut <tamasflaviu@gmail.com>
(cherry picked from commit 2aa7eeda39)
2018-11-01 18:03:05 +01:00
Neelesh Chandola
c756983795 Fixes #9525 (#9526)
(cherry picked from commit 95cc1abdc7)
2018-11-01 18:02:56 +01:00
xzfc
c8786ad197 Fix strscans.scanp (#9518)
* strscans: fix typo

* strscans: fix #9240

* strscans: add tests

(cherry picked from commit 95a60dc780)
2018-11-01 18:02:33 +01:00
Flaviu Tamas
71d9a1f289 Eliminate floating point arithmatic in nre
Integer division is already hard enough on your CPU, using floating
point here is WAY slower and can just as effectivly be done using
integers. This is important because matchImpl tends to be in the center
of very hot loops (like split()).

(cherry picked from commit 9ca1c2c930)
2018-11-01 18:01:44 +01:00
citycide
171721bf49 docs: clarify asyncCheck vs waitFor
(cherry picked from commit 4362ba7293)
2018-11-01 18:00:26 +01:00