Commit Graph

7035 Commits

Author SHA1 Message Date
Araq
dc5fa90b43 switch should be nimOldShiftRight with the nim prefix 2019-05-29 17:06:39 +02:00
Arne Döring
88b5dd3362 right shift is now by default sign preserving (#11322)
* right shift is now by default sign preserving
* fix hashString and semfold
* enable arithmetic shift right globally for CI
* fix typo
* remove xxx
* use oldShiftRight as flag
* apply feedback
* add changelog entry
2019-05-29 16:48:00 +02:00
Yuriy Glukhov
6904f323aa Fixed #9762 (#11296) 2019-05-29 12:11:03 +02:00
Araq
8bb1a6b041 fixes #11205 2019-05-28 21:30:41 +02:00
Araq
4a9e6361ce fixes #11344 2019-05-28 16:05:33 +02:00
Arne Döring
35593700fa fix doccomment of macros.get{Size,Align,Offset} [ci skip] (#11346) 2019-05-28 15:57:27 +02:00
Andreas Rumpf
9d8b4d6020 fixes #11057 (#11345) 2019-05-28 15:55:11 +02:00
Araq
781108ffe4 better error message for the object case switch transition period 2019-05-27 22:46:52 +02:00
Araq
84ca1f3bf3 hotfix for 32bit unsigned 'range' checking; incomplete, unknown why some operations produce range checks 2019-05-27 22:38:06 +02:00
narimiran
2b0ea6b2ae xmltree: use code-block for arch-dependent tests 2019-05-27 21:32:12 +02:00
Araq
383147f5cb make json.to work with the more restricted case objects 2019-05-27 21:29:02 +02:00
Andreas Rumpf
49e686ab4e fixes #1286; object case transitions are now sound 2019-05-27 21:29:02 +02:00
narimiran
247fa431de hashes: quickfix one test 2019-05-27 20:46:33 +02:00
Oscar Nihlgård
3a06022071 Enable range checking for unsigned integers (#11313)
* Enable range checking for unsigned integers

* Make the tests green
2019-05-25 20:48:13 +02:00
Araq
cacd6d1070 fixes #11294 2019-05-24 09:43:04 +02:00
Alvydas Vitkauskas
981f95757c Implement generic fromBin|Oct|Hex in strutils (#11107)
* make parsutils.parseBin generic and improve runnableExamples

* reimplement parseBin/Oct/Hex and improve runnableExamples

* update changelog.md file with parseBin/Oct/Hex and fix a typo

* delete template and code parseBin|Oct|Hex separately

* split definitions between int and other SomeInteger

* make parseBin|Oct|Hex generic and remove rtl pragmas

* remove pragma inline from praseBin|Oct|Hex

* implement families of parse(Bin|Oct|Hex)Int[xx]

* fix typo [skip ci]

* implement generic fromBin|Oct|Hex

* make runnableExamples shorter
2019-05-23 21:34:47 +02:00
Miran
44cc5f6360 fix #8329, allow case insensitive xmltree.findAll (#11305) 2019-05-23 00:14:28 +02:00
Andy Davidoff
b62f4b1b0c fix spelling [ci skip] (#11307) 2019-05-22 20:50:44 +02:00
Miran
3e0fac7c20 finish #11292: fix addQuoted and add changelog entry (#11301)
* finish #11292: fix `addQuoted` and add changelog entry

* JS is special
2019-05-22 18:57:52 +02:00
Andreas Rumpf
1e97b420bb fixes #7167 (#11300)
* fixes #7167
* spec: distinct types can be ordinal types
* bootstrapping issue
2019-05-22 11:50:05 +02:00
Araq
11fca968b2 stdlib: more consistent formatting 2019-05-22 07:41:16 +02:00
Miran
bab5e30972 fixes #10963, disallow implicit mixing of strings and ints/floats (#11292) 2019-05-21 21:32:37 +02:00
Arne Döring
f94ec363ab Allow void macro result (#11286)
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Miran
68b5e3e3fe colors: fix mix, add documentation (#11295) 2019-05-21 21:28:29 +02:00
Miran
1251e1ad16 faster hashing (#11203)
* faster hashing

* multibyte hashing for:
  * string and string slices
  * cstring
  * string, ignoring case
  * string, ignoring style
  * openArray of byte or char

* address the review comments

* use optimized version for all ints
* add more tests
* make it work in VM
* put warnings about differences between CT and runtime
* minor style tweaks
2019-05-21 21:26:27 +02:00
Miran
9bd4347abb fix #10910, optimize squaring and cubing (#11291) 2019-05-21 15:57:33 +02:00
Miran
6586516511 fix #8395, fix #8734: normalize os.tailDir and os.parentDir (#11288) 2019-05-21 15:57:20 +02:00
liuxiaodong
5e552ad3a5 getDateStr and getClockStr takes a default parameter (#11108) 2019-05-21 09:54:09 +02:00
Miran
dc6a4b1d43 fixes #11049, wrong streams.readBool and streams.peekBool (#11284) 2019-05-20 19:39:38 +02:00
treeform
d490bc519a Add force openSSL version with -d:sslVersion=1.0.0 (#11272) 2019-05-20 16:53:24 +02:00
Ștefan Talpalaru
13b3e4af8a fixes #11275 (#11276) 2019-05-20 09:29:13 +02:00
Miran
a63c2a25d0 fix changing case for Unicode characters which change size (#11271)
Some Unicode characters don't have the same byte length
in their upper- and lower-case variants.
2019-05-20 09:18:47 +02:00
jiro
468599c654 db_sqlite: Update documentation (#10330) (#11266) 2019-05-19 20:27:12 +02:00
Dominik Picheta
f1a8edc14d Merge pull request #11263 from jrfondren/asyncstreams-fix-immediately-vs-soon
fix unnecessary poll() (and default 500ms delay) in some uses of async
2019-05-16 23:24:53 +01:00
Miran
9d4190a5cc fixes #11139 (re.nim memory leak) (#11265)
Use the same PCRE function for freeing up the memory as nre.nim does.
2019-05-16 21:06:31 +02:00
Miran
8f198db2ca fixes #10952, UNC paths (#11260) 2019-05-16 21:06:04 +02:00
Julian Fondren
22b4cf192d fix for unnecessary poll() in some uses of async 2019-05-15 19:57:45 -05:00
Araq
791abfbc16 selectors: exceptions are for errors, not for bugs 2019-05-15 18:19:17 +02:00
Dominik Picheta
d0b8724aa2 Fixes crashes when asyncdispatch.adjustTimeout returns a negative value. (#11231) 2019-05-15 18:15:10 +02:00
Boris Shomodjvarac
de6b2e88d2 added getSocket proc (#11233) 2019-05-15 17:47:25 +02:00
Ștefan Talpalaru
dfc7685420 fixes #11250 (#11251) 2019-05-15 08:42:30 +02:00
Dominik Picheta
6b2ed28d55 Workaround "move not found" exception in JS when using tables. (#11256) 2019-05-15 08:21:25 +02:00
Ștefan Talpalaru
fa3d19b477 cas(): use an "__atomic" builtin instead of the legacy "__sync" one (#11246)
"New code should always use the ‘__atomic’ builtins rather than the ‘__sync’ builtins." - https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
2019-05-14 21:47:14 +02:00
Hitesh Jasani
0b41f26bd6 Expose api to disable autoinitializing OpenSSL. (#11247) 2019-05-14 17:08:52 +02:00
Andreas Rumpf
fb1c3a95a5 fixes #11124 2019-05-13 17:34:15 +02:00
Benny Elgazar
a83d609960 exposing procs (#11218) 2019-05-11 10:32:34 +02:00
Arne Döring
b92fd30282 rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227) 2019-05-11 10:11:08 +02:00
Araq
95b65504e6 sequtils: minor typo 2019-05-10 19:50:23 +02:00
Ico Doornekamp
a170719d1a repr on seq now outputs @[...] (#11224) 2019-05-10 16:33:42 +02:00
Araq
9aa6aa6514 make epochTime available in DLLs; refs #6855 2019-05-10 15:20:39 +02:00