summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* introduce precise string '[]', '[]=' accessors; fixes #8049 (#8817)Andreas Rumpf2018-08-301-0/+9
|
* Deprecate xlen() for strings and seqs (#8782)awr12018-08-261-2/+7
| | | | | | * deprecates xlen() for strings and seqs * added docs
* doAssert, assert now print full path of failing line on error (#8555)Timothee Cour2018-08-251-15/+13
|
* fixes merge conflictAraq2018-08-231-8/+8
|\
| * Fixes #8719 (onFailedAssert now works for doAssert) (#8731)awr12018-08-231-8/+8
| |
| * exploit nil seqs for performance (#8688)Andreas Rumpf2018-08-201-4/+1
| | | | | | | | | | * changes $ for seqs to never produce 'nil' * exploit the fact that empty seqs don't have to allocate in the code generator
* | even more strict isNil handling for strings/seqs in order to detect bugsAraq2018-08-221-2/+11
| |
* | make tests green againAraq2018-08-211-0/+1
| |
* | fixes merge conflictAndreas Rumpf2018-08-191-93/+92
|\ \
| * | changes $ for seqs to never produce 'nil'Andreas Rumpf2018-08-181-4/+1
| |/
| * Genode fixes (#8501)Emery Hemingway2018-08-161-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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-161-1/+1
| |\
| | * Haiku support for Nim (#8542)alaviss2018-08-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * | implement the --nilseqs switch properlyAndreas Rumpf2018-08-151-2/+3
| | |
| * | changes how the now illegal 'string == nil' comparison is detectedAndreas Rumpf2018-08-151-0/+4
| | |
| * | make tests green againAraq2018-08-131-2/+6
| | |
| * | WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-6/+15
| | |
| * | rename SystemError to CatchableError in order to avoid breaking Nimble and ↵Araq2018-08-101-4/+4
| | | | | | | | | | | | probably lots of other code
| * | rework the exception hierarchy; refs #8363Andreas Rumpf2018-08-101-71/+33
| | |
| * | deprecate isNil for strings and seqsAraq2018-08-081-4/+4
| |/
| * fixes #6255, add `system.ashr` arithmetic right shift (#8547)andri lim2018-08-071-0/+17
| |
| * Stricter signature for countdown/countup (#8549)Oscar Nihlgård2018-08-071-3/+3
| |
* | make at least bootstrapping workAraq2018-08-051-4/+6
|\|
| * fixes #7492 excessiveStackTrace:on shows non-absolute file in stacktrace (#8469)Timothee Cour2018-07-301-1/+3
| |
| * Fix links to manual.html in the system module documentation (#8467)Hugo Locurcio2018-07-281-3/+3
| | | | | | | | The HTML anchor IDs were changed, which made those links not link to the appropriate section anymore.
* | --gc:destructors: next steps; WIPAndreas Rumpf2018-07-211-3/+11
| |
* | fix merge conflictAndreas Rumpf2018-07-181-23/+22
|\|
| * fixes #8223Andreas Rumpf2018-07-171-3/+2
| |
| * Don't depend on string.h in codegen (#8299)Yuriy Glukhov2018-07-131-17/+17
| |
| * Do not consider enums with holes as ordinals (#8264)LemonBoy2018-07-121-3/+3
| | | | | | | | | | | | Make the compiler behave consistently with respect to what's written in the manual. Fixes #1239
* | WIP: strings/seqs based on destructorsAndreas Rumpf2018-07-171-0/+12
| |
* | more progress on destructor based stringsAndreas Rumpf2018-07-131-79/+84
| |
* | system.substr is not implemented with compilerProcs anymoreAndreas Rumpf2018-07-111-13/+21
| |
* | refactorings in preparations for the new runtimeAndreas Rumpf2018-07-101-0/+1
|/
* workaround issue #8223 nim doc fails with doAssertRaises (#8245)Timothee Cour2018-07-081-4/+7
|
* Add proc toOpenArray[byte] for strings (#7820)Dmitry Atamanov2018-07-071-1/+2
|
* Put back deprecation path for SomeRealMamy Ratsimbazafy2018-07-071-0/+2
| | | was wrongly deleted in https://github.com/nim-lang/Nim/commit/c7298561c199255facc562402700322360408179
* system.nim: minor code style changeAraq2018-07-061-1/+1
|
* Merge branch 'devel' of github.com:nim-lang/Nim into araq-develAraq2018-07-061-1/+1
|\
| * Use '\L' instead of '\n' in system for backwards compatibility.Dominik Picheta2018-07-061-1/+1
| | | | | | | | See https://github.com/nim-lang/packages/pull/785.
* | restore deprecated PNimrodNode in order to make the CIs happyAndreas Rumpf2018-07-051-0/+2
| |
* | system.nim: cleanup the formattingAndreas Rumpf2018-06-291-194/+194
| |
* | system.nim: remove deprecated symbolsAndreas Rumpf2018-06-281-74/+0
|/
* A minimal patch enabling the new typedesc and static types syntaxZahary Karadjov2018-06-161-4/+18
|
* Native access to Genode environmentEmery Hemingway2018-06-071-4/+33
| | | | | | | | | | | | | | | | | Add a 'GenodeEnv' type and a 'componentConstructHook' to the system module. The 'componentConstructHook' allows for detection of POSIX style programs that exit implicitly or native Genode components that initialize to serve RPC requests and OS signals. This hook takes a 'GenodeEnv' argument so that the environment interface is passed cleanly to application code after globals are initialized. This is an typed pointer to a C++ object, procedures for accessing the environment will be available from a Nimble library and not included in the standard library. The standard library has an internal pointer to the environment object but this is not for external use, the undocumented global environment pointer has been removed.
* Fix GC_getStatistics calling itself GC_disableMarkAndSweep in JS (again)hlaaf2018-06-061-1/+1
|
* Expose GC_setStackBottom (#7885)Yuriy Glukhov2018-06-041-5/+9
|
* Added $ for openarrays. Fixes #7940.data-man2018-06-011-0/+8
|
* Fixes #6832 (#7813)Dmitry Atamanov2018-05-191-1/+3
| | | Fixes #6832
* Disable setTerminate when noCppExceptions is defined (#7751)Emery Hemingway2018-05-041-2/+3
|