summary refs log tree commit diff stats
path: root/lib/system
Commit message (Collapse)AuthorAgeFilesLines
* system/dyncalls: OS X is already handled as posixAdam Strzelecki2015-10-221-36/+0
| | | | | So elif defined(mac) has absolutely no effect, also this block uses some legacy discouraged NSCreateObjectFileImageFromFile function.
* createThread is more convenient to use with a proc taking no argumentsAraq2015-10-191-0/+3
|
* Fixed ret by var in jsYuriy Glukhov2015-10-151-3/+9
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-0/+5
|
* Merge branch 'gc-fixes' of https://github.com/rbehrends/Nim into ↵Araq2015-10-122-42/+65
|\ | | | | | | rbehrends-gc-fixes
| * Remove spurious unsigned operations from system/threads.nim.Reimer Behrends2015-09-081-3/+0
| | | | | | | | | | | | These operations were included before the unsigned module was incorporated directly into system.nim and subsequently caused compilation errors with --gc:go due to duplicate definitions.
| * Properly register threads with the Boehm GC.Reimer Behrends2015-09-082-38/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to be able to scan thread stacks, the Boehm GC needs to know about newly created threads. We establish the end of the stack by using GC_call_with_stack_base (this works properly also with the dual-stack Itanium architecture) and then GC_register_my_thread() to register a thrad and GC_unregister_my_thread() to unregister it again. This patch also includes a modification for the refc and markandsweep collectors to set the stack bottom for thread stacks correctly even if an optimizer aggressively inlines and optimizes procedures (this is already being done for the stack of the main thread). Finally, we use the {.noconv.} pragma for the Boehm GC, as the Boehm API uses no specific calling convention.
| * Properly initialize the Boehm GC on all platforms.Reimer Behrends2015-09-061-1/+1
| |
* | Merge remote-tracking branch 'nim-lang/devel' into emscripten-supportAndrey Sobolev2015-10-061-1/+2
|\ \
| * | fixes 'line too long' warningAraq2015-10-031-1/+2
| | |
* | | Merge remote-tracking branch 'nim-lang/devel' into emscripten-supportAndrey Sobolev2015-10-011-4/+7
|\| |
| * | Merge pull request #3345 from rbehrends/no-unmapAndreas Rumpf2015-09-301-4/+7
| |\ \ | | | | | | | | Add option to disable munmap() use in the allocator.
| | * | Add option to disable munmap() use in the allocator.Reimer Behrends2015-09-181-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | When compiling with '-d:nimAllocNoUnmap', the allocator will not attempt to return large chunks to the OS. For certain allocation behaviors, this can be a significant speedup.
* | | | Merge remote-tracking branch 'nim-lang/devel' into emscripten-supportAndrey Sobolev2015-09-301-1/+1
|\| | |
| * | | NimScript: setCommand takes an optional project filenameAraq2015-09-291-1/+1
| |/ /
* | | Merge remote-tracking branch 'nim-lang/devel' into emscripten-supportAndrey Sobolev2015-09-151-4/+16
|\| |
| * | Uint64 to string in pure nim. array[char] to string fixed in vm.Yuriy Glukhov2015-09-141-4/+16
| |/
* | Change TAddress to ByteAddressAndrey Sobolev2015-09-141-3/+3
| |
* | Merge remote-tracking branch 'nim-lang/devel' into emscripten-supportAndrey Sobolev2015-09-111-6/+24
|\|
| * NimScript: make the compiler shut up about effects it doesn't know aboutAraq2015-09-081-0/+5
| |
| * even better docsAraq2015-09-081-6/+19
| |
* | Support for GC working in Emscripten environmentAndrey Sobolev2015-09-111-5/+7
| | | | | | | | Support for GC working in Emscripten environment
* | mmap non PageSize aligned supportAndrey Sobolev2015-09-101-1/+48
|/ | | | mmap non PageSize aligned support
* Nimscript: documented; 'exec' now produces output immediatelyAraq2015-09-071-30/+99
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-0413-387/+387
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* split os into os and ospaths parts; ospaths is available for NimScript; ↵Araq2015-09-041-1/+26
| | | | better NimScript support
* improvements for NimScript supportAraq2015-09-031-2/+2
|
* Merge pull request #3273 from yglukhov/js-copy-fixAndreas Rumpf2015-09-031-9/+5
|\ | | | | Fixed JS copying.
| * Fixed JS copying.Yuriy Glukhov2015-08-311-9/+5
| |
* | Merge pull request #3280 from jlp765/endbAndreas Rumpf2015-09-031-2/+20
|\ \ | | | | | | lib/system/endb.nim bug fix: Switch state to dbgSkipCurrent for Eval, Local & Global
| * | bug fix: Switch state to dbgSkipCurrent for Eval, Local & Global commands.JamesP2015-09-031-2/+20
| |/ | | | | | | | | | | This avoids stepping into the endb code if previous command was single step. Other two changes are trailing spaces removed.
* / Fix readLine handling of long lines.Reimer Behrends2015-08-281-1/+10
|/
* Merge pull request #3251 from jck/msp430Dominik Picheta2015-08-261-0/+2
|\ | | | | add msp430 cpu support
| * add msp430 cpu supportKeerthan Jaic2015-08-261-0/+2
| |
* | make --gc:none work with --threads:onAraq2015-08-261-1/+1
|/
* Merge pull request #3239 from xyz32/develAndreas Rumpf2015-08-251-4/+15
|\ | | | | When reading files, check if the eof flag is set before throwing.
| * remove fileErrorxyz2015-08-251-4/+1
| |
| * Append the readAllBuffer to what was read alreadyxyz2015-08-231-1/+1
| |
| * Use seLen as sugested, and fix typosxyz2015-08-231-3/+2
| |
| * When reading files, check if the eof flag is set before throwing.xyz2015-08-221-4/+19
| |
* | fixes #3245Araq2015-08-252-2/+4
| |
* | Merge pull request #3160 from r-ku/coroutinesAndreas Rumpf2015-08-254-308/+331
|\ \ | | | | | | Coroutines
| * \ Merge branch 'devel' into coroutinesrku2015-08-206-14/+178
| |\ \
| * | | Coroutine support for i386/amd64 platforms unix/windows OSes ↵rku2015-07-314-308/+331
| | | | | | | | | | | | | | | | markAndSweep/refCounting GCs.
* | | | Corrected lib name for macos.Yuriy Glukhov2015-08-251-1/+1
| | | |
* | | | fixes sysio regression for nimscript supportAraq2015-08-241-1/+4
| |_|/ |/| |
* | | Merge pull request #3143 from def-/readline-fasterAndreas Rumpf2015-08-211-54/+30
|\ \ \ | | | | | | | | Improve performance of readLine by using fgets
| * | | Improve readLine to work with strings containing \0 again.def2015-07-251-5/+15
| | | | | | | | | | | | | | | | This decreases performance slightly.
| * | | No need to set trailing \0def2015-07-241-7/+4
| | | |
| * | | Improve performance of readLine by using fgetsdef2015-07-241-54/+23
| | | | | | | | | | | | | | | | This drops compatibility with pure CR line endings of old Mac systems