Dominik Picheta
6587f63672
Merge pull request #3415 from jlp765/rationals2
...
rationals add toRational(float) conversion
2015-10-04 22:17:45 +01:00
JamesP
77d4788655
Add toRational(float) conversion from any float to closest
...
approx for specified precision
2015-10-04 15:58:02 +10:00
Adam Strzelecki
be991ed413
Rename rawsockets module to nativesockets
...
This change was done to avoid confusion with TCP/IP raw sockets. Native sockets
module represents handling native system low level socket API in general and is
not just limited anyhow to TCP/IP raw sockets.
A stub lib/deprecated/pure/rawsockets.nim module has been added as
compatibility layer for old code using rawsockets, so this change will not
break existing code.
2015-10-03 19:45:41 +02:00
Dominik Picheta
3fe5731777
Merge pull request #3389 from nanoant/patch/separate-deprecated-modules
...
Patch/separate deprecated modules
2015-10-03 14:51:43 +01:00
Dominik Picheta
a35ba105f7
Merge pull request #3393 from nanoant/patch/fix-freebsd-getaddrinfo
...
rawsockets: Fix getaddrinfo on FreeBSD
2015-10-03 14:50:50 +01:00
Hans Raaf
437603a812
Added ReadIOEffect because thats what happens on OSX.
2015-10-02 13:54:55 +02:00
Andreas Rumpf
c85fbb6fd4
Merge pull request #3402 from tmm1/exec-processes-after-cb
...
Add afterRunEvent callback to execProcesses()
2015-10-02 13:21:46 +02:00
JamesP
2f4cc4efce
add a few type checks to limit type to SomeInteger
...
(adding a compund type to the Rational type definition
made it too difficult to define new variables
using integer literals)
2015-10-01 15:07:23 +10:00
JamesP
d6b7f0ad9e
add assertion for zero denominator
2015-10-01 15:02:46 +10:00
Aman Gupta
9f33baf51b
add afterRunEvent callback to execProcesses
2015-09-30 19:02:23 -07:00
Radu Oana
4bba8e026a
use const instead of let
2015-09-30 09:49:22 -04:00
Radu Oana
374b65289c
Move magic numbers to const
2015-09-30 08:20:24 -04:00
Adam Strzelecki
144dc8f8ad
Move deprecated modules into lib/deprecated/
...
This gives clear indication what modules are now deprecated and reduce clutter
in non-deprecated module directories.
2015-09-30 12:26:25 +02:00
Adam Strzelecki
9b5b254620
rawsockets: Fix getaddrinfo on FreeBSD
...
Currently due bug in FreeBSD passing AI_V4MAPPED to addrinfo.ai_flags causes
getaddrinfo to fail with EAI_BADFLAGS ("Invalid value for ai_flags"). That's
why we should disable this flag for now on FreeBSD.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198092
2015-09-30 12:25:57 +02:00
Dominik Picheta
1fa7b62763
Merge pull request #3388 from nanoant/patch/kqueue-support-for-osx-and-freebsd
...
kqueue support for OS X and Free/Open/NetBSD
2015-09-29 23:28:13 +01:00
Araq
27bdf5c45c
osproc: free resources properly for the new poInteractive flag
2015-09-29 20:00:28 +02:00
Araq
5f7ad9131f
added osproc.poInteractive and osproc.hasData; both experimental
2015-09-29 19:30:47 +02:00
Araq
c852143f3a
os.walkDir supports yielding relative paths
2015-09-29 19:30:44 +02:00
Araq
ab6f8f6e5b
fixesunicode.lastRune
2015-09-29 19:30:44 +02:00
Araq
985594cbb8
added streams.readAll proc
2015-09-29 19:30:43 +02:00
Adam Strzelecki
4c537bd1e5
selectors: Cleanup a bit epoll flavor
...
1. Remove select documentation that is duplicate of nimdoc section below
2. Simplify a bit register proc code
2015-09-29 19:28:10 +02:00
Adam Strzelecki
248f52fea7
Selectors using OS X & Free/Open/NetBSD kqueue API
2015-09-29 19:27:41 +02:00
Dominik Picheta
d8a10457e2
Fixes #3207 .
2015-09-28 23:04:17 +01:00
JamesP
ff9a3d39d7
add default file mode to newFileStream()
2015-09-26 08:18:42 +10:00
JamesP
eed1000252
add examples to top of module for stringStream and fileStream
2015-09-26 08:18:09 +10:00
Andreas Rumpf
308a0d0a55
Merge pull request #3316 from jlp765/memfilesWinClose
...
bug fix: close() only unmapViewOfFile when fHandle is valid.
2015-09-24 16:04:42 +02:00
Dominik Picheta
d92f252609
Merge pull request #3364 from tmm1/osx-ssl-compile
...
Avoid referencing undefined SSLv2_method on MacOSX
2015-09-24 01:16:57 +01:00
Aman Gupta
8edbef346a
raise with error message
2015-09-23 17:15:13 -07:00
JamesP
305766a9fa
Bug fix: change non-fmRead file mode to set GENERIC_READ or GENERIC_WRITE
...
instead of GENERIC_ALL
which on 64bit windows rasied an [OSError] exception
2015-09-24 09:04:55 +10:00
JamesP
bdc1c5ee84
change type of windows handles to Handle
2015-09-24 09:03:03 +10:00
Dominik Picheta
0906bf5d73
Merge pull request #3321 from Nycto/devel
...
Extend options module
2015-09-23 21:19:03 +01:00
Araq
7c012cb797
fixes #3356
2015-09-23 21:46:37 +02:00
Aman Gupta
4a715b8e08
disable SSLv2
2015-09-23 12:03:14 -07:00
Nycto
6fa01e3490
Extend option functionality
2015-09-23 08:52:51 -07:00
Aman Gupta
5f95c4e055
avoid referencing undefined SSLv2_method on mac osx
2015-09-22 19:54:15 -07:00
JamesP
7656fae456
fix wasOpened reference and set to false on close
2015-09-23 06:20:19 +10:00
Peter Mora
925e7b0ca1
fixing TypelessParam warning in x=>x+1, added test
2015-09-22 18:34:43 +02: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
Araq
73279aba39
added unicode.lastRun, unicode.graphemeLen
2015-09-21 15:49:46 +02:00
Aman Gupta
cd40137d1e
mark code-blocks in 2d/3d docs
2015-09-20 18:24:49 -07:00
Aman Gupta
50b4406694
s/acces/access/g
2015-09-20 18:24:38 -07:00
Dominik Picheta
492f5eb704
Fixes asyncnet.recvLine. Fixes #3346 .
2015-09-19 14:01:45 +01:00
wt
4231574111
Fix proc closeSocket (posix): bad file descriptor error
2015-09-18 18:26:15 +08:00
Araq
a4a5003b7d
fixes #3312
2015-09-18 02:24:13 +02:00
Dominik Picheta
432884861e
Merge pull request #3337 from yglukhov/json-coerce-int-to-float
...
Transparently coerce int to float in JsonNode.getFNum
2015-09-17 23:09:00 +01:00
Dominik Picheta
0f933bbf55
Deprecated ftpclient module.
2015-09-17 23:05:16 +01:00
Dominik Picheta
5998f53280
Added examples to asyncftpclient module.
2015-09-17 22:45:30 +01:00
Dominik Picheta
6b002e805e
Added examples and more docs to base64 module.
2015-09-17 20:44:16 +01:00
Yuriy Glukhov
721324380d
Transparently coerce int to float in JsonNode.getFNum
2015-09-17 17:54:01 +03:00