Commit Graph

10831 Commits

Author SHA1 Message Date
Andreas Rumpf
1c8a50797a Merge branch 'fix-5995' of https://github.com/yglukhov/Nim into yglukhov-fix-5995 2017-06-20 10:44:03 +02:00
Andreas Rumpf
0fbca73e71 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-19 17:43:18 +02:00
Andreas Rumpf
8db37455dd fixes withRegion for --gc:stack 2017-06-19 17:43:12 +02:00
Dominik Picheta
9d4aa03d7a Merge pull request #5998 from TiberiumN/patch-2
Add intel compiler support to times module
2017-06-17 23:34:03 +01:00
Daniil Yarancev
3b0dba7a75 Update times.nim 2017-06-18 01:28:48 +03:00
Yuriy Glukhov
58eae1171d Fixes #5995 2017-06-18 00:57:05 +03:00
Araq
d947753523 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-16 01:48:35 +02:00
Araq
c3b0eb5df7 added logic to the M&S GC to detect logical leaks 2017-06-16 01:48:23 +02:00
John Novak
17b55f9b29 Add sgn() function to the math module (#5971) 2017-06-15 21:00:18 +02:00
Markus F.X.J. Oberhumer
a0f39e0ab4 Ascii character code 127 (DEL) is not printable and must be quoted. (#5984)
This is a follow-up to #5823.
2017-06-15 20:42:23 +02:00
Dominik Picheta
6ca9ad6608 Merge pull request #5982 from daneb/devel
Working example in comment to resolve #5863
2017-06-14 14:19:29 +01:00
daneb
0a022664d5 Minor formatting 2017-06-13 21:45:18 +02:00
daneb
64cbcec54d Working example to resolve #5863 2017-06-13 21:08:04 +02:00
Dominik Picheta
d3e93a1da9 Merge pull request #5981 from ftsf/patch-1
Fix `deepCopy` incorrect argument description.
2017-06-13 14:27:35 +01:00
impbox
1ddf10b23b Create system.nim
Fix `deepCopy` incorrect argument description.
2017-06-13 23:21:38 +10:00
Andreas Rumpf
f540a3683f Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-13 13:51:41 +02:00
Andreas Rumpf
91a3cb67ec fixes #5824 2017-06-13 13:51:33 +02:00
Varriount
32ced5d9e2 Merge pull request #5941 from tulayang/devel
Fix bad tail for status response
2017-06-13 04:17:21 -04:00
Markus F.X.J. Oberhumer
963679389c cgen: #undef some more predefined symbols. (#5831)
This is a followup to issue #5171.
2017-06-13 10:12:23 +02:00
Varriount
a939a4b3a4 Merge pull request #5952 from Parashurama/fix_parseopt
Fix parseopt custom arguments
2017-06-13 04:11:58 -04:00
Araq
0f3e1f17e9 fixes #5959 2017-06-09 14:14:47 +02:00
Araq
72115c2b09 fixes #5969 2017-06-09 13:39:42 +02:00
Araq
280941aca6 make tests green again 2017-06-09 13:34:45 +02:00
Araq
4e19c4a252 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-08 18:35:46 +02:00
Araq
4033929127 fixes tproctypecache_falsepositive.nim test case 2017-06-08 18:35:37 +02:00
Araq
82effc581d added koch xtemp command for easier compiler development 2017-06-08 12:57:39 +02:00
Ștefan Talpalaru
0c8c878f5a support libgo from GCC 6.3 (#5964) 2017-06-08 09:53:35 +02:00
Parashurama
bbf9ef606d restrict casting for closure. (#5948); fixes #5742
* restrict casting for closure.

This commit forbid casting a closure to anything other than another
closure. use rawEnv/rawProc to access underlaying pointers.

* better error message for closure cast
* fixes #5742
2017-06-07 08:52:50 +02:00
Andreas Rumpf
210955c3b6 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-06-06 18:03:51 +02:00
Andreas Rumpf
0915399b50 fixes a long standing string steams bug that caused lexbase to misbehave 2017-06-06 18:03:44 +02:00
Parashurama
27e2a34340 fixes parseopt/parseopt2 custom cmdline args. 2017-06-06 13:50:26 +02:00
wt
622b4a7b47 Update asynchttpserver.nim 2017-06-06 08:52:19 +08:00
Parashurama
f603e1b268 fix logical right shift in VM. (#5916) 2017-06-05 17:25:04 +02:00
Parashurama
2c5053caef fix countProcessors error return value. (#5942) 2017-06-05 13:21:57 +02:00
Parashurama
cd51628f57 fix orderedtable enlarge proc. (#5937)
This fixes issue #5917
2017-06-05 13:16:30 +02:00
Andreas Rumpf
55c244400d .partial object field names are left unmangled; mangling should be done by the macro instead 2017-06-05 10:30:24 +02:00
wt
7e7699a856 Fix bad tail for status response 2017-06-05 10:52:23 +08:00
Andreas Rumpf
c59bc0cc18 first steps to allow easy functors via macros 2017-06-04 11:17:41 +02:00
Andreas Rumpf
42c9bb3ace fixes #5933 2017-06-03 21:08:32 +02:00
Andreas Rumpf
d1f5e3b110 fixes #4139 2017-06-03 14:30:16 +02:00
zah
39aef12446 review and merge zahary's work (#5849)
* proper indentation for the generated JS code
* improved dead-code elimination for JavaScript
* test the JS dead-code elimination

A new test spec has been added - "maxcodesize". It specifies the
maximum size of the generated code in bytes.
2017-06-03 12:45:10 +02:00
Arne Döring
eb8e267ff6 improved comment satement support in macros (#5904) 2017-06-02 01:22:21 +02:00
Parashurama
da52ade86e fix right shift c codegen bug. (#5919)
* fix right shift c codegen bug.

signed int must first be cast as unsigned before converting to larger
integer. The C compiler will auto convert operands to the largest type.
2017-05-31 21:05:14 +02:00
Eugene Kabanov
199f061ddc Fix #5920 (#5922)
* Use native `getthrid` on OpenBSD.
* Use NetBSD specific primitive to get thread id
2017-05-31 21:00:16 +02:00
Araq
7b3785554f Merge branch 'devel' of github.com:nim-lang/Nim into devel 2017-05-31 14:35:53 +02:00
Araq
3c129b7fe5 make development version odd 2017-05-31 14:35:45 +02:00
Araq
68d606d773 improve confusing error messages for failed overloading resolution when deref of first arg failed 2017-05-31 14:34:46 +02:00
Fredrik Høisæther Rasch
6652ae9741 Creating and setting comment nodes in macros (#5850)
* strVal assingnable comment statement ast nodes
* Set comment instead of strVal for comment nodes
* Added test code for creating and setting comment nodes
* Modified the AST spec documentation for documentation comments
2017-05-31 13:08:08 +02:00
ftsf
eb83ec2685 Remove redundant filestream.close, causes crash (#5907)
File is already being closed by defer: file.close() closing it twice causes crash.
2017-05-29 14:57:49 +02:00
Jacek Sieka
ba4cc4bf35 a few tiny cleanups (#5712)
exposes emitLazily (for nlvm) and simplifies some conditionals
2017-05-29 09:42:26 +02:00