summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* restore deprecated PNimrodNode in order to make the CIs happyAndreas Rumpf2018-07-051-0/+2
|
* Merge branch 'devel' into araq-develAndreas Rumpf2018-07-044-28/+27
|\
| * simplify typetraits.nim test (#8193)Timothee Cour2018-07-031-6/+1
| |
| * Deprecate 'c', 'C' prefix for octal literals, fixes #8082 (#8178)Vindaar2018-07-031-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * deprecate `0c`, `0C` prefix for octal literals Deprecates the previously allowed syntax of `0c` and `0C` as a prefix for octal literals to bring the literals in line with the behavior of `parseOct` from parseutils. * add `msgKind` arg to `lexMessageLitNum` for deprecation messages * change literal tests to check all valid integer literals Also adds the `tinvaligintegerlit3` test to test for the (still) invalid `0O` prefix.
| * asyncftpclient: add missing file.close to retrFilezargot2018-07-021-0/+1
| |
| * Fix os.unixToNativePath proc returns wrong result(#8179) (#8181)Tomohiro2018-07-021-1/+1
| | | | | | | | | | | | * Fix os.unixToNativePath proc returns wrong result(#8179) * Add tests for unixToNativePath
| * Fixed #8173 (#8175)Tomohiro2018-07-021-1/+4
| |
* | Merge branch 'devel' into araq-develAndreas Rumpf2018-07-014-16/+17
|\|
| * Unexport times.stringifyUnit (#8168)Oscar Nihlgård2018-07-011-8/+6
| |
| * execCmdEx stderr redirection (#8162)Timothee Cour2018-07-011-3/+1
| |
| * Fixes #8100 (#8101)Oscar Nihlgård2018-06-291-1/+6
| |
| * Update nre.nim (#8147)Timothee Cour2018-06-291-4/+4
| |
* | gc_common: minor reformatingAndreas Rumpf2018-07-011-2/+2
| |
* | codgen refactoring: prepare for alternative string/seq implementationsAndreas Rumpf2018-06-291-2/+6
| |
* | system.nim: cleanup the formattingAndreas Rumpf2018-06-291-194/+194
| |
* | system.nim: remove deprecated symbolsAndreas Rumpf2018-06-281-74/+0
|/
* Clarify the docs for tables.del (#8134)Yuriy Glukhov2018-06-271-4/+6
|
* Replace NotString with typeclass in jsffi (#8128)hlaaf2018-06-271-4/+2
|
* Nintendo switch support (#8069)Joey2018-06-2714-40/+1245
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add config section for Nintendo Switch * Add compiler configuration for Nintendo Switch and it's CPU * Add specific lib code for Nintendo Switch * Add GC support for Nintendo Switch * Update changelog for Nintendo Switch * Update changelog with more info about fixed paths * Cleaned up GC memory management a bit * Relocate docs for Switch * Rename aarch64NoneElfGcc to nintendoSwitchGCC * Remove armv8a57 * Fix installer.ini * Reuse code in linux and amd64 * Add posix defs for nintendo switch * Add more defined sections for nintendo switch * Remove old comment * Add what's not supported for Nintendo Switch docs * Make nintendoswitch == posix * Remove DEVKITPRO references from nim.cfg * Make PR extccomp changes * Remove Result type alias * Add separate switch consts file * Update docs for nintendo switch * Fix travis errors with undefined consts and add correct wait.h procs
* Merge branch 'devel' into typedesc-reformsAndreas Rumpf2018-06-266-67/+149
|\
| * Support setting foreground/background colors to terminal defaults (#8073)Kaushal Modi2018-06-241-8/+32
| | | | | | | | | | | | | | | | | | | | | | | | * Support setting foreground/background colors to terminal defaults Adds fgDefault to ForegroundColor and bgDefault to BackgroundColor enums. For Windows console, the default foreground color is assumed to be white, and the default background color black. * Add default fg/bg color caching for Windows Console
| * Minor doc fixFederico Ceratto2018-06-231-1/+1
| |
| * Change inconsistent paramaters in times.nim (#8091)Oscar Nihlgård2018-06-231-28/+19
| |
| * varints module: critical bugfixAndreas Rumpf2018-06-221-1/+8
| |
| * Pegs AST read access (#8050)gemath2018-06-191-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | * Make PEG AST nodes readable from outside the module. * Added a test module for the pegs stdlib module. * Edited changelog. * Renamed ``sons`` iterator to ``items``, added ``pairs``, inlined both. * Updated entry and moved it to the right category.
| * Merge pull request #7771 from nim-lang/nim-in-action-fixesAndreas Rumpf2018-06-191-0/+4
| |\ | | | | | | Higher Nim in Action coverage plus regression fix.
| | * Workaround VM bug in strutilsDominik Picheta2018-06-171-2/+3
| | |
| | * Exports unicode.toUpper/toLower in strutils module.Dominik Picheta2018-06-171-0/+3
| | |
| * | Convert styledWriteLine and styledEcho to templatesKaushal Modi2018-06-181-35/+7
| | | | | | | | | | | | | | | | | | | | | | | | This also fixes a bug in the styledWriteLine behavior where the background color leaked onto the next newline if that command did not end with resetStyle. Now it is not necessary to end styledWriteLine calls that set BackgroundColor to end in resetStyle.
| * | Add styledWrite macroKaushal Modi2018-06-181-12/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also: - Move the tests block to the end of the file - Fix the older tests - Add tests for existing styledEcho - Add new tests for styledWrite Fixes https://github.com/nim-lang/Nim/issues/8046.
| * | Add support for italic and strikethrough ANSI escape codes (#8048)Kaushal Modi2018-06-171-3/+6
| |/ | | | | | | | | | | | | \e[3m -> italic \e[9m -> strikethrough On terminals not supporting italic text, the text is shown in reverse instead, and on terminals not supporting strikethrough text, the text is shown as is.
* | A minimal patch enabling the new typedesc and static types syntaxZahary Karadjov2018-06-161-4/+18
| |
* | stdlib workZahary Karadjov2018-06-163-9/+66
|/
* Add MemMapFileStream. Fixes in memFiles. (#7944)Dmitry Atamanov2018-06-142-22/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add MemMapFileStream * Added tests * Fixed bug in memfiles (zero index for string) * Added flush to changelog * Attempt to fix Win's nuances * Fix attempt to fix * Continue... * And again... * Reworked tests (all for win on Win) * Fixes in flush (Win) * Replace fn vars to consts * Added the attempts parameter to the flush * Replace while to for * Move to memfiles * Use Natural instead of uint * Better error messages for append mode. Handle specific cases.
* RST hotfix: don't crash in rstnodeToRefnameAraq2018-06-141-0/+1
|
* Merge pull request #7950 from Paalon/math-logAndreas Rumpf2018-06-141-5/+15
|\ | | | | Add log for base b of x
| * Fix a testKoki Fushimi2018-06-141-1/+1
| |
| * Use one same type for two parametersKoki Fushimi2018-06-141-5/+1
| |
| * Use concrete expressionKoki Fushimi2018-06-051-7/+6
| |
| * Bug fixKoki Fushimi2018-06-051-2/+3
| |
| * Change to use log(x, base)Koki Fushimi2018-06-051-3/+3
| |
| * Broaden the argument typesKoki Fushimi2018-06-041-1/+6
| |
| * Generalize and add testKoki Fushimi2018-06-041-7/+14
| |
| * Add log proc for base b of xKoki Fushimi2018-06-041-1/+3
| |
* | 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-132-51/+57
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 `
* | fixes merge conflictAraq2018-06-111-1/+1
|\ \