JamesP
bdc1c5ee84
change type of windows handles to Handle
2015-09-24 09:03:03 +10:00
JamesP
7656fae456
fix wasOpened reference and set to false on close
2015-09-23 06:20:19 +10:00
JamesP
d23c697044
Add wasOpened flag for windows, so not attempt close when unopened
2015-09-22 16:16:51 +10:00
JamesP
b6b2750327
Undo zero check
2015-09-22 15:54:44 +10: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
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
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
Andreas Rumpf
55e479657a
Merge pull request #3303 from Amrykid/amrykid-name-change
...
Fixed my name.
2015-09-08 11:06:03 +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
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
Araq
d7996a9ede
attempt to support recursions for spawn
2015-09-06 02:40:26 +02:00
Araq
0f2a37cf1b
fixes #3282
2015-09-05 11:34:36 +02: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
Dominik Picheta
538fc0467b
Merge pull request #3285 from nanoant/patch/lib-pure-osproc-spawn-vs-fork-simplify
...
osproc: Define and select spawn/fork same way
2015-09-04 20:19:38 +01:00
Araq
178275f494
split os into os and ospaths parts; ospaths is available for NimScript; better NimScript support
2015-09-04 12:22:23 +02:00
Adam Strzelecki
a9f114cf13
osproc: Define and select spawn/fork same way
...
Previously startProcessAuxFork was defined even when it was unused, also the
compile time condition to select spawn vs fork was not always the same for
definitions and calls.
This change just defines the condition in one place as constant, then in other
places we just check for `when useProcessAuxSpawn`.
2015-09-03 18:00:15 +02:00
Adam Strzelecki
ef5f0b1ac9
times: Export & document countLeapYears/Years/Days
...
Previously countYears & countDays procs were not public, but there were unused,
causing unnecessary warnings generated by standard library.
Since these procs seems to be useful it is better to just export them than
remove them completely. Also turning inline comments into proper documentation.
2015-09-03 10:39:14 +02:00
Araq
1e597c6332
formatFloat takes an optional decimalSep parameter
2015-09-01 23:41:03 +02:00
Dominik Picheta
c60728326e
Add :idx: for suspend in coro module.
2015-08-30 13:11:27 +01:00
Simon Hafner
24655ecd52
coro.sleep -> suspend
2015-08-30 10:24:13 +02:00
Simon Hafner
d876960b9d
removed coro deprecations
2015-08-25 23:52:14 +02:00
Simon Hafner
7d9a748fcd
removed coro prefixes from coro.nim
2015-08-25 16:33:44 +02:00
Andreas Rumpf
5cfce2623b
Merge pull request #3160 from r-ku/coroutines
...
Coroutines
2015-08-25 10:54:05 +02:00
Araq
646af76c87
implemented nimPinToCpu threadpool feature
2015-08-24 18:01:41 +02:00
Dominik Picheta
9b0ac8afa8
Improves osproc.startProcess error message on POSIX. Ref #2183 .
2015-08-23 22:07:37 +01:00
Dominik Picheta
1b73cd41bf
Improves osproc.startProcess error message. Fixes #2183 .
2015-08-23 21:57:45 +01:00
Dominik Picheta
fe190ee83f
Better docs for os.getCreationTime(). Fixes #1058 .
2015-08-23 19:57:23 +01:00
Dominik Picheta
193f248ea0
Fixes parsing of URIs that begin with '//'.
2015-08-23 18:22:37 +01:00
Araq
c56a1f8266
math.nim works with NimScript
2015-08-21 21:34:15 +02:00
Andreas Rumpf
47919e219b
Merge pull request #3205 from fenekku/unittest-work-2
...
other unittest pull-request
2015-08-21 21:30:10 +02:00
Andreas Rumpf
e4c164144d
Merge pull request #3215 from rbehrends/fix-reversed-empty
...
Fixed algorithm.reversed to work for empty seq's.
2015-08-21 17:06:30 +02:00
rku
24ad2cb392
Merge branch 'devel' into coroutines
2015-08-20 17:54:55 +03:00
Araq
d81578cb9b
workaround windows 'findNextFile' bug
2015-08-16 13:41:28 +02:00
Dominik Picheta
bb2aa24c99
Merge pull request #3213 from yglukhov/times-js-fix
...
Fixed compilation of times module with JS.
2015-08-14 17:17:40 +01:00
Reimer Behrends
4e222a1506
Fixed algorithm.reversed to work for empty seq's.
2015-08-14 15:14:56 +02:00
Reimer Behrends
22789a8275
Fix exponentiation operation to avoid overflow.
...
The exponentation implementation unnecessarily multiplied the
result with itself at the end if the exponent was an even number.
This led to overflow if result*result > high(int).
2015-08-14 14:32:30 +02:00
Yuriy Glukhov
2f8d4c17d8
Fixed compilation of times module with JS.
2015-08-14 12:57:07 +03:00
Dominik Picheta
ad245dbd77
Merge pull request #3131 from zachaysan/devel
...
Create chomp proc and tests
2015-08-13 22:31:30 +01:00