summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* fix test failureTimothee Cour2018-12-191-2/+4
|
* fix #8255 numerous issues with splitFileTimothee Cour2018-12-191-4/+13
|
* strutils: minor code cleanupAraq2018-12-191-1/+0
|
* Update osproc.nim (#10043)Timothee Cour2018-12-191-1/+1
|
* undo last commit (meant to send a PR instead)Timothee Cour2018-12-181-1/+1
|
* Update osproc.nimTimothee Cour2018-12-181-1/+1
|
* [os] fix #10017 regression, fix #10025 regression (#10018)Timothee Cour2018-12-181-1/+2
| | | | | * [os] fix #10017 regression * [os] fix #10025 regression
* add `getCurrentCompilerExe` to vmops (eg allows to get nim compiler at CT); ↵Timothee Cour2018-12-181-1/+8
| | | | add tests for vmops (#9925)
* Adding more documentation to logging.nimIstvan2018-12-171-1/+6
| | | Just minor addition to the documentation with the use of operators
* fixes #9120Araq2018-12-161-1/+1
|
* Allow an escape hatch for platform specific flags/default override (#9968)c-blake2018-12-141-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow an escape hatch for platform specific flags (of which there are many, for example MAP_POPULATE itself is a Linux-only thing, not other Unix). Continue with same defaults as before in this commit, but that really should be changed to *not* include MAP_POPULATE. While pre-faulting all the pages can be useful sometimes *if* you know you're going to access all the data, it is highly unlikely to be what users expect the default to be. For some things all that up front work is 1000s of times slower than being lazy/on-demand/only ever faulting parts of the file. Even the MAP_POPULATE fan who originally in 2014 committed to this file defaulted it to off (but turned it always-on as a "temporary" work around for some long since gone/mutated compiler issue). Anyway, at least something like this `mapFlags` gives users the ability to override the poor default choice or activate any other idiosyncratic platform-specific features. * Use simple, efficient default flags, but also accept whatever the open/mapMem caller specifies. Save flags in MemFile so they can be used in `resize`. This field should not need exporting like the others -- callers can always save whatever values they pass -- but we include a cautionary comment in case anyone ever asks for a `*` there, as well as for documentation. Also make documentation for ``mapFlags`` in open more likely to inspire care.
* added parseopt.remainingArgs; refs #9951Araq2018-12-141-0/+5
|
* os.nim: use the new pathnorm.normalizePath implementationAraq2018-12-142-31/+39
|
* fixes joinPath regressionsAraq2018-12-132-2/+10
|
* os.nim: big refactoring, use the new pathnorm that was extracted by ↵Araq2018-12-133-151/+319
| | | | compiler/pathutils.nim; added os.relativePath
* Give error when case has an else branch even though all cases are already ↵Neelesh Chandola2018-12-131-1/+0
| | | | | | | | | covered (#9930) * Give error when case has an else branch even though all cases are already covered. * Don't check for invalid else for type tyFloat..tyFloat128, tyString, tyError * Remove unnecessary else in unittest.nim * Fix sockets.nim
* Merge pull request #9915 from zevv/asyncnet-unixDominik Picheta2018-12-123-7/+66
|\ | | | | Added basic AF_UNIX support to asyncnet.
| * Added basic AF_UNIX support to asyncnet.Ico Doornekamp2018-12-093-7/+66
| | | | | | | | | | | | | | | | Unfortunately this required some code duplication because the doConnect() from asynccommon.nim only works with addrInfo which does not make sense for AF_UNIX. makeUnixAddr() was moved to nativesocket.nim and exported
* | Merge pull request #9552 from recloser/strmisc-docAndreas Rumpf2018-12-121-1/+28
|\ \ | | | | | | Add runnableExamples for strmisc procs and a better doc for expandTabs
| * | Add runnable examples for strmisc procs and a better doc for expandTabsrecloser2018-10-291-1/+28
| | |
* | | Merge branch 'devel' into sorted_deduplicateAndreas Rumpf2018-12-128-241/+283
|\ \ \
| * | | clean up the implementation of the new memfiles.resizeAraq2018-12-121-27/+27
| | | |
| * | | export every field of MemFile for more low level trickery; refs #9922Araq2018-12-121-4/+5
| | | |
| * | | Merge pull request #9922 from c-blake/develAndreas Rumpf2018-12-121-0/+29
| |\ \ \ | | | | | | | | | | Let handles be seen outside of `memfiles` module so that "updating"
| | * | | For now just implement `resize` per https://github.com/nim-lang/Nim/pull/9922Charles Blake2018-12-111-15/+29
| | | | | | | | | | | | | | | | | | | | | | | | | discussion (with special mremap usage on Linux, but ordinary munmap, mmap on other POSIX). Someone needs to do the when windows branch.
| | * | | Address dom96/Araq opinions in https://github.com/nim-lang/Nim/pull/9922Charles Blake2018-12-111-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Updating accessors are also provided since the idea of this change is to allow "updating" operations external to the module which are by their very nature closely tied to module internals (as well as to OS interface details).
| | * | | Let handles be seen outside of `memfiles` module so that "updating"Charles Blake2018-12-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | operations (like eg., resizing a file and re-mapping) do not need to worry about race conditions of re-opened paths, renamed parent directories and that sort of thing. Operating directly on already open handles is both safer and more efficient than relying upon the stability of filesystem paths.
| * | | | Merge pull request #9805 from pacien/181126-list-appendAndreas Rumpf2018-12-111-0/+15
| |\ \ \ \ | | | | | | | | | | | | add SinglyLinkedList.append procs
| | * | | | add SinglyLinkedList.append procspacien2018-11-271-0/+15
| | | | | |
| * | | | | Merge pull request #9881 from timotheecour/pr_ref_9880Andreas Rumpf2018-12-112-4/+6
| |\ \ \ \ \ | | | | | | | | | | | | | | refs #9880 show index and bound in lots of `index out of bounds` errors
| | * | | | | refs #9880 show index and bound in lots of `index out of bounds` errorsTimothee Cour2018-12-092-4/+6
| | | | | | |
| * | | | | | Testament: refactoring; makes the test joiner greenAraq2018-12-111-0/+11
| | | | | | |
| * | | | | | test can fail because of invalid specArne Döring2018-12-111-11/+0
| | | | | | |
| * | | | | | Merge pull request #9910 from nc-x/fix-semicolonAndreas Rumpf2018-12-111-1/+2
| |\ \ \ \ \ \ | | |_|_|/ / / | |/| | | | | Fixes #9907
| | * | | | | Address CommentsNeelesh Chandola2018-12-111-0/+1
| | | | | | |
| | * | | | | Fixes #9907Neelesh Chandola2018-12-091-1/+1
| | |/ / / /
| * | | | | Merge pull request #9890 from nim-lang/remove-asynccommonAndreas Rumpf2018-12-092-213/+211
| |\ \ \ \ \ | | |/ / / / | |/| | | | Merge async common into asyncdispatch.
| | * | | | Merge async common into asyncdispatch.Dominik Picheta2018-12-072-213/+211
| | | | | |
| * | | | | Make options.UnpackError inherit from system.DefectOscar Nihlgård2018-12-081-19/+15
| | | | | |
* | | | | | Add the parameter isSorted for the sequtils.deduplicatedata-man2018-12-071-3/+21
|/ / / / /
* | | | | Merge pull request #9803 from GULPF/walkdirrec-relativeAndreas Rumpf2018-12-061-7/+12
|\ \ \ \ \ | | | | | | | | | | | | Add `relative` parameter to walkDirRec
| * | | | | Add `relative` parameter to walkDirRecOscar Nihlgård2018-11-261-7/+12
| | | | | |
* | | | | | Update parseutils.nimTimothee Cour2018-12-051-2/+2
| | | | | |
* | | | | | Merge pull request #9846 from timotheecour/pr_getpidAndreas Rumpf2018-12-052-1/+11
|\ \ \ \ \ \ | | | | | | | | | | | | | | add os.getCurrentProcessId()
| * | | | | | address commentsTimothee Cour2018-12-042-2/+2
| | | | | | |
| * | | | | | fixupTimothee Cour2018-12-041-1/+1
| | | | | | |
| * | | | | | fixupTimothee Cour2018-12-031-1/+1
| | | | | | |
| * | | | | | address commentsTimothee Cour2018-12-032-12/+11
| | | | | | |
| * | | | | | fixupTimothee Cour2018-12-031-1/+1
| | | | | | |
| * | | | | | fixupTimothee Cour2018-12-031-1/+2
| | | | | | |