Commit Graph

1511 Commits

Author SHA1 Message Date
Dominik Picheta
afb7dbf81a Fixes compilation of asyncio2 on Windows.
Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.
2014-03-14 20:18:51 +00:00
Dominik Picheta
1a75b17cd0 File descriptors are now removed from fds list explicitly in close().
Fixes tasyncawait on linux.
2014-03-14 18:46:08 +00:00
Araq
3e056afb1c fixes #993 2014-03-13 22:29:48 +01:00
Araq
1c35fb3c89 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-13 02:52:51 +01:00
Araq
2fc84325c7 should fix the nkExprColonExpr bug in the vm 2014-03-13 02:52:40 +01:00
Dominik Picheta
d2f130c3fc Fix compilation on linux. 2014-03-12 23:19:40 +00:00
Dominik Picheta
d97a397139 Fixed tasyncawait on Windows.
Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
2014-03-12 20:42:36 +00:00
Dominik Picheta
15919b7c98 EOS exception now contains the error code. 2014-03-11 23:06:22 +00:00
Dominik Picheta
2ce07042fd tasyncawait now works on Linux.
Reworked detection of a file descriptor being closed with epoll (in the
case of sockets it is when the remote host disconnects). Ensured that
events are only updated when they change.
2014-03-11 21:53:35 +00:00
Araq
3270676e77 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-10 22:23:38 +01:00
Araq
121553d1a6 osproc compiles again for haiku 2014-03-10 17:32:50 +01:00
Zahary Karadjov
1546d210c5 fix #971 2014-03-10 18:13:48 +02:00
Dominik Picheta
a097526956 Fixes to asyncio2 on Linux. 2014-03-09 13:49:38 +00:00
Andreas Rumpf
edfcbab86f Merge pull request #899 from Leu-Gim/master
Fixes passing non-default host and port to db_mysql.Open.
2014-03-08 10:46:39 +01:00
Andreas Rumpf
aaa13c0011 Merge pull request #979 from EXetoC/alloc-overloads
More updates to the allocation interface
2014-03-08 10:33:13 +01:00
EXetoC
3147f7f6c2 Use 'Natural' or 'Positive' instead of 'int' where applicable. 2014-03-07 01:32:07 +01:00
EXetoC
5b7e44f0aa create -> createU, create0 -> create. 2014-03-07 01:00:18 +01:00
EXetoC
5e78baa061 Use separate names for type-based allocation procs rather than overloading. 2014-03-07 00:34:44 +01:00
EXetoC
3ae21ea48e Better names. 2014-03-07 00:09:23 +01:00
Zahary Karadjov
2cbe46daff Merge branch 'devel' of github.com:Araq/Nimrod into devel 2014-03-06 23:25:45 +02:00
ReneSac
a88a635847 Added comment explaining 'assert_numbits' error. 2014-03-06 18:18:25 -03:00
Andreas Rumpf
9e989676d8 Merge pull request #975 from zielmicha/zmq-fix
zmq: remove unnecessary 'var' decls from high-level procs
2014-03-06 21:07:02 +01:00
Zahary Karadjov
862c0ef83d split the inline and closure iterators into different symbol kinds for easier discrimination between them 2014-03-06 21:57:35 +02:00
EXetoC
d1bc6cf098 Merge branch 'devel' into alloc-overloads 2014-03-06 02:46:31 +01:00
EXetoC
bbd245b47b Add missing cast. 2014-03-06 02:43:05 +01:00
EXetoC
6a83a5e468 Add type-specific allocation procs. 2014-03-06 01:12:18 +01:00
Araq
c5db5875f7 system.nim makes use of the 'unchecked' pragma 2014-03-05 21:30:02 +01:00
Araq
5506e8491d implemented 'union' and 'unchecked' pragmas 2014-03-05 20:19:04 +01:00
Michał Zieliński
6e42513acd zmq: remove unnecessary 'var' decls from high-level procs 2014-03-05 18:31:22 +01:00
Araq
1ce30b9e10 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-04 16:41:37 +01:00
Araq
74549c327e added a warning for htmlgen 2014-03-03 08:17:51 +01:00
Andreas Rumpf
835926e174 Merge pull request #927 from gradha/pr_adds_posix_timegm
Adds posix.timegm(), brother of posix.mktime().
2014-03-03 01:00:44 +01:00
Andreas Rumpf
bc8ec5b6b4 Merge pull request #969 from gradha/pr_avoids_crash_on_unknown_rst_directive
Avoids crash parsing unknown rst raw directive. Fixes #761.
2014-03-03 00:30:35 +01:00
Araq
dfeb0e8432 Merge branch 'devel' of https://github.com/Araq/Nimrod into devel 2014-03-02 23:46:32 +01:00
Grzegorz Adam Hankiewicz
d8793dcf56 Avoids crash parsing unknown rst raw directive. Fixes #761. 2014-03-02 23:15:30 +01:00
Araq
c55f5b34ee better handling of packages, still incomplete 2014-03-02 15:41:53 +01:00
Araq
d4263b1012 bugfix: walkFiles on windows shouldn't yield directories 2014-03-02 11:15:31 +01:00
Dominik Picheta
0d263f155b Fixes sockets2 on Windows. 2014-02-28 19:31:12 +00:00
Andreas Rumpf
25f6e0c681 Merge pull request #963 from zielmicha/wait-for-exit-doc
osproc: add warning about using waitForExit without poParentStreams
2014-02-27 23:39:16 +01:00
Andreas Rumpf
393706498e Merge pull request #962 from barcharcraz/vstweaks
added another version of initGeneralTokenizer
2014-02-27 23:38:53 +01:00
Araq
e1600f209f nil -> discard 2014-02-27 20:29:02 +01:00
Michał Zieliński
f4371bfef8 osproc: add warning about using waitForExit without poParentStreams 2014-02-27 19:52:04 +01:00
Charlie Barto
a79579da6f added an overload for highlight.initGeneralTokenizer that accepts a cstring.
I use this when calling the highlighter from C#.
2014-02-26 22:25:02 -05:00
Araq
10768904eb Merge branch 'devel' of https://github.com/Araq/Nimrod into devel
Conflicts:
	lib/system/jssys.nim
2014-02-25 01:06:35 +01:00
Michał Zieliński
7314f11adc osproc: MacOSX fix - if -> when 2014-02-24 17:45:45 +01:00
Michał Zieliński
30a3098095 osproc: MacOSX workaround for lack of execvpe 2014-02-24 17:01:00 +01:00
Andreas Rumpf
00b69192f2 Merge pull request #953 from zielmicha/vfork
osproc: increase stack size from 8k to 64k and disable useClone default
2014-02-23 21:43:00 +01:00
Michał Zieliński
6712aa6e38 osproc: use fork by default on Linux, clone if requested by useClone flag 2014-02-23 21:06:40 +01:00
Michał Zieliński
95eb2b88e6 osproc: increase stack size from 8k to 64k 2014-02-23 21:01:03 +01:00
Andreas Rumpf
46967f921a Merge pull request #917 from zielmicha/vfork
osproc: Raise exception if execv fails in child process
2014-02-23 19:49:19 +01:00