summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fixes #7842 if no uri.scheme specified raise ValueError with hint (#7846)David Krause2018-10-271-0/+3
| | | | | | | | * fixes #7842 if no uri.scheme specified on request rais ValueError with hint Signed-off-by: enthus1ast <david@code0.xyz> * Update httpclient.nim
* docs: clarify `asyncCheck` vs `waitFor`citycide2018-10-272-2/+5
|
* Improve dumpLisp macro (#9515)Kaushal Modi2018-10-271-62/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve dumpLisp macro - Remove commas from the lisp representation of the AST. - Make the dumpLisp output "pretty" and indented. - Improve docs of `dumpTree` and `dumpLisp` macros. With: dumpLisp: echo "Hello, World!" Output before this commit: StmtList(Command(Ident("echo"), StrLit("Hello, World!"))) Output after this commit: (StmtList (Command (Ident "echo") (StrLit "Hello, World!"))) * Re-use the traverse proc inside treeRepr for lispRepr too - Add module-local `treeTraverse` proc. - Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents. * More doc string updates * Allow unindented lispRepr output for tests * Update a test affected by the lispRepr change * Fix dumpTree * Add note about lispRepr and dumpLisp to changelog [ci skip]
* Openmp parallel iterator improvements (#9493)Mamy Ratsimbazafy2018-10-251-2/+6
| | | | | * More flexibility in OpenMP pragma * Use static to constrain to compile-time annotation string * Update changelog with OpenMP change
* stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-2515-80/+80
|
* parsutils: minor doc improvementsAndreas Rumpf2018-10-241-2/+2
|
* added system.typeof operation; fixes #9093Araq2018-10-242-4/+27
|
* \#include "windows.h" instead of "Windows.h" (#9475)loongw2018-10-231-1/+1
| | | This fixes #9474
* Fix printing and comparing uninitialized stringsrecloser2018-10-211-0/+3
|
* fixes #9456 by only calling `c_fclose` if non nilVindaar2018-10-201-1/+4
|
* Fix times 32-bit issueOscar Nihlgård2018-10-191-2/+4
|
* Minor bug fix (#9430)cooldome2018-10-191-1/+1
|
* Change the order of compilation passes, transformation is made lazy at code ↵cooldome2018-10-182-4/+8
| | | | | | | | | | | | | | | gen (#8489) * Ast no transformation * Add getImplNoTransform to the macros module * progress on delaying transf * Fix methods tranformation * Fix lazy lambdalifting * fix create thread wrapper * transform for lambda lifting * improve getImplTransformed * Fix destructor tests * try to fix nimprof for linux
* Merge pull request #8366 from krux02/nimnode-orArne Döring2018-10-181-1/+15
|\ | | | | or on NimNode
| * changelog entryArne Döring2018-10-181-2/+1
| |
| * fix typoArne Döring2018-10-181-1/+1
| |
| * fixed commentArne Döring2018-10-181-2/+2
| |
| * added test case for `or` operatorArne Döring2018-10-181-3/+3
| |
| * or on NimNodeArne Döring2018-10-181-1/+16
| |
* | fix #9394 by replacing `fmt` with `strutils.%` (#9417)Vindaar2018-10-181-3/+5
| | | | | | | | | | | | | | | | * fix #9394 by replacing `fmt` with normal string append Until issue #7632 is fixed, use string append. * use `strutils.%` instead of normal string add
* | Make the swap procs safe for unaligned input ptrs (#9210)LemonBoy2018-10-181-9/+12
| | | | | | | | | | | | | | | | | | | | | | * Make the swap procs safe for unaligned input ptrs The copy to a temporary local variable is often elided by a sufficiently smart compiler when it can prove the input pointer is aligned. Refs #9206 * Explain why copyMem is used
* | [nimscript] document currentSourcePath in thisDir (#9402)Timothee Cour2018-10-181-1/+3
|/
* No setjump in GC for emscripten/wasm (#9386)Yuriy Glukhov2018-10-171-14/+21
|
* Update example (#9395)Federico Ceratto2018-10-171-1/+1
|
* Some documentation added to strutils (#9379)eqperes2018-10-161-2/+102
| | | | | | | | | | | | | | | | * wip documentation strutils * some runnableExamples in strutils * assert -> doAssert * corrected doc for abbrev; some more runnable examples * runnableExamples for join * fix c&p error * corrections
* Fix repr() for UncheckedArray (#9385)LemonBoy2018-10-162-1/+3
|
* math.round is not needed in strutils (#9383)skilchen2018-10-161-5/+4
|
* Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2018-10-151-23/+17
|\
| * fix #8225 os.isHidden was buggy on posix (#8315)Timothee Cour2018-10-151-23/+17
| | | | | | | | | | | | * fix #8225 isHidden was broken on posix * scope rest of tos.nim under blocks to avoid variable scope bugs
* | system.nim deprecate 'getRefcount'; refs #2839, refs #3713Araq2018-10-151-3/+6
| |
* | ospaths docs: add 'basename' to theindexAraq2018-10-151-1/+1
| |
* | system.nim: fixes typoAraq2018-10-151-1/+1
|/
* fixes #9306 properly, fixes #9306Andreas Rumpf2018-10-141-2/+12
|
* Add strip() example (#8002)Federico Ceratto2018-10-141-0/+2
|
* unicode: added strip, align, alignLeft, repeat procs; refs #6301Andreas Rumpf2018-10-141-0/+149
|
* unicode: add split procs; refs #6301Andreas Rumpf2018-10-142-14/+179
|
* struils: don't use the deprecated accumulateResultAndreas Rumpf2018-10-141-8/+12
|
* added new editdistance stdlib module, deprecated strutils.editDistance, refs ↵Andreas Rumpf2018-10-142-1/+310
| | | | #6301
* strutils/unicode: deprecate isLower and friends operating on complete ↵Andreas Rumpf2018-10-142-85/+19
| | | | strings; fixes #7963 properly
* Fix type in docs (#9362)Josh Goebel2018-10-141-1/+1
|
* implement sizeof and alignof operator (manually squashed #5664) (#9356)Timothee Cour2018-10-141-2/+19
|
* 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