Commit Graph

6342 Commits

Author SHA1 Message Date
Araq
c2de135905 C++ codegen: map nil to nullptr 2018-10-02 16:18:16 +02:00
Dominik Picheta
c6e10a442d Merge pull request #9151 from flaviut/fix-9053
Fix option documentation in nre (fixes #9053)
2018-10-01 20:33:51 -07:00
Flaviu Tamas
a0ac0b9696 Fix option documentation in nre (fixes #9053) 2018-10-01 21:38:56 -04:00
Andreas Rumpf
e867c8e5c3 Merge branch 'devel' into fix_issues_9126 2018-10-01 14:15:35 +02:00
Araq
5298c509a7 fixes #9126 2018-10-01 12:51:44 +02:00
Yasuhiro Horimoto
aa8249d177 Fix #9126: use splitPath instead of substr 2018-09-30 23:20:14 +09:00
Andreas Rumpf
2dfd09b1be Merge pull request #9115 from mashingan/fix-json-aliased
Fix #9111; error when parsing to aliased type field
2018-09-29 13:27:37 +02:00
Araq
4f8cf945fb docs: remove most stale links; refs #9109 2018-09-29 11:23:29 +02:00
mashingan
5624036251 Fix #9111; error when parsing to aliased type field 2018-09-29 15:48:01 +07:00
Kaushal Modi
903886396d Don't prevent ',' from getting escaped in theindex.html
- Enable escaping of links in theindex.html
- Fixes https://github.com/nim-lang/Nim/issues/9107.
- Second part of the fix for https://github.com/nim-lang/Nim/issues/9097.
2018-09-28 15:39:22 -04:00
LemonBoy
907969d69b Allocate OpenSSL memory outside of the thread heap
Prevent spurious segfaults when OpenSSL is used in multithreaded
environments since the library isn't able to handle thread-local memory.

Fixes #9016
2018-09-27 17:23:55 +02:00
Dominik Picheta
acf4e02514 Merge pull request #9057 from LemonBoy/fix-9055
Make getSockDomain work with AF_UNIX sockets
2018-09-25 05:00:09 -07:00
Andreas Rumpf
27b622665d Merge pull request #9065 from alaviss/haiku-32bit-fix
cpuinfo: fix compilation for 32bit Haiku
2018-09-25 12:13:11 +02:00
Andreas Rumpf
c240806756 update version to 0.19 2018-09-25 12:21:04 +02:00
Andreas Rumpf
b0deb55814 Merge pull request #9059 from Vindaar/onSignalMod
fix `posix.onSignal` example, inject current signal as `s`
2018-09-25 11:59:46 +02:00
Leorize
bd3463f776 cpuinfo: fix compilation for 32bit Haiku 2018-09-25 15:47:23 +07: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
Araq
8029a649ba math.nim: document what to use instead of 'fmod' 2018-09-25 00:10:21 +02:00
Sebastian Schmidt
621ef18478 inject sig from anonymous proc instead of for loop 2018-09-24 23:49:13 +02:00
LemonBoy
d87606b100 Make getSockDomain work with AF_UNIX sockets
Fixes #9055
2018-09-24 17:26:45 +02:00
Leorize
8cc1c55620 os: add getAppFilename() implementation for Haiku 2018-09-24 21:01:55 +07:00
Andreas Rumpf
c1aecb8914 os.nim: allow walkDir to work on hierarchies with dangling symbolic links; refs #9034 2018-09-24 13:15:55 +02:00
Vindaar
4c6382a334 fix posix.onSignal example, inject current signal as s 2018-09-24 11:21:45 +02:00
Andreas Rumpf
a2587aad0d Merge pull request #9035 from LemonBoy/fix-3075
Skip nested procedures in .async. macro
2018-09-22 20:18:13 +02:00
LemonBoy
75a981cf80 Skip nested procedures in .async. macro
Fixes #3075
2018-09-22 17:30:17 +02:00
Leorize
08c6484298 ioselectors_poll: don't pollRemove() if not needed
pollAdd() is called only if events set isn't empty.
2018-09-22 14:01:05 +07:00
Andreas Rumpf
a19d2f76f6 Merge pull request #9015 from LemonBoy/fix-9013
Fix linking issue in cpp codegen
2018-09-19 22:53:52 +02:00
Andreas Rumpf
0951b5b736 Merge pull request #9011 from LemonBoy/fix-9008
Convert *_family fields to cushort
2018-09-19 18:03:30 +02:00
Andreas Rumpf
541debe6e1 stdlib: minor changes to avoid compiler warnings 2018-09-19 15:39:10 +02:00
LemonBoy
334032294f Fix linking issue in cpp codegen
Declare the root symbol only once and have the other modules depending
on it emit an `extern` declaration.

Fixes #9013
2018-09-19 12:46:50 +02:00
LemonBoy
a27429304e Convert *_family fields to cushort
Fixes #9008
2018-09-19 12:33:11 +02:00
Zahary Karadjov
27734852da Implements the equals operator for openarray 2018-09-18 18:19:54 +03:00
Andreas Rumpf
597acad507 Merge pull request #8937 from Vindaar/fixes-8925
fix #8925 by using `getTypeInst` instead of `getType`
2018-09-18 09:37:39 +02:00
Zahary Karadjov
97fefa3f50 some simple sub-expression elimination not applied by the previos author 2018-09-17 22:17:39 +03:00
Zahary Karadjov
95072fbcc3 Bugfix: custom pragmas were not working on public fields 2018-09-17 22:17:39 +03:00
Araq
34388c5cc5 name mangling: also special case the backslash character 2018-09-17 20:48:55 +02:00
Araq
a0914eff5d fixes #7500 2018-09-17 20:48:55 +02:00
Vindaar
e9addb3ab2 fix #8925 by using getTypeInst instead of getType 2018-09-17 19:34:40 +02:00
LemonBoy
62e3579655 Fix regression due to type change
The change is technically correct but requires too much type juggling
and the effort outweighs the gains.
2018-09-16 20:29:45 +02:00
Andreas Rumpf
0330fb2e13 fixes #8911 2018-09-16 12:28:43 +02:00
Andreas Rumpf
866d6d1891 Merge pull request #8897 from timotheecour/pr_startProcessAuxSpawn_raiseOSError_context
add data.sysCommand when startProcessAuxSpawn raises
2018-09-16 11:45:10 +02:00
Andreas Rumpf
566edd54b6 Merge pull request #8977 from LemonBoy/fix-unix-sockets
Fix connectUnix/bindUnix with abstract socket paths
2018-09-16 11:34:11 +02:00
Andreas Rumpf
058a42c3a2 Merge pull request #8975 from fragcolor-xyz/devel
Improve the compiler option cppCompileToNamespace
2018-09-16 09:48:23 +02:00
LemonBoy
a2a06d43f2 Fix connectUnix/bindUnix with abstract socket paths
The only way to make this work for both abstract and non-abstract
sockets is to send the kernel an incomplete structure.

Reported by Epictek on the forum.
2018-09-15 20:43:08 +02:00
Araq
0e33a8676e Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-09-15 20:32:20 +02:00
Araq
7df722844b typetraits: Dots for sentence endings. 2018-09-15 20:32:11 +02:00
skilchen
e317745098 don't reuse code from 0.18.0 2018-09-15 14:05:42 +02:00
Araq
0841eaa273 typetraits.arity: improve the documentation; fixes #8965 2018-09-15 13:46:00 +02:00
Giovanni
f1b64e4b96 improve the compiler option "cppCompileToNamespace", a custom namespace can now be set 2018-09-15 20:10:54 +09:00
skilchen
9fa477de75 more efficient fix for #8961 2018-09-15 01:04:23 +02:00