Commit Graph

3743 Commits

Author SHA1 Message Date
Dominik Picheta
f1da308776 Fixes #1801. 2016-06-06 10:51:18 +01:00
Dominik Picheta
cb76f266fa Niminst now bundles the compiler dir when packaging. 2016-06-06 00:04:50 +01:00
Andreas Rumpf
03b64327ca fixes a critical bug about template instantiations in generics 2016-06-05 16:43:20 +02:00
Andreas Rumpf
3847348fdf fixes #4272 2016-06-05 16:43:20 +02:00
Andreas Rumpf
1d44fee399 hotfix: don't crash for wrong template calls 2016-06-03 23:07:07 +02:00
Andreas Rumpf
09ac351a6f fixes codegen regression 2016-06-02 20:41:08 +02:00
Andreas Rumpf
af1e941872 fixes #2259, fixes #1389 2016-06-02 18:12:11 +02:00
Andreas Rumpf
87ffff96d2 fixes #4186 2016-06-02 17:23:39 +02:00
Andreas Rumpf
e8d507c859 system. for cstrings uses value comparisons, not reference comparisons 2016-06-02 16:38:20 +02:00
Parashurama
8ce9739f11 adds support for unicode hexcode in string literals. 2016-06-01 23:36:46 +02:00
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