Commit Graph

2883 Commits

Author SHA1 Message Date
Anatoly Galiulin
88c99ad37c Improve error message for exported generated types 2016-06-01 15:33:00 +06:00
Andreas Rumpf
f7f3d70a68 bugfix: make visibility more robust for macros 2016-06-01 11:01:03 +02:00
Andreas Rumpf
041054e038 fixes #4207 2016-06-01 11:01:03 +02:00
Andreas Rumpf
660cd7ed70 fixes #3532 2016-06-01 11:01:03 +02:00
Andreas Rumpf
65c95e01e4 fixes #1611 2016-06-01 11:01:03 +02:00
A. S. Budden
0cc7c9a13c Modification to implementation of round() such that it returns a float and accepts a places argument (fixes #3473).
This also involved moving some functions around to get the hierarchy correct and the documentation for frexp was modified such that it was clear that it can return a float in either the range [-1, -0.5] or [0.5, 1].
2016-05-31 13:17:40 +01:00
Andreas Rumpf
f3fdad0eda hotfix: --noNimblePath wasn't working when in a config file 2016-05-31 09:59:17 +02:00
Andreas Rumpf
893be3a5a4 changed the compiler's path handling; fixes #546 2016-05-31 03:04:45 +02:00
Andreas Rumpf
f2d6edd861 fixes #786 2016-05-31 03:04:45 +02:00
Andreas Rumpf
4886cde781 fixes #765 2016-05-31 03:04:45 +02:00
Andreas Rumpf
4ebd7d0744 fixes #1262 2016-05-31 03:04:45 +02:00
Andreas Rumpf
4180f59b27 fixes #1713 2016-05-30 16:24:52 +02:00
Andreas Rumpf
be2efa69ea refactorings 2016-05-30 00:59:02 +02:00
Andreas Rumpf
e52044660d Merge branch 'patch/fix-3496-generic-tmpl-args' of https://github.com/nanoant/Nim into nanoant-patch/fix-3496-generic-tmpl-args 2016-05-29 23:58:25 +02:00
Andreas Rumpf
e65c89ee28 fixes #4177 2016-05-28 22:40:28 +02:00
Andreas Rumpf
426306eeb4 fixes #3882 2016-05-28 17:43:47 +02:00
Andreas Rumpf
a406ebbac9 cleanup of #4113 2016-05-28 17:19:44 +02:00
Andreas Rumpf
d3fe4a2db1 Merge pull request #4113 from jcosborn/gettypeinst
getTypeInst
2016-05-28 17:14:52 +02:00
Andreas Rumpf
0b84ee167b fixes #2159
Hints and warnings are only emitted for the main package that is compiled
2016-05-28 17:12:51 +02:00
Andreas Rumpf
0134a51a7c fixes critical 'do' parsing bug 2016-05-28 02:17:13 +02:00
Andrei Formiga
c439ef2e71 Fix issue #4001: invalid pragma {. hint[]: off .}
The bug was in processNote, module pragmas. The code assumed that
a nkBracketExpr AST node always had two children (without testing
this), and tried to access elements with index 0 and 1 in the sons
array of the nkBracketExpr node.

The code that triggered the bug was just {. hint[]: off .}
by itself in a module; in this case the nkBracketExpr has only
one children in the sons array, so the code in processNote caused
an out-of-bounds array access.

This commit also adds a test to guarantee that this pragma is
rejected, as is.
2016-05-27 19:03:15 -03:00
Andreas Rumpf
51c62a211b remove funny debug output 2016-05-27 21:25:13 +02:00
Andreas Rumpf
8f43e9d18c fixes #4225 2016-05-27 19:35:48 +02:00
Andreas Rumpf
6d76df8454 fixes #4227 2016-05-27 19:18:08 +02:00
Andreas Rumpf
6ff66bfd51 improve error messages for mismatched templates involving 'untyped' and stmts 2016-05-27 19:18:08 +02:00
Yuriy Glukhov
4d0d2d69f3 Fixes #4222 2016-05-26 08:49:56 +03:00
Andreas Rumpf
bcc91a319c Nimscript knows about the command line defines 2016-05-24 23:35:39 +02:00
Andreas Rumpf
fc4038fade allow to check verbosity level via compileOption 2016-05-24 20:25:37 +02:00
Andreas Rumpf
fcb5cdcc9f Merge pull request #4083 from vegansk/vm_readfile
Add ``readFile`` implementation for nimvm
2016-05-24 00:09:54 +02:00
Andreas Rumpf
e00f15aa2a Nim check defines 'nimcheck' conditional symbol 2016-05-24 00:07:59 +02:00
Andreas Rumpf
2ecf4633f4 Merge branch 'prim-gc' into devel 2016-05-22 15:01:36 +02:00
Yuriy Glukhov
0d5c8b32e7 4066 fixup 2016-05-19 12:34:18 +03:00
Andreas Rumpf
2ac3e12372 fixes #4066 2016-05-18 12:40:01 +02:00
Andreas Rumpf
3ac6bd8ae1 refactoring: flags instead of bools 2016-05-18 12:40:01 +02:00
Andreas Rumpf
d8bce8b83d GC with primitive MS 2016-05-16 00:28:00 +02:00
Andreas Rumpf
74aab132bd refactoring: flags instead of bools 2016-05-15 23:34:30 +02:00
Andreas Rumpf
746132d696 PHP codegen improvements 2016-05-13 00:47:18 +02:00
Andreas Rumpf
8e2528ebbc fixes #4148 2016-05-12 01:05:41 +02:00
Andreas Rumpf
909a161ad2 fixes #4146 2016-05-12 00:57:43 +02:00
Andreas Rumpf
5bdde429e7 fixes #4147 2016-05-12 00:43:57 +02:00
Andreas Rumpf
a9c251b8e0 fixes #3763 2016-05-12 00:38:15 +02:00
Andreas Rumpf
eae30d1961 fixes #950 2016-05-12 00:38:15 +02:00
Andreas Rumpf
4f9083268f fixes #4145 2016-05-11 21:56:56 +02:00
Andreas Rumpf
1ae95310ad fixes #3992 2016-05-11 21:34:54 +02:00
Andreas Rumpf
ac1a753aff fixes #3956 2016-05-11 21:20:53 +02:00
Andreas Rumpf
685b8963da fixes #4110 2016-05-11 21:16:26 +02:00
Andreas Rumpf
11d0f3f7ec fixes #4034 2016-05-11 20:50:03 +02:00
Andreas Rumpf
38040e7691 fixes #4040 2016-05-11 20:00:28 +02:00
Andreas Rumpf
299351a909 fixes #4070 2016-05-11 18:16:25 +02:00
Andreas Rumpf
95ffeb6079 fixes #177 2016-05-11 17:39:37 +02:00