summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add sideEffect pragma to importC procs in posix, winlean and time module ↵Tomohiro2020-02-083-133/+135
| | | | | | | | | (#13370) * Add sideEffect pragma to procs in winlean * Add sideEffect pragma to procs in posix * Add test for #13306 * Add sideEffect pragma to procs in times * Fixes #13306
* Revert "printing float values will have one more digit. (#13276) [backport]" ↵Timothee Cour2020-02-082-3/+3
| | | | | (#13363) This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
* fix #6736: templates in unittest now show actual value (#13354)Miran2020-02-071-1/+1
|
* [backport] remove 'CountTable.mget' (#13355)Miran2020-02-071-13/+0
| | | It didn't work, and it was an oversight to be included in v1.0.
* [backport] fix #13352narimiran2020-02-072-1/+6
|
* printing float values will have one more digit. (#13276) [backport]Arne Döring2020-02-072-3/+3
| | | | * printing float values will have one more digit. Fixes #13196
* replace old problematic isNamedTuple implementation by TypeTrait ↵Timothee Cour2020-02-071-11/+15
| | | | | | | | isNamedTuple in dollars.nim (#13347) * replace old problematic isNamedTuple implementation by TypeTrait isNamedTuple * fix for bootstrap
* Added a basic example how to handle a Post request. (#13339)Henrique Dias2020-02-071-3/+55
| | | | | | | | | | | | * Added a basic example how to handle a Post request. They were also made minor cosmetic changes. * Minor fixes suggested by Yardanico * Fixed a wrong value in chunkSize constant. * Re-added the request.body for compatibility!
* adding sqlite3 backup functions (#13346)pyloor2020-02-071-0/+17
| | | | | | * adding sqlite3 backup functions * changing sleep to sqlite3_sleep to prevent clashes
* make monotimes have zero overhead if you don't use it (#13338) [backport]Andreas Rumpf2020-02-061-10/+6
|
* Option to allow the request body to be processed outside the asynchttpserver ↵Henrique Dias2020-02-041-16/+48
| | | | | | library. (#13147) Allow the request body to be processed outside the asynchttpserver library to break big files into chunks of data. This change does not break anything.
* enable testing -d:nimHasLibFFI mode (#13091)Timothee Cour2020-02-042-2/+2
|
* Fix capture for object types (#13315)Clyybber2020-02-021-1/+1
| | | | | | * Fix capture for object|tuple|... types * Add test case
* refs #8391 std/os now shows runtime context for raiseOSError exceptions (#13294)Timothee Cour2020-01-301-52/+51
| | | | | | | | * refs #8391: fix errmsg for setCurrentDir * raiseOSError calls for copyFile * refs #8391 std/os now shows runtime context for raiseOSError exceptions
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-302-2/+2
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* Thread attributes should be destroyed using the pthread_attr_destroy() (#13293)Hiroki Noda2020-01-292-4/+7
| | | | | On some OSes (such as FreeBSD or Solaris), pthread_attr_init allocate memory. So it is necessary to deallocate that memory by using pthread_attr_destroy.
* csize => csize_t for sysctlTimothee Cour2020-01-283-11/+10
|
* fix stdout(etc) for emscriptenTimothee Cour2020-01-282-6/+8
|
* Repr v2 progress (#13268)cooldome2020-01-282-76/+61
| | | | | | | | | | * progress on repr_v2 * repr progress * add ref objects with distrinct * fix failing tests
* nimv2 widestring indexing (#13279)cooldome2020-01-281-2/+2
|
* Tiny since cleanup (#13286)Clyybber2020-01-284-119/+119
|
* TlSF Alloctor: use less memory for --gc:arc (#13280)Andreas Rumpf2020-01-282-80/+101
|
* unittest add resetOutputFormatters proc (#13267)cooldome2020-01-281-0/+5
| | | | | | | | * add resetOutputFormatters * remove space * resolve comments
* fixes #13219 (#13272)Andreas Rumpf2020-01-271-3/+5
|
* scrollTop must be settable (#13263)Jairo2020-01-271-0/+1
| | | | | | | | * scrollTop must be assignable Make scrollTop settable * add missing export
* Rename isNilOrWhitespace to isEmptyOrWhitespace and make it use ↵hlaaftana2020-01-261-10/+13
| | | | | | | | allCharsInSet (#13258) * Rename isNilOrWhitespace to isEmptyOrWhitespace * Make isEmptyOrWhitespace use allCharsInSet(Whitespace)
* make nre compile with --gc:arcAraq2020-01-261-66/+54
|
* ARC: optimize complete object constructors to use nimNewObjUninitAraq2020-01-261-0/+17
|
* ARC: remove unnecessary codeAraq2020-01-261-14/+0
|
* make goto based exceptions available for 'nim cpp' (#13244)Andreas Rumpf2020-01-253-6/+10
| | | | | * make goto based exceptions available for 'nim cpp' * optimize seq.add to be comparable to C++'s emplace_back
* Cleaned up mmdisp.nim, moved implementations into lib/system/mm/ (#13254)Ico Doornekamp2020-01-255-392/+416
|
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-251-1/+1
| | | | nimAllocStats (#13247)
* Add "origin" to window.location (#13251)Jairo2020-01-241-0/+1
| | | Add "origin" to window location: https://www.w3schools.com/jsref/prop_loc_origin.asp
* Fix typo for literal `[` (#13243)Euan2020-01-241-1/+1
| | | The literal value for the `tkBracketLe` token was incorrectly set to `]` rather than `[`. I've had a quick glance at the code and it doesn't look like this change will affect anything at all, but I haven't tested yet - let's see if the CI explodes...
* Fixes asyncftpclient multiline reading, fixes #4684 (#13242)hlaaftana2020-01-241-5/+6
| | | | | Previously, the 4th character of `result` was checked for `'-'` every time, instead of each new line. Also made it work for taint mode.
* Remove name attribute from docutils.nimble (#13239)hlaaftana2020-01-231-1/+0
|
* [backport] Make all parseutils examples auto-checking (#13238)Kaushal Modi2020-01-231-32/+25
| | | - Also fix one example's output (ikString -> ikStr, ikVar instead of ikExpr)
* [backport] documentation: Add channels examples (#13202) [ci skip]chr v1.x2020-01-231-0/+114
|
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-239-246/+234
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* Unexport even more symbols (#13214)alaviss2020-01-232-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system/gc: don't export markStackAndRegisters * compiler/cgen: unexport internal symbols As these functions are Nim-specific walkaround against C's optimization schemes, they don't serve any purpose being exported. * compiler/cgen: don't export global var unless marked * compiler/ccgthreadvars: don't export threadvar unless marked * tests/dll/visibility: also check for exports This ensure that these changes don't break manual exports. * compiler/cgen: hide all variables created for constants * compiler/ccgtypes: don't export RTTI variables * compiler/ccgexprs: make all complex const static * nimbase.h: fix export for windows * compiler/cgen, ccgthreadvars: export variables correctly For C/C++ variables, `extern` means that the variable is defined in an another unit. Added a new N_LIB_EXPORT_VAR to correctly export variables.
* fix lots of bugs with parentDir, refs #8734 (#13236)Timothee Cour2020-01-231-14/+23
|
* [backport] fix #11440, add docs to isNil for seq types needing nilseq ↵D-Nice2020-01-231-0/+12
| | | | (#13234) [ci skip]
* [backport] Fix typo and improve in code-block of 'lib/pure/parseutils.nim' ↵Mera2020-01-231-2/+3
| | | | (#13231) [ci skip]
* new os.isRelativeTo (#13212)Timothee Cour2020-01-231-0/+12
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* added note to re constructor regarding performance (#13224)whiterock2020-01-221-1/+5
| | | Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
* httpclient, maxredirects to Natural, newHttpClient/newAsyncHttpClient add ↵Juan Carlos2020-01-211-5/+9
| | | | headers argument instead of hardcoded empty (#13207)
* fixes a critical times.nim bug reported on IRC [backport] (#13216)Andreas Rumpf2020-01-212-2/+6
|
* fix #13211 relativePath("foo", ".") (#13213)Timothee Cour2020-01-211-0/+2
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-201-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add idxmin() which returns the index of the minimum value * Add idxmax() which returns the index of the maximum value * Add tests for idxmin() * Add tests for idxmax() * Remove initialization of result = 0 * Adds overloading for arrays (no enums indexed arrays yet) * Add support for enum index arrays * Fix tests with enum * Fix tests for idxmax * Change names of the procedures to minIndex and maxIndex * address Araq's comments: - remove 'array' versions - add .since pragma - return 'int' instead of 'Natural' - add changelog entry Co-authored-by: Federico A. Corazza <20555025+Imperator26@users.noreply.github.com>