summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Update marshal.nimFederico Ceratto2018-06-131-0/+1
|
* Add hint on JSON serializationFederico Ceratto2018-06-131-0/+1
|
* Merge pull request #8030 from c-blake/develAndreas Rumpf2018-06-131-1/+2
|\ | | | | hotfix 3221ac094398492e09ea618638204793b0990eca broke gc:regions/aka …
| * hotfix 3221ac094398492e09ea618638204793b0990eca broke gc:regions/aka gc:stack byCharles Blake2018-06-131-1/+2
| | | | | | | | | | underallocating for sequences of any type larger than 1 byte. This does the necessary multiply to restore basic functionality.
* | Add parse bin int, fixes #8018 (#8020)Vindaar2018-06-134-53/+111
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * clarify `parseHexInt`, `parseOctInt` docstring and exception msgs * add `parseBinInt` based on `parseutil.parseBin` implementation Adds a `parseBinInt`, which parses a binary integer string and returns it as an integer. This is based on the implementation of `parseutil.parseBin`, removing the unnecessary parts. * add tests for all `parse(Hex|Oct|Bin)Int` procs * replace `parse*Int` proc impls by call to parseutil procs Replaces the `parse(Hex|Oct|Bin)Int` procedure implementation by calls to the `parseutil` procs, which receive a mutable argument. Has the main advantage that the empty string as well as a "prefix only" string, e.g. "0x" counts as an invalid integer. Also moves the `parseOctInt` proc further up in the file so that all `parse` procs are below one another. * replace `var L` by `let L` in `parse` procs There's no reason for the usage of `var` here. * add `maxLen` optional arg for `parseutil.parse(Oct|Bin)` Plus small change to test cases. * update changelog about `parse*Int` procs * fix `rejectParse` template in `tstrutils` * make sure only `s.len` chars are parsed, if `maxLen+start` > s.len Fixes a previous bug in `parseHex` (and now affected `parseOct` and `parseBin`), which allowed to set `start + maxLen` to be larger than the strings length. This resulted in an out of bounds access. * move `parse*Int` proc change to breaking changes, add double `
* Merge pull request #8027 from yglukhov/vm-fixAndreas Rumpf2018-06-131-1/+1
|\ | | | | Fixed uncaught exception in vm gen
| * Fixed uncaught exception in vm genYuriy Glukhov2018-06-131-1/+1
| |
* | Merge pull request #8025 from krux02/remove-immediateDominik Picheta2018-06-131-2/+2
|\ \ | |/ |/| fix #5930
| * fix #5930Arne Döring2018-06-131-2/+2
|/
* implements a --nep1:on switch to make the compiler enforce the naming ↵Andreas Rumpf2018-06-1313-46/+58
| | | | conventions outlined in NEP-1
* bugfix: allow 'export' in the VMAndreas Rumpf2018-06-122-1/+2
|
* Merge pull request #8019 from yglukhov/proc-stacktraceAndreas Rumpf2018-06-123-2/+23
|\ | | | | Allow stacktrace and linetrace pragmas on procs
| * Allow stacktrace and linetrace pragmas on procsYuriy Glukhov2018-06-123-2/+23
| |
* | Merge pull request #7981 from cooldome/Fix_-7980Andreas Rumpf2018-06-123-3/+34
|\ \ | |/ |/| Fixes 7980
| * style improvementscooldome2018-06-122-3/+3
| |
| * add commentcooldome2018-06-121-0/+1
| |
| * New approachcooldome2018-06-123-32/+27
| |
| * fixes 7980cooldome2018-06-062-21/+56
| |
* | Merge pull request #8014 from yglukhov/fix-6803Andreas Rumpf2018-06-113-19/+129
|\ \ | | | | | | Fixes #6803
| * | Fixes #6803Yuriy Glukhov2018-06-113-19/+129
| | |
* | | Correct field lookup in concept typesLemonBoy2018-06-122-1/+28
|/ / | | | | | | Fixes #6770
* | fixes yet another merge conflictAraq2018-06-115-109/+4
|\ \
| * \ Merge pull request #8009 from yglukhov/remove-oldIterTransfAndreas Rumpf2018-06-115-109/+4
| |\ \ | | | | | | | | Removed oldIterTranf feature
| | * | Removed oldIterTranf featureYuriy Glukhov2018-06-105-109/+4
| | | |
* | | | disable -d:nimIncremental for develAraq2018-06-111-1/+1
| | | |
* | | | fixes merge conflictAraq2018-06-113-5/+49
|\| | |
| * | | Added FileMode to comment on asyncfile openAsync (#8008)Jimmie Houchin2018-06-111-1/+1
| | | |
| * | | Merge pull request #8005 from Vindaar/fixes-7997Andreas Rumpf2018-06-112-4/+48
| |\ \ \ | | |/ / | |/| | fix #7997
| | * | add test case for fix to #7997Vindaar2018-06-101-0/+46
| | | |
| | * | fix #7997Vindaar2018-06-101-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | make tests green properlyAndreas Rumpf2018-06-111-2/+2
| | | |
* | | | fixes merge conflictAndreas Rumpf2018-06-1124-106/+361
|\| | |
| * | | fix #7653Zahary Karadjov2018-06-104-13/+34
| |/ /
| * | Fix type inference with static literals.LemonBoy2018-06-102-1/+13
| | | | | | | | | | | | Fixes #3977
| * | Revert "[RFC] NEP-1.1. Relax 80 chars requirement."Dominik Picheta2018-06-091-2/+2
| | |
| * | Merge pull request #7873 from ehmry/GenodeEnvAndreas Rumpf2018-06-0911-37/+111
| |\ \ | | | | | | | | Native access to Genode environment
| | * | Set Genode Openssl shared-object stringsEmery Hemingway2018-06-071-0/+4
| | | |
| | * | Native access to Genode environmentEmery Hemingway2018-06-0710-37/+107
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a 'GenodeEnv' type and a 'componentConstructHook' to the system module. The 'componentConstructHook' allows for detection of POSIX style programs that exit implicitly or native Genode components that initialize to serve RPC requests and OS signals. This hook takes a 'GenodeEnv' argument so that the environment interface is passed cleanly to application code after globals are initialized. This is an typed pointer to a C++ object, procedures for accessing the environment will be available from a Nimble library and not included in the standard library. The standard library has an internal pointer to the environment object but this is not for external use, the undocumented global environment pointer has been removed.
| * | Merge pull request #8000 from yglukhov/nep1.1Andreas Rumpf2018-06-091-2/+2
| |\ \ | | | | | | | | [RFC] NEP-1.1. Relax 80 chars requirement.
| | * | NEP-1.1. Relax 80 chars requirement.Yuriy Glukhov2018-06-081-2/+2
| | | |
| * | | Merge pull request #8001 from kaushalmodi/fix-isupper-islower-try2Andreas Rumpf2018-06-093-49/+152
| |\ \ \ | | | | | | | | | | Make isUpper (and variants) work for strings with non-alpha chars
| | * | | Make isUpper (and variants) work for strings with non-alpha charsKaushal Modi2018-06-083-49/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | Change parseEnum to something faster for method parsing in asynchttpserver ↵hlaaf2018-06-081-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#7682) * Add faster method parsing to asynchttpserver * Make it readable * Align case statement
| * | | | Merge pull request #7962 from Yardanico/test-ciDominik Picheta2018-06-081-0/+2
| |\ \ \ \ | | |/ / / | |/| | | Fixed Travis CI for macOS
| | * | | Update .travis.ymlDaniil Yarancev2018-06-051-0/+2
| | | | |
| | * | | Merge pull request #2 from nim-lang/develDaniil Yarancev2018-06-05598-27131/+32453
| | |\ \ \ | | | | | | | | | | | | Update
| | * \ \ \ Merge pull request #1 from nim-lang/develDaniil Yarancev2018-01-07819-41878/+89233
| | |\ \ \ \ | | | | | | | | | | | | | | upstream
| * | | | | | Removed redundant conditions in CritBitTree.inc, speedup it.data-man2018-06-081-4/+1
| | | | | | |
| * | | | | | Add the val parameter for CritBitTree[T].incl (#7988)Dmitry Atamanov2018-06-082-0/+21
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the val parameter for CritBitTree[T].incl * Updated changelog
| * | | | | Merge pull request #7992 from yglukhov/fromSockAddr-compile-errorAndreas Rumpf2018-06-082-1/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | Fixed compilation error when Sockaddr_in4 or Sockaddr_in6 passed to fromSockAddr