summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* CT FFI: fix for windows; fix case transition; error msg shows more useful ↵Timothee Cour2020-01-301-3/+8
| | | | | | | | context (#13292) * evalffi: fix case transition * evalffi: fix for windows * evallffi: `cannot import` errmsg now also shows which library it tried to import symbol from
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-304-3/+12
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* fix critical bug discovered by #11591 (#13290) [backport]Timothee Cour2020-01-291-1/+1
|
* 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
|
* removed unused importTimothee Cour2020-01-281-1/+1
|
* refactor htmldocs; gitignore itTimothee Cour2020-01-282-4/+8
|
* Repr v2 progress (#13268)cooldome2020-01-284-77/+96
| | | | | | | | | | * 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-283-80/+103
|
* unittest add resetOutputFormatters proc (#13267)cooldome2020-01-282-1/+6
| | | | | | | | * add resetOutputFormatters * remove space * resolve comments
* fixes #13281 (#13282)cooldome2020-01-282-5/+21
| | | | | | * fixes ##13281 * add comment to test
* 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
* Clearer final objects error; fixes #13256 (#13257)hlaaftana2020-01-261-1/+2
|
* 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-265-12/+40
|
* ARC: remove unnecessary codeAraq2020-01-262-18/+3
|
* make goto based exceptions available for 'nim cpp' (#13244)Andreas Rumpf2020-01-2511-18/+29
| | | | | * 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
|
* testament/azure: major rewrite (#13246)alaviss2020-01-252-77/+125
| | | | | | | | | | | This commit features a major rewrite of Azure Pipelines integration, turning the spaghetti it originally was into something maintainable. Key changes: - No longer requires a ton of hooks into testament. - Results are now cached then bulk-uploaded to prevent throttling from Azure Pipelines, avoiding costly timeouts. - A low timeout is also employed to avoid inflated test time. - The integration is now documented.
* contributing docs: symbols need package prefix; changed allocStats to ↵Timothee Cour2020-01-2510-9/+23
| | | | nimAllocStats (#13247)
* nim dump: add libpath (#13249)Timothee Cour2020-01-241-0/+1
|
* 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
|
* Updated 'nim for embedded systems' section to use --os:any and --gc:arc (#13237)Ico Doornekamp2020-01-231-15/+33
| | | | | | * Updated 'nim for embedded systems' section to use --os:any and --gc:arc * Added section about size optimization to embedded systems
* [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-2321-311/+274
| | | | | | | | | | | | | | | | | | | | | | | | | 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-237-22/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-232-19/+28
|
* kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; ↵Timothee Cour2020-01-233-148/+141
| | | | | | | bugfixes (#13221) * kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; bugfixes * fixup after #13212 isRelativeTo got merged
* VM: allow overriding MaxLoopIterations without rebuilding nim (#13233)Timothee Cour2020-01-236-10/+13
|
* [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-233-0/+26
|
* [backport] times/getClockStr(): fix mistake in doc (#13229) [ci skip]Milan2020-01-221-1/+1
|
* [backport] Documentation Fix #12251 (#13226) [ci skip]Juan Carlos2020-01-221-0/+8
|
* 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-212-5/+12
| | | | 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-212-0/+6
|
* Idxmin & idxmax, continuation (#13208)Miran2020-01-202-7/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix range[enum] type conversion (#13204) [backport]Jasper Jenkins2020-01-202-2/+36
|
* compiler/ccgtypes: hide exportc proc unless it has dynlib (#13199)alaviss2020-01-203-1/+24
| | | | | This hides most of stdlib's internal functions from resulting binaries/libraries, where they aren't needed on *nix. Static libraries are not affected by this change (visibility doesn't apply to them).