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
Araq
b9dc486db1
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-09-15 00:41:32 +02:00
Araq
ea1c28294a
fixes #8925
2018-09-15 00:32:40 +02:00
Araq
a34184bf88
documents system.cmp's platform specific behaviour; fixes #8930
2018-09-15 00:23:27 +02:00
Andreas Rumpf
0c04b80651
Merge pull request #8966 from LemonBoy/fix-8964
...
Fix hashing for codegenProc (sic) types
2018-09-14 22:28:12 +02:00
Araq
5709736e82
Merge branch 'devel' into araq-better-docgen
2018-09-14 15:48:07 +02:00
LemonBoy
839953c3e1
Fix hashing for codegenProc (sic) types
...
Since the name mangling is inhibited we should take the user-supplied
name during the sighash computation.
Fixes #8964
2018-09-14 15:37:51 +02:00
Araq
4ab9953787
fixes #8961
2018-09-14 11:40:43 +02:00
Araq
7d9c5be333
nim doc: simplifiy index generation
2018-09-13 20:28:51 +02:00
Araq
b9ed684dd2
index generation for docgen knows about subdirectories; index knows about enum values; fixes import statement for runnableExamples
2018-09-13 01:05:51 +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
Andreas Rumpf
132eb31e32
Merge pull request #8949 from nim-lang/araq-for-loop-expressions
...
For loop expressions
2018-09-12 10:27:54 +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
Andreas Rumpf
f7d1902043
fixes merge conflicts
2018-09-11 17:27:47 +02:00
LemonBoy
e7d4043406
Always emit hti object types if needed ( #8940 )
...
The compiler is now smart enough to emit types only if needed without
all the importc tricks. This also fixes a codegen bug where, if all the
stars align correctly, typeinfo doesn't include any definition of
`TNimType` but uses it.
Found by @skilchen in #8938
2018-09-11 17:03:21 +02: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
90025e242d
Minor fixes for asyncjs ( #8894 )
...
* Minor fixes for asyncjs
Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList
* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
LemonBoy
af1e84f54d
Automatic deref for everything but pointers in asm/emit ( #8891 )
...
Fixes #7249
2018-09-07 01:54:59 +02:00
Timothee Cour
67aa8eab0b
add data.sysCommand when startProcessAuxSpawn raises
2018-09-06 03:12:10 -07:00
LemonBoy
36e6ca16d1
Fix too broad generic match for toHex ( #8889 )
...
Fixes #8865
2018-09-05 20:57:50 +02:00
Vindaar
d34233b501
[DOC] fix typos in strscans documentation ( #8885 )
2018-09-05 14:57:36 +02:00
LemonBoy
4aba2981dd
Codegen fix for function pointers marked inline ( #8866 )
...
Fixes #5345
Fixes #5701
2018-09-04 15:28:14 +02:00
c-blake
cec89d8354
This has been unnecessary as long as rawNewObj has called zeroMem, ( #8867 )
...
and more recently indexing past the Nim-logical end has become
illegal making this line cause a crash.
2018-09-04 15:26:34 +02:00
Dominik Picheta
e789acb59b
Merge pull request #8840 from pigmej/fix_with_timeout
...
Handle fut.failed in asyncdispatch.WithTimeout
2018-09-03 21:34:52 +01:00