Araq
2297a1aa60
much better error message if an exe cannot be found
2015-06-29 02:48:31 +02:00
Araq
d46407caf3
disable vcc specific code which doesn't work
2015-06-29 02:48:29 +02:00
Sergey Avseyev
f9d8d6ce09
Trim trailling spaces
2015-06-26 07:42:58 +03:00
Dominik Picheta
6109e6a999
Fixes net/asyncdispatch on Windows. Ref #2976 . Fixes #2996 .
2015-06-25 22:38:17 +01:00
Dominik Picheta
3ff5e1a1af
Merge pull request #2976 from ayourtch/ipv6-devel
...
Ipv6 devel - add IPv6 support for asyncsockets, make AF_INET6 a default
2015-06-25 21:14:40 +01:00
Andreas Rumpf
43c64c7545
Merge pull request #2977 from apense/patch-5
...
Conversion between radians and degrees.Fixes #2881
2015-06-25 13:14:59 +02:00
apense
bfcbe64778
Specific float32/float64 procs
...
I still used generics, but made them choose from `float32` or `float64`. I can rewrite in separate, explicit procs if is wanted
2015-06-24 14:49:15 -04:00
apense
67b3c4b31f
Added documentation for mod
...
Along with a brief example for sign demonstration
2015-06-24 03:33:48 -04:00
apense
edbd191f74
Conversion between radians and degrees.Fixes #2881
...
provides a new constant for conversion (not public, but that can be changed if it's wanted). the functions are pretty simple, honestly. top-level comment so documentation for each function could remain. Fixes #2881
2015-06-24 03:22:04 -04:00
Andrew Yourtchenko
c4a25d23b6
Match the AF of the socket in connect().
2015-06-24 02:09:21 +02:00
Andrew Yourtchenko
41be1c6c4d
Allow to connect to IPv4-mapped addresses for IPv6 sockets - thus full IPv4 compatibility.
2015-06-24 02:08:17 +02:00
Andrew Yourtchenko
21ee21cc23
Return address in pure IPv4 notation by getAddrString if IPv6 address is IPv4-mapped.
2015-06-24 02:07:06 +02:00
Andrew Yourtchenko
37f50695ee
Make asyncdispatch.connectAddr IPv6-aware.
2015-06-24 01:39:58 +02:00
Andrew Yourtchenko
0d3e2277e9
Export Sockaddr_in6, Sockaddr_storage.
2015-06-24 01:38:46 +02:00
Andrew Yourtchenko
48ff0d84d0
Add getAddrString which returns string representing the address within SockAddr.
2015-06-24 01:37:57 +02:00
Andrew Yourtchenko
c42b08988c
Make newAsyncSocket AF_INET6 the default domain.
2015-06-23 23:03:35 +02:00
Andrew Yourtchenko
93e2d9f979
Make asyncnet.bindAddr IPv4+IPv6 compatible.
2015-06-23 23:02:10 +02:00
Andrew Yourtchenko
f340f76f45
Add getSockDomain to return AF_INET or AF_INET6 of a SocketHandle.
2015-06-23 22:59:48 +02:00
Dominik Picheta
68f583ddb7
Adjustments to #2610 .
2015-06-22 21:40:38 +01:00
Dominik Picheta
8853dfb353
Merge branch 'starttls' of https://github.com/wiml/Nim into wiml-starttls
...
Conflicts:
lib/pure/net.nim
2015-06-22 21:34:21 +01:00
Araq
87f65f5e72
preparations for more Nimble packages; clear licensing; fixes #2949
2015-06-20 23:24:21 +02:00
Dominik Picheta
e74012b396
Merge pull request #2961 from Perelandric/rename_writeLn
...
Renamed writeln to writeLine. Issue #2958
2015-06-20 16:25:37 +01:00
Dominik Picheta
89727ef207
Merge branch 'patch-2' of https://github.com/rgv151/Nim into rgv151-patch-2
...
Conflicts:
lib/pure/htmlparser.nim
2015-06-20 11:36:59 +01:00
Andreas Rumpf
54045b785b
Merge pull request #2951 from apense/patch-5
...
Added `isSorted` proc
2015-06-20 02:55:46 +02:00
patrick dw
1cdbd6b0a5
reworked deprecation to retain old procs
2015-06-19 18:50:01 -05:00
patrick dw
15e7fe787a
renamed writeln to writeLine in lib
2015-06-19 01:02:22 -05:00
patrick dw
072688d06e
Renamed writeln procs to writeLine
2015-06-18 23:49:46 -05:00
apense
dc41beed5a
Added documentation
...
Now `isSorted` is documented.
2015-06-18 18:53:42 -04:00
apense
c0c4a7d6a6
Added some C99 funcs
...
Error function (and complementary) and gamma function (and truncated)
2015-06-18 16:07:00 -04:00
apense
138cf777da
Removed redundant check
...
Loop takes care of it already
2015-06-18 14:43:38 -04:00
apense
3491047141
Fixed silly continue
...
The old if/else was weird and unnecessary
2015-06-17 20:14:53 -04:00
apense
ea1809a931
Added isSorted proc
...
Linear-time verification that an openarray is sorted. Operates on the same parameters as `sort`. Seems much cheaper for large sorts.
2015-06-17 19:56:32 -04:00
Andreas Rumpf
77abb8f8b4
Merge pull request #2908 from apense/patch-7
...
Updated random functions. Fixes #2907
2015-06-15 20:23:40 +02:00
Adam Strzelecki
1057770ce5
colors: Introduce resetStyle enum & use templates
...
1. Introduce TerminalCmd enum and resetStyle that can be issued to issue
resetAttributes within styledEcho arguments.
2. Use templates to resolve styledEcho arguments for performance reasons.
3. Try to avoid calling trailing write "\n" and reset attributes where possible.
2015-06-15 11:26:53 +02:00
apense
4072a39c69
Updated RNG for Visual C
...
Can't test it, but it should work just fine. Can be extended to MinGW w/ GCC and other compilers sometime in the future
2015-06-14 21:16:39 -04:00
Araq
8d39669233
fixes #2909
2015-06-15 00:56:20 +02:00
Vlad
059b05a804
fixed #1985
2015-06-14 21:42:43 +03:00
Sergey Avseyev
0fe54a5e14
Fix logger formatting
...
Motivation
----------
Current implementation does not allow to specify any formatting. It
even cannot output log level, because `writeln()` accepts
`varags[string]` and silently ignores everything before last argument.
Modification
------------
Perform formatting in the single place during substitution. Make log
level optional as all other substitution variables. Also make verbose
logging more informative and parseable.
Result
------
Correct handling formatting and substitutions. Machine-friendly default
output of verbose logger.
2015-06-13 14:41:08 +03:00
apense
7fba7d934b
Discarded randomize for windows
...
It actually doesn't use it because `rand_s` doesn't.
2015-06-11 18:56:59 -04:00
apense
294989daf5
Updated random functions
...
For Windows, `rand_s` has been available since Windows XP (see https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx ). It gives a better quality random number in a larger range (the max is actually `0xffffffff`).
2015-06-11 18:47:28 -04:00
yglukhov
98ec9615f3
Fixed unittest output.
2015-06-11 23:01:44 +03:00
Andreas Rumpf
a9e791823e
Merge pull request #2891 from sstirlin/devel
...
fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
2015-06-10 21:07:00 +02:00
Spencer Stirling
891d953a4c
disabled threadpool assertion only for vcc
2015-06-10 07:23:07 -06:00
msiglreith
8905ed1dda
Fix doc typos in basic2d and basic3d
2015-06-10 14:34:53 +02:00
Araq
d4610d7716
terminal doesn't use enormous windows module anymore
2015-06-10 11:32:10 +02:00
Araq
1b98d32579
no private deprecated symbols
2015-06-10 11:11:29 +02:00
Federico Omoto
4618cb58c0
Allow to set position at end of stream
2015-06-09 22:25:31 -03:00
Spencer Stirling
d152ccc1e2
fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
2015-06-09 11:59:26 -06:00
apense
0ee1672d69
Updated whitespace ranges
...
Ranges sourced from <http://www.unicode.org/Public/7.0.0/ucd/PropList.txt >_. Wikipedia also uses these ranges on its information page <http://en.wikipedia.org/wiki/Whitespace_character#Unicode >_. 0xfeff isn't included in the list, but it is a no-break space, so I guess it makes sense. 0x200b is actually a format character, but it is a zero-width space. To fit Unicode, both 0x200b and 0xfeff would be removed.
2015-06-08 19:48:57 -04:00
Dominik Picheta
c4009c6182
Fixes #2884
...
Haven't tested this patch but should work.
2015-06-08 23:10:50 +01:00