Commit Graph

11210 Commits

Author SHA1 Message Date
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
cooldome
aef5b2eb54 Add len for Slice[T] where T is ordinal (#5847) 2017-05-29 09:41:00 +02:00
Varriount
fd0ab1df3e Merge pull request #5823 from markus-oberhumer/ascii127-is-not-printable
Ascii character code 127 (DEL) is not printable.
2017-05-26 02:29:00 -04:00
Varriount
bd47914f4c Merge pull request #5842 from couven92/readme
Fixed nimsuggest in readme
2017-05-26 02:16:30 -04:00
Varriount
f5bcb3db2b Merge pull request #5865 from adamchainz/doc_shebang
Documented shebang execution of Nimscripts
2017-05-26 02:15:46 -04:00
Varriount
84a4b77854 Merge pull request #5877 from krux02/more-newLit
more and improved newLit procs in macros module
2017-05-26 02:14:52 -04:00
Varriount
f2bdf3794a Merge pull request #5873 from def-/devel
Invoke xz -9 explicitly instead of trusting tar to interpret XZ_OPT
2017-05-26 02:11:38 -04:00
Arne Döring
32143d3c7a more and improved newLit procs in macros module 2017-05-23 19:37:51 +02:00
Dennis Felsing
5b9620bc2d Invoke xz -9 explicitly instead of trusting tar to interpret XZ_OPT 2017-05-23 15:30:58 +02:00
Adam Johnson
9ffed0de3f Documented shebang execution of Nimscripts 2017-05-21 22:19:13 +01:00
Fredrik Høisæther Rasch
3cef2129b9 Fixed nimsuggest in readme 2017-05-18 15:39:15 +02:00
Yuriy Glukhov
2b8a1cee8c Fixup #5804 (#5837) 2017-05-18 13:12:43 +02:00
Araq
ecdc478dac fixes 'koch winrelease' 2017-05-18 13:07:36 +02:00
James Cowgill
675b271aa6 makefile.tmpl: fix error handling and cleanups
This changes the indentation of all non-recipe lines from tabs to 2
spaces. While this doesn't fix anything, it avoids either make or
someone interpreting those lines as a make recipe.

This also fixes the error handling by using make's $(error) function
instead. Previously make gave this syntax error whenever it hit the
error handling code:

```
*** recipe commences before first target.  Stop.
```
2017-05-18 11:18:30 +01:00
Araq
d3f0f87e81 niminst: add missing nimsuggest tool; small koch.nim cleanup v0.17.0 2017-05-17 23:59:53 +02:00
Dominik Picheta
bf0afaf3c4 Fixes web0 on Mac OS X. 2017-05-17 22:11:43 +01:00
Araq
47076452fd updated version to 0.17.0 2017-05-17 22:56:49 +02:00
Ruslan Mustakov
0a76387ba4 Fix posix_spawn error handling (#5826)
posix_spawn doesn't set errno - it returns the error code.
2017-05-17 22:40:55 +02:00
Araq
8f67b90997 Merge branch 'araq2' into devel 2017-05-17 22:13:57 +02:00
Araq
c8cec27c0a file mode change 2017-05-17 22:13:47 +02:00
Araq
6857363034 finish.nim tool: use global path environment variable if local does not exist 2017-05-17 21:48:36 +02:00
Dominik Picheta
b2e649c093 Fixes regression introduced by #5739. Improves newNimNode proc. 2017-05-17 20:05:21 +01:00
Andreas Rumpf
7a95c961a7 cleanup of in/out covariance handling 2017-05-17 20:54:53 +02:00