summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* Fix fat pointers, object copying, magic double evals on JS (#9411) [backport]rec2018-12-042-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a test for issue #9389 * Fixes #9389. * Make object contructors copy objects properly by checking whether the expressions passed to them don't need to be copied. * Make mArrToSeq implementation actually check if a copy needs to be made. * Avoid unnecessary copy in mChr impl * Assume set constructor elements need no copy * Add a test for issue #9410 * Add a test * fix passing fat pointers (#9410) * Enhance tests * More tests and fixes * Add more (failing) tests [ci skip] * Added equality operator for fat pointers, more tests and fixes * Fix printing uninitialized strings * Fix mInc, mDec double eval, add more tests * Tests * Refactored, fixed multiple evals, revamped the tests, added missing ops * Fix ups * Fix #9643 and #9644 * add pointer normalization
* Remove dead code (#9777)Jacek Sieka2018-11-265-147/+30
| | | | | | | | | * gc/gc2: remove unused ref counting stuff * also removes some false threading support - hasSharedHeap is always false in gc/gc2 * gc: remove some threading cruft * remove asgnRefNoCycle * compiler: remove TLoc.dup (unused)
* don't raise exception in the default handler (#9783)alaviss2018-11-222-8/+8
| | | fixes #9657
* removes deprecated T/P typesAraq2018-11-1611-23/+2
|
* make testament compile again with -d:nimCoroutinesAraq2018-11-151-21/+21
|
* gc_common: fixes a typoAndreas Rumpf2018-11-151-19/+19
|
* deprecated ospaths (#9665)Andreas Rumpf2018-11-092-2/+3
|
* change system.nim to adhere to the style guideAraq2018-10-301-8/+8
|
* Implements #9434. Minimal Stacktrace for Exceptions in release mode (#9480)cooldome2018-10-281-1/+9
| | | * Fixes #9434
* Fix printing and comparing uninitialized stringsrecloser2018-10-211-0/+3
|
* fixes #9456 by only calling `c_fclose` if non nilVindaar2018-10-201-1/+4
|
* [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
|
* Fix repr() for UncheckedArray (#9385)LemonBoy2018-10-162-1/+3
|
* 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
* 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
* Add procs to retrieve project name, directory and full path to nimscript (#9274)Solitude2018-10-111-0/+12
|
* Fix linking issue in cpp codegenLemonBoy2018-09-191-1/+5
| | | | | | | Declare the root symbol only once and have the other modules depending on it emit an `extern` declaration. Fixes #9013
* don't reuse code from 0.18.0skilchen2018-09-151-9/+2
|
* more efficient fix for #8961skilchen2018-09-151-0/+6
|
* Merge pull request #8966 from LemonBoy/fix-8964Andreas Rumpf2018-09-141-9/+3
|\ | | | | Fix hashing for codegenProc (sic) types
| * Fix hashing for codegenProc (sic) typesLemonBoy2018-09-141-9/+3
| | | | | | | | | | | | | | Since the name mangling is inhibited we should take the user-supplied name during the sighash computation. Fixes #8964
* | Merge branch 'devel' into araq-better-docgenAraq2018-09-142-15/+7
|\|
| * Always emit hti object types if needed (#8940)LemonBoy2018-09-111-1/+1
| | | | | | | | | | | | | | | | The compiler is now smart enough to emit types only if needed without all the importc tricks. This also fixes a codegen bug where, if all the stars align correctly, typeinfo doesn't include any definition of `TNimType` but uses it. Found by @skilchen in #8938
| * JS strings have no trailing zero anymore (#8936)LemonBoy2018-09-111-14/+6
| |
* | fixes #8961Araq2018-09-141-2/+2
|/
* system/excpt: nil is no longer vaild for seqs (#8825)alaviss2018-08-311-1/+1
|
* Allow Nimble to override the ``task`` template in nimscript. (#8798)Dominik Picheta2018-08-281-18/+18
|
* doAssert, assert now print full path of failing line on error (#8555)Timothee Cour2018-08-251-0/+11
|
* fixes #8739; allow --hint:foo:on --warning:bar:off (#8757)Timothee Cour2018-08-251-2/+2
|
* make more tests green; system.repr does not produce 'nil' for strings and ↵Araq2018-08-221-3/+6
| | | | seqs anymore
* make tio test green againAraq2018-08-221-3/+7
|
* even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-225-20/+12
|
* fixes merge conflictAndreas Rumpf2018-08-1910-25/+63
|\
| * Genode fixes (#8501)Emery Hemingway2018-08-162-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * Genode fixes - wrap strings in "Genode::Cstring" when logging - define SIGABRT for Genode - disable GCC -fstack-protector - use log RPC for fatal messages - add --os:genode build to appveyor - define paramStr and paramCount * Select fixups for Genode POSIX
| * Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-163-2/+28
| |\
| | * Haiku support for Nim (#8542)alaviss2018-08-143-2/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * posix_other: Haiku now has spawn.h This is added per https://dev.haiku-os.org/ticket/13446 * posix_other: Add Haiku specific Dirent members * cpuinfo: Add an implementation for Haiku * distros: Add basic Haiku support * encodings: update Haiku support * fenv, math: Haiku now provides libm * times: Add Haiku struct members * ansi_c, osalloc: Add Haiku constants * threads: Add Haiku support * testament: Haiku uses LIBRARY_PATH * nim.cfg: Update Haiku support libnetwork should only be linked if network functions are used * threads: Haiku does not support -pthread switch * tworkingdir: Haiku's env is in /bin * posix_other: add SIGKILLTHR for Haiku * sockets: link with libnetwork on Haiku * coro: correct ucontext.h location http://pubs.opengroup.org/onlinepubs/009696699/basedefs/ucontext.h.html * coro: ucontext backend is not available on Haiku Haiku doesn't provide the <ucontext.h> header, as it was removed from POSIX * coro: fix setjmp backend The compiler does not allow statements after a noreturn function * nativesockets: Haiku doesn't support AI_V4MAPPED * system: hostOS can contains "haiku" * os: add support for Haiku's packagefs packagefs is read-only, but there are writable holes to the underlying file system as well * os: update constant for Haiku
| * | make more tests greenAndreas Rumpf2018-08-131-1/+1
| | |
| * | Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-101-1/+1
| |\|
| | * Update channels.nim (#8583)Grant2018-08-091-1/+1
| | | | | | | | | Fix typo in channels.nim
| * | fixes more nil string bugsAraq2018-08-081-0/+1
| | |
| * | fixes a long standing nil bug in substrAraq2018-08-081-0/+1
| |/
| * Iterator over heap instances (#8548)Emery Hemingway2018-08-071-8/+14
| | | | | | | | | | Provide "dumpHeapInstances" for iterating over type statistics of heaps. This can be used to present structured heap information as an alternative to "dumpNumberOfInstances".
| * fixes 7833 (#8533)Andreas Rumpf2018-08-052-10/+74
| | | | | | | | | | | | | | | | | | | | | | * fixes #7833; still to-do: fix setLen * make tests green again * also fixes setLen and string concats; refs #7833 * change formating to avoid a compiler warning * emit the write barrier also for addChar * fixes yet another regression * make setLengthStr compile for the old version * make growobjcrash complete earlier
| * Try to let memTracker compile (#8502)Christopher Dunn2018-08-052-11/+11
| |
* | make at least bootstrapping workAraq2018-08-056-10/+102
|\ \
| * | make setLengthStr compile for the old versionAraq2018-08-041-3/+2
| | |
| * | Merge branch 'devel' into araq-fixes-7833Araq2018-08-041-0/+8
| |\|
| | * make 'echo' threadsafe on Windows; fixes #8511Araq2018-08-041-0/+8
| | |
| * | fixes yet another regressionAraq2018-08-041-3/+12
| | |