Commit Graph

8623 Commits

Author SHA1 Message Date
Araq
03d8467942 Merge branch 'devel' into fix_bracket_expr 2015-09-12 20:42:27 +02:00
Araq
8ef66b973d first attempt to fix 'a[i]' handling in generics 2015-09-12 10:55:28 +02:00
JamesP
88fc415c69 bug fix: close() only unmapViewOfFile() when fHandle is valid.
Added extra test on windows close so if already closed it
doesn't throw an exception.
2015-09-12 14:41:50 +10:00
Andrey Sobolev
a1aa7da376 Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-09-11 19:43:23 +06:00
Dominik Picheta
77c2bcf079 Improve asyncdispatch error messages, fix some tests on Windows. 2015-09-11 14:35:42 +01:00
Dominik Picheta
808253370b Implement strutils.indent 2015-09-11 14:35:25 +01:00
Dominik Picheta
28e3ad945a Reintroduce FutureVar[T] from commit 72b4912c84. 2015-09-11 13:03:59 +01:00
Andrey Sobolev
c16c1b47b8 Merge remote-tracking branch 'nim-lang/devel' into emscripten-support 2015-09-11 17:37:11 +06:00
Andrey Sobolev
9cdfdde344 Support for GC working in Emscripten environment
Support for GC working in Emscripten environment
2015-09-11 17:36:35 +06:00
JamesP
2d1f26302c Example: add extra getGmTime interval addition example 2015-09-10 19:29:26 +10:00
JamesP
f5d55ad012 tests added: toSeconds with local/GM timezones, interval add/sub
with local/GM timezones
2015-09-10 19:21:27 +10:00
JamesP
c122d71e66 bug fix: + and - handle GM and Local time correctly
eg,  getGmTime(getTime()) + initInterval(hours=1) gave incorrect results
2015-09-10 17:38:00 +10:00
JamesP
612cd2161a add examples block to top of times module 2015-09-10 17:29:52 +10:00
Roger Shi
16fe63180f test case for #2367 2015-09-10 15:16:01 +08:00
Andrey Sobolev
6b645c50d5 mmap non PageSize aligned support
mmap non PageSize aligned support
2015-09-10 12:53:36 +06:00
Andreas Rumpf
0c7d52e34c Merge pull request #3274 from yglukhov/seq-insert-js-fix
Fixed seq.insert and seq.delete for js.
2015-09-09 17:32:55 +02:00
Roger Shi
8f9ce5285f fix #2367 2015-09-09 11:40:13 +08:00
Reimer Behrends
250375bdd2 Remove spurious unsigned operations from system/threads.nim.
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.
2015-09-08 19:12:01 +02:00
Reimer Behrends
639b5e0069 Properly register threads with the Boehm GC.
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.
2015-09-08 19:01:06 +02:00
Andreas Rumpf
55e479657a Merge pull request #3303 from Amrykid/amrykid-name-change
Fixed my name.
2015-09-08 11:06:03 +02:00
Araq
5eaf68882e fixes #3300 2015-09-08 10:37:34 +02:00
Araq
833a9344fa NimScript: make the compiler shut up about effects it doesn't know about 2015-09-08 10:22:14 +02:00
Araq
6d654f866d even better docs 2015-09-08 10:22:13 +02:00
Rostyslav Dzinko
bd12b7de96 Added == operator for comparing two Object IDs 2015-09-08 11:16:22 +03:00
Alexander Mitchell-Robinson
564c9f4013 Fixed my name. 2015-09-07 19:51:52 -05:00
Andrey Sobolev
4e57ea9345 Merge remote-tracking branch 'upstream/devel' into improve-xmltree 2015-09-07 21:20:30 +06:00
Andrey Sobolev
a534434056 allow to delete xmlnode childs 2015-09-07 21:19:52 +06:00
Yuriy Glukhov
b3cecddd64 Fixed seq.insert and seq.delete for js. 2015-09-07 18:10:45 +03:00
Yuriy Glukhov
4ef4ad305c Fixed nimvm in generics. 2015-09-07 13:49:32 +03:00
Araq
a480bebfce Nimscript: documented; 'exec' now produces output immediately 2015-09-07 12:31:35 +02:00
Araq
adf34082f0 documented NimScript 2015-09-07 12:31:34 +02:00
Andrey Sobolev
f405876b35 add text modification proc 2015-09-07 12:25:53 +06:00
Dominik Picheta
eb4263a0fc Fixes dom96/jester#45. 2015-09-06 23:50:42 +01:00
JamesP
0edb04288b Clean up a line ending 2015-09-06 23:02:28 +10:00
JamesP
9aa9920602 instantRows doco added "the" to improve readability 2015-09-06 22:40:15 +10:00
JamesP
5ae33434f8 fastRows() iterator doco updated (similar to db_mysql) with sqlite specific
[Edb] error text
2015-09-06 22:39:23 +10:00
JamesP
81e41dc795 Add example (similar to db_mysql) with changes to table definition
and transaction to match sqlite SQL syntax
2015-09-06 22:34:04 +10:00
Araq
d7996a9ede attempt to support recursions for spawn 2015-09-06 02:40:26 +02:00
Reimer Behrends
4baaea5ad5 Properly initialize the Boehm GC on all platforms. 2015-09-06 01:48:31 +02:00
Dominik Picheta
d7c60e86b4 Bold emphasis and fix typo. 2015-09-05 21:15:01 +01:00
Dominik Picheta
14a233dc75 Merge branch 'db_mysqlExamples' of https://github.com/jlp765/Nim into jlp765-db_mysqlExamples
Conflicts:
	lib/impure/db_mysql.nim
2015-09-05 21:14:37 +01:00
Araq
0320c0c73b fixes DLL hell on Windows 2015-09-05 12:03:53 +02:00
Araq
0f2a37cf1b fixes #3282 2015-09-05 11:34:36 +02:00
Andreas Rumpf
63a6bfce71 Merge pull request #3286 from yglukhov/when-nimvm
when nimvm stmt
2015-09-05 10:03:35 +02:00
JamesP
22d56fc494 Cleanup of line endings 2015-09-05 11:49:25 +10:00
JamesP
d02d1219b0 instantRows doco updated with "the" to improve readability 2015-09-05 11:48:47 +10:00
JamesP
5b11ce27c4 fastRows iterator doco updated to clarify what happens
when break a fastRows loop
2015-09-05 11:47:28 +10:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
Dominik Picheta
37fe21b64a Merge pull request #3288 from Snowie/devel
Include port in host header as expected
2015-09-04 21:25:34 +01:00
Doran
619ab0bcf0 Include port in host header as expected 2015-09-04 16:10:32 -04:00