Andreas Rumpf
5348fef003
implements a --nep1:on switch to make the compiler enforce the naming conventions outlined in NEP-1
2018-06-13 01:44:19 +02:00
Andreas Rumpf
f555338ce8
bugfix: allow 'export' in the VM
2018-06-12 21:08:41 +02:00
Andreas Rumpf
b379547fc0
Merge pull request #8019 from yglukhov/proc-stacktrace
...
Allow stacktrace and linetrace pragmas on procs
2018-06-12 17:12:13 +02:00
Andreas Rumpf
aaceec0744
Merge pull request #7981 from cooldome/Fix_-7980
...
Fixes 7980
2018-06-12 11:50:40 +02:00
Yuriy Glukhov
7e7b85afc7
Allow stacktrace and linetrace pragmas on procs
2018-06-12 12:31:14 +03:00
cooldome
44d82d9492
style improvements
2018-06-12 09:17:24 +01:00
cooldome
746da12d74
add comment
2018-06-12 00:22:11 +01:00
cooldome
1b7cf3df51
New approach
2018-06-12 00:20:08 +01:00
Andreas Rumpf
1c58f31a71
Merge pull request #8014 from yglukhov/fix-6803
...
Fixes #6803
2018-06-11 23:39:27 +02:00
LemonBoy
ac0f986008
Correct field lookup in concept types
...
Fixes #6770
2018-06-12 00:36:43 +03:00
Yuriy Glukhov
8f06763491
Fixes #6803
2018-06-11 22:38:40 +03:00
Araq
1074cc1fb9
fixes yet another merge conflict
2018-06-11 17:17:34 +02:00
Araq
b0ecc1aca6
disable -d:nimIncremental for devel
2018-06-11 17:08:25 +02:00
Araq
68ba13c759
fixes merge conflict
2018-06-11 17:05:23 +02:00
Andreas Rumpf
76676cb79f
Merge pull request #8009 from yglukhov/remove-oldIterTransf
...
Removed oldIterTranf feature
2018-06-11 16:45:35 +02:00
Andreas Rumpf
26133a33a4
make tests green properly
2018-06-11 07:18:34 +02:00
Jimmie Houchin
657062145b
Added FileMode to comment on asyncfile openAsync ( #8008 )
2018-06-11 00:53:42 -04:00
Andreas Rumpf
df1784dabf
Merge pull request #8005 from Vindaar/fixes-7997
...
fix #7997
2018-06-11 01:33:14 +02:00
Andreas Rumpf
61d9292095
fixes merge conflict
2018-06-11 01:25:48 +02:00
Andreas Rumpf
61e1897922
make tests green again
2018-06-11 01:23:14 +02:00
Andreas Rumpf
90b1030dec
incremental compilation: save the configuration
2018-06-11 00:14:29 +02:00
Yuriy Glukhov
5c449c8cd1
Removed oldIterTranf feature
2018-06-10 23:42:53 +03:00
Zahary Karadjov
5f2cdcd4fa
fix #7653
2018-06-10 22:27:51 +03:00
Andreas Rumpf
8db27d30e6
record cppdefine for incremental compilation
2018-06-10 18:05:43 +02:00
Vindaar
9c5f38850d
add test case for fix to #7997
2018-06-10 18:01:15 +02:00
Vindaar
4ab6dd51b0
fix #7997
...
Fixes issue #7997 , which was caused by an export of a `release` proc
in `locks`. Thus the `release` in `defined(release)` of the `ifDebug`
template, was of kind `nkSym` instead of `nkIdent`.
We fix this by getting the `PIdent` of the argument to `defined` using
`considerQuotedIdent`.
This has the nice property of also checking for a valid identifier for
us. E.g. `defined(123)` would fail with
```
Error: in expression 'defined(123)': identifier expected, but found
'123'
```
The `localError` is removed, due to a clear distinction between
`declared` and `defined` now.
2018-06-10 18:01:06 +02:00
Andreas Rumpf
2662d713f7
implement passL and passC for the compilation cache
2018-06-10 17:06:02 +02:00
LemonBoy
03653ab61e
Fix type inference with static literals.
...
Fixes #3977
2018-06-10 14:25:40 +03:00
Dominik Picheta
ae342f84de
Revert "[RFC] NEP-1.1. Relax 80 chars requirement."
2018-06-09 18:39:33 +01:00
Andreas Rumpf
e00e7fec54
Merge pull request #7873 from ehmry/GenodeEnv
...
Native access to Genode environment
2018-06-09 09:38:53 +02:00
Andreas Rumpf
d4543500ee
Merge pull request #8000 from yglukhov/nep1.1
...
[RFC] NEP-1.1. Relax 80 chars requirement.
2018-06-09 09:26:16 +02:00
Andreas Rumpf
d323ee81e4
Merge pull request #8001 from kaushalmodi/fix-isupper-islower-try2
...
Make isUpper (and variants) work for strings with non-alpha chars
2018-06-09 08:58:08 +02:00
hlaaf
c2aec1b6c1
Change parseEnum to something faster for method parsing in asynchttpserver ( #7682 )
...
* Add faster method parsing to asynchttpserver
* Make it readable
* Align case statement
2018-06-08 21:34:19 +01:00
Dominik Picheta
caaaa8731a
Merge pull request #7962 from Yardanico/test-ci
...
Fixed Travis CI for macOS
2018-06-08 21:09:36 +01:00
Kaushal Modi
24df909d8a
Make isUpper (and variants) work for strings with non-alpha chars
...
The other variants are isLower, isUpperAscii and isLowerAscii
Fixes https://github.com/nim-lang/Nim/issues/7963 .
This commit changes the behavior and signatures of:
- isUpper, isLower in the unicode module
- isUpperAscii, isLowerAscii in the strutils module
A second mandatory parameter skipNonAlpha is added to these 4 procs.
(This change affects only for the case where the input is a *string*.)
---
With skipNonAlpha set to true, the behavior mimics the Python isupper and
islower behavior i.e. non-alphabetic chars/runes are ignored when checking if
the string is upper-case or lower-case.
Before this commit:
doAssert(not isUpper("A B"))
After this commit:
doAssert(not isUpper("A B", false)) <-- old behavior
doAssert isUpper("A B", true)
Below two are equivalent:
isUpper("A B", true)
isAlpha("A B") and isUpper("A B", false)
.. and the similar for other 3 procs.
2018-06-08 15:14:29 -04:00
Yuriy Glukhov
1531738974
NEP-1.1. Relax 80 chars requirement.
2018-06-08 20:51:44 +03:00
Araq
8e9551b1c7
fixex merge conflicts
2018-06-08 19:50:36 +02:00
data-man
3e799d7876
Removed redundant conditions in CritBitTree.inc, speedup it.
2018-06-08 19:29:19 +03:00
Dmitry Atamanov
fbd91a474a
Add the val parameter for CritBitTree[T].incl ( #7988 )
...
* Add the val parameter for CritBitTree[T].incl
* Updated changelog
2018-06-08 12:01:40 -04:00
Andreas Rumpf
e273ef4f5e
Merge pull request #7992 from yglukhov/fromSockAddr-compile-error
...
Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr
2018-06-08 13:38:39 +02:00
Andreas Rumpf
f99acdb075
Merge pull request #7986 from yglukhov/fix-7982
...
Fixes #7982
2018-06-07 23:15:56 +02:00
Andreas Rumpf
2b391ef961
Merge pull request #7991 from yglukhov/fix-7985
...
Fixes #7985
2018-06-07 23:15:31 +02:00
Araq
3c7bbfebb1
fixes seq copying in channels for --gc:regions
2018-06-07 21:35:41 +02:00
Yuriy Glukhov
b2323de914
Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr
2018-06-07 21:10:00 +03:00
data-man
12f929e582
Fixed bug in CritBitTree.inc. Fixes #7990 .
2018-06-07 19:29:40 +03:00
Andreas Rumpf
8ba7e7d807
toy program works with incremental compilation
2018-06-07 18:24:16 +02:00
Yuriy Glukhov
60b9c9dc1f
Fixes #7985
2018-06-07 19:14:14 +03:00
data-man
cc63351a5a
Updated tests for CritBitTree $
2018-06-07 18:49:59 +03:00
data-man
aa7348b356
Quote a keys for CritBitTree $ impl. Fixes #7987
2018-06-07 18:39:46 +03:00
Andreas Rumpf
e06f5bc3d0
Merge pull request #7806 from survivorm/feature/times_mutators
...
Feature/times mutators
2018-06-07 17:17:30 +02:00