summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
|
* 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.
* 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
* 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
|
* make 'not nil' experimentalAndreas Rumpf2018-05-021-1/+1
|
* correct comparisons for nil strings/seqsAndreas Rumpf2018-04-281-5/+6
|
* system.nim documentation: setLen can handle nil nowAndreas Rumpf2018-04-281-4/+2
|
* Don't escape multibyte characters (#7570)Oscar Nihlgård2018-04-231-9/+33
|
* remove dead code elimination option (#7669)Jacek Sieka2018-04-231-1/+1
|
* fixes system.doAssertRaisesAraq2018-04-181-4/+5
|
* Remove PHP backend. (#7606)treeform2018-04-181-12/+9
| | | | | | | | | | * remove php * fix * keep nimphpext * remove targetJS enum
* rename SomeReal to SomeFloat (#7617)Arne Döring2018-04-151-5/+7
| | | | | * rename SomeReal to SomeFloat * added changelog entry
* implements first version of for-loop macrosAndreas Rumpf2018-04-151-0/+5
|
* Support code hot reloading for JavaScript projects (#7362)zah2018-04-131-0/+24
| | | | | | | | | | | | | | | | | | | | | | * Support code hot reloading for JavaScript projects * Add some missing JavaScript symbols and APIs * fix the Travis build * (review changes) remove the js type from the standard library as it doesn't follow NEP-1 * more additions to the DOM module * Follow NEP-1 in jsffi; spell 'hot code reloading' correctly * introduce a jscore module * Document jscore module. * readded js type * Remove the '$' operator that doesn't behave
* Add column number to instantiation info (#7376)PMunch2018-04-121-1/+1
| | | | | | | | | | | | | | * Add column number to instantiation info Instantiation info left out column number for no good reason. This adds it in as the third element of the tuple. * Fix test that failed and added change to changelog An assertion test failed because it was declaring a type that was expected to be populated by instantiationInfo with the old signature. Also added the changes to the changelog as it is a breaking change.
* Cpp codegen: handling of imported exceptions. Fixes #3571 (#7360)cooldome2018-04-101-0/+1
|
* Add RISC-V (riscv64) support (#7417)Federico Ceratto2018-04-071-1/+2
|
* further steps in implementing sink parameters; refs #7041Araq2018-03-301-0/+5
|
* added toOpenArray builtin for zero-copy slices; syntax sugar yet to comeAraq2018-03-241-0/+10
|
* [Documentation] free -> dealloc (#7334)WhiteDuke2018-03-161-3/+3
|