summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* correctly render AST in doAssert/assert condition: fixes #8518; refs #9301 ↵Timothee Cour2018-10-141-6/+8
| | | | | | (#9332) * fixes #8518; refs #9301; correctly render AST in doAssert condition
* add strutils.stripLineEnd (#9346)Timothee Cour2018-10-131-0/+23
|
* deprecate accumulateResult => sequtils.toSeq (#8666)Timothee Cour2018-10-131-1/+4
|
* manual: Fix links to Parallel & Spawn (#9342)Tomohiro2018-10-131-1/+1
|
* fixes #8916 by fixing typeinfo and marshal. (#9341)Vindaar2018-10-132-15/+16
| | | | | | | | | * fixes #8916 by removing `tyString`, `tySeq`, mod. marshal, typeinfo Need to check in `typeinfo` for nil of the underlying pointer. In marshal don't have to check for nil of seq anymore. * remove reference to string, sequence in `isNil` doc string
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)c-blake2018-10-121-0/+2
| | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s.
* Proposed solution for issue #8919 (#9280)eqperes2018-10-121-0/+2
| | | | | | * Proposed solution for issue #8919 * count sub/subs must be non-empty
* Testament pre parallel (#9137)Jacek Sieka2018-10-121-1/+4
| | | | | | | | | | * testament: move to root dir (it's not a test) * osproc: fix process index passed to afterRunEvent for parallel runs it was passing the index of the process, not index of all commands * testament: complete file move
* Avoid memory allocation during dynlib loading (#9320)LemonBoy2018-10-121-4/+4
| | | | | | | By using `write` instead of `rawWrite` we'd end up asking the compiler to generate the GC dynlib _while_ we were already generating another dynlib! Fixes #9123
* 8684 add shortcut sort procs (#9174)Konstantin Molchanov2018-10-111-22/+9
| | | | | | | | * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim. * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim.
* gogc: GCC-8.2.0 compatibility and other improvements (#9211)Ștefan Talpalaru2018-10-112-107/+55
| | | | | | | | - Go's write barriers are now plugged-in in all the relevant points - "gcGo" is correctly classified by usesWriteBarrier() - some gogc structures and functions now use golib wrappers to keep GCC version-specific conditions out of the compiler/stdlib code - we no longer allow mixing the C malloc with Go's - fix a problem with string copying
* fixes #9306Araq2018-10-111-2/+2
|
* compile date and compile time tz written in doc (#9283)eqperes2018-10-111-2/+2
|
* Add procs to retrieve project name, directory and full path to nimscript (#9274)Solitude2018-10-111-0/+12
|
* Fix OrderedSet.excl (#9287)Oscar Nihlgård2018-10-111-34/+29
|
* Unchecked arrays now have their own type (#9267)LemonBoy2018-10-102-2/+8
|
* Documentation improved for `math` module (#9266)eqperes2018-10-101-79/+171
|
* Fix macro expansion in expandMacros (#8998)LemonBoy2018-10-091-5/+3
| | | | | | | | | | * Fix macro expansion in expandMacros Running a semanticized node trough the semantic pass was a bad idea. Fixes #7723 * Simpler smaller implementation
* better docs for `tables` module (#9221)Miran2018-10-091-176/+190
| | | | | | * better docs for `tables` module * lower case for the first sentence in docs
* better docs for `algorithm` module (#9192)Miran2018-10-091-58/+103
| | | | | | | | | | | | * better docs for `algorithm` module * address the comments * small first letter in the first sentence * last argument is reverted to be `int` * `rotateLeft` keeps `discardable` pragma, as discussed on IRC * another small correction
* [cleanup] remove `xmldom` and `xmldomparser` (#9234)Miran2018-10-093-1271/+1
|
* Separate high/low/len docs for each overload (#8816)hlaaf2018-10-091-19/+99
|
* Try/Catch support for native JS exceptions (#8955)LemonBoy2018-10-091-0/+11
| | | | | | * Try/Catch support for native JS exceptions * Better tests
* Fixes #8994. FutureStream read procedure data loss no longer occurs. (#9183)Dominik Picheta2018-10-091-2/+4
| | | | | | * Fixes #8994. FutureStream read procedure data loss no longer occurs. * Optimises the fix for #8994.
* fix for #9082 (#9089)Arne Döring2018-10-091-14/+16
|
* Fixes #8841 (#9101)Yasuhiro Horimoto2018-10-091-2/+2
| | | Modify comments for readChar and peekChar to the same as the comment for them in the source code.
* fix #8341: add lastPathPart (#9116)Timothee Cour2018-10-091-30/+46
|
* asyncmacro: add nnkSym support for getName() (#9204)alaviss2018-10-091-1/+1
| | | Fixes #9201
* os: use unlink() to remove file (#9220)alaviss2018-10-091-3/+1
| | | | | removeFile() behavior should now be consistant between Windows and POSIX Fixes #9200
* Fix typo in an algorithm runnableExamples (#9260)Kaushal Modi2018-10-091-1/+1
| | | | | | Fixes the 'koch docs' build failure. Ref: https://github.com/nim-lang/Nim/commit/b90b45b01bba1f3fc241a96abd4ae5c8c314bb92
* [os] clarify docs for existsDir (#9212)Timothee Cour2018-10-091-1/+1
| | | | | | * Update os.nim * Update os.nim
* Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. (#8778)pqflx32018-10-091-7/+31
| | | | | | * Add algorithm.[sort,sorted,isSorted] overloads using 'system.cmp'. Fixes 8684. * Change signatures to 'func'. Improve overload sort doc comments
* HTMLGen Update, Add runnableExamples, Add HTML Tags center, details, dialog, ↵Juan Carlos2018-10-091-5/+42
| | | | marquee, picture, slot, summary (#9252)
* Replace the sha1 implementation w/ a working one (#9242)LemonBoy2018-10-091-160/+167
| | | | | | | | | As #9239 points out the old implementation had some serious flaws. The new implementation is a port of the MIT-licensed one used by Chromium OS and has been tested against the FIPS-provided vectors and by generating huge files like the ones mentioned in the issue above. While I tried my best to take into account the existence of BE machines the code has only been tested on a LE one.
* development version is 0.19.1Araq2018-10-091-1/+1
|
* define NIM_NIL nullptr when __cplusplus >= 201103LTimothee Cour2018-10-081-1/+7
|
* Merges #8451 manually. Fixes #8099.Dominik Picheta2018-10-031-1/+1
|
* Merge pull request #9171 from flaviut/fix-9053Dominik Picheta2018-10-031-41/+57
|\ | | | | Use runnableExamples for nre example code where possible
| * Use runnableExamples for example nre codeFlaviu Tamas2018-10-031-41/+57
| |
* | Update macros.nim (#9182)Timothee Cour2018-10-031-1/+3
| | | | | | | | | | | | * Update macros.nim * Update macros.nim
* | Fix regression w/ templates defined in async procLemonBoy2018-10-031-1/+1
| |
* | [docs/json]: expands existing examples + shows {} operator in action (#9157)Steve Kellock2018-10-021-28/+74
| | | | | | | | | | | | * [docs/json]: expands existing examples + shows {} operator in action * adds import stmt and fixes butchered syntax in json examples
* | nimbase.h: use 0 instead of nullptr because travis' C++ compiler doesn't ↵Araq2018-10-031-1/+1
| | | | | | | | know nullptr
* | C++ codegen: map nil to nullptrAraq2018-10-021-1/+1
| |
* | Merge pull request #9151 from flaviut/fix-9053Dominik Picheta2018-10-011-6/+6
|\| | | | | Fix option documentation in nre (fixes #9053)
| * Fix option documentation in nre (fixes #9053)Flaviu Tamas2018-10-011-6/+6
| |
* | Merge branch 'devel' into fix_issues_9126Andreas Rumpf2018-10-015-14/+30
|\ \
| * | fixes #9126Araq2018-10-011-1/+1
| | |
| * | Merge pull request #9115 from mashingan/fix-json-aliasedAndreas Rumpf2018-09-291-1/+15
| |\ \ | | | | | | | | Fix #9111; error when parsing to aliased type field
| | * | Fix #9111; error when parsing to aliased type fieldmashingan2018-09-291-1/+15
| | | |