summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Do not consider enums with holes as ordinals (#8264)LemonBoy2018-07-121-3/+3
| | | | | | Make the compiler behave consistently with respect to what's written in the manual. Fixes #1239
* Fix terminal.nim to be GCSAFE. (#8296)Eugene Kabanov2018-07-121-85/+73
| | | * Also fix deprecated callsite().
* Fix undefined PObject referenceJoey Yakimowich-Payne2018-07-121-1/+1
|
* Make the Style enum a proper Ordinal (no holes) (#8282)Kaushal Modi2018-07-121-4/+7
| | | The Style enum needs to be an Ordinal so that it can be used in sets.
* Fixed $ on None[T] for T with .name (#8293)Quelklef2018-07-121-1/+15
|
* add os.absolutePath; fixes #8174 (#8213)Timothee Cour2018-07-101-0/+20
| | | | | | | | | | * add os.absolutePath * fixup * fixup * Fixes absolutePath error message.
* Fixes #5880. (#7229)Dominik Picheta2018-07-101-1/+1
|
* New implementations of times.parse & times.format (#8094)Oscar Nihlgård2018-07-092-556/+824
|
* Custom pragmas in proc types (#8205)cooldome2018-07-091-1/+3
|
* Testament should run tests with no action (#8232)genotrance2018-07-082-21/+23
| | | | | | * Testament should run tests with no action * Fix strutils tests for JS
* workaround issue #8223 nim doc fails with doAssertRaises (#8245)Timothee Cour2018-07-081-4/+7
|
* Add proc toOpenArray[byte] for strings (#7820)Dmitry Atamanov2018-07-071-1/+2
|
* Put back deprecation path for SomeRealMamy Ratsimbazafy2018-07-071-0/+2
| | | was wrongly deleted in https://github.com/nim-lang/Nim/commit/c7298561c199255facc562402700322360408179
* Merge pull request #6587 from FedericoCeratto/normalizePathDominik Picheta2018-07-071-2/+43
|\ | | | | Add normalizePath and tests
| * Add normalizePath and testsFederico Ceratto2018-07-061-2/+43
| |
* | hotfix: fixes possible out of bounds access in ospaths.joinPathAraq2018-07-071-1/+1
|/
* system.nim: minor code style changeAraq2018-07-061-1/+1
|
* Merge branch 'devel' of github.com:nim-lang/Nim into araq-develAraq2018-07-063-35/+124
|\
| * Use '\L' instead of '\n' in system for backwards compatibility.Dominik Picheta2018-07-061-1/+1
| | | | | | | | See https://github.com/nim-lang/packages/pull/785.
| * Rewrite the memory management code for Nintendo Switch (#8169)Joey2018-07-052-34/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite the memory management code for Nintendo Switch The first implementation was naive and did not account for multiple memory allocations. However, this implementation may still be incomplete. Currently, when running applications, the code runs fine. When the application is exited via code (the end of the program is reached or quit() is called), the Switch will crash. Not sure why this happens, but I suspect it is from Nim memory allocations. I suspect the memory allocations because when I compile the helloworld application without any Nim allocations (just C function calls) and use `--gc:none` as a compile option, the application exits fine.
* | make tmemfile2 work againAraq2018-07-061-1/+2
| |
* | 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.