summary refs log tree commit diff stats
path: root/lib/pure
Commit message (Collapse)AuthorAgeFilesLines
* Fixes net/asyncdispatch on Windows. Ref #2976. Fixes #2996.Dominik Picheta2015-06-252-47/+56
|
* Merge pull request #2976 from ayourtch/ipv6-develDominik Picheta2015-06-253-20/+49
|\ | | | | Ipv6 devel - add IPv6 support for asyncsockets, make AF_INET6 a default
| * Match the AF of the socket in connect().Andrew Yourtchenko2015-06-241-2/+3
| |
| * Allow to connect to IPv4-mapped addresses for IPv6 sockets - thus full IPv4 ↵Andrew Yourtchenko2015-06-241-0/+1
| | | | | | | | compatibility.
| * Return address in pure IPv4 notation by getAddrString if IPv6 address is ↵Andrew Yourtchenko2015-06-241-0/+2
| | | | | | | | IPv4-mapped.
| * Make asyncdispatch.connectAddr IPv6-aware.Andrew Yourtchenko2015-06-241-2/+2
| |
| * Export Sockaddr_in6, Sockaddr_storage.Andrew Yourtchenko2015-06-241-0/+1
| |
| * Add getAddrString which returns string representing the address within SockAddr.Andrew Yourtchenko2015-06-241-0/+12
| |
| * Make newAsyncSocket AF_INET6 the default domain.Andrew Yourtchenko2015-06-231-1/+1
| |
| * Make asyncnet.bindAddr IPv4+IPv6 compatible.Andrew Yourtchenko2015-06-231-15/+12
| |
| * Add getSockDomain to return AF_INET or AF_INET6 of a SocketHandle.Andrew Yourtchenko2015-06-231-0/+15
| |
* | Merge pull request #2977 from apense/patch-5Andreas Rumpf2015-06-251-0/+13
|\ \ | | | | | | Conversion between radians and degrees.Fixes #2881
| * | Specific float32/float64 procsapense2015-06-241-8/+4
| | | | | | | | | I still used generics, but made them choose from `float32` or `float64`. I can rewrite in separate, explicit procs if is wanted
| * | Conversion between radians and degrees.Fixes #2881apense2015-06-241-0/+17
| |/ | | | | 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
* / Added documentation for modapense2015-06-241-0/+6
|/ | | Along with a brief example for sign demonstration
* Adjustments to #2610.Dominik Picheta2015-06-222-5/+15
|
* Merge branch 'starttls' of https://github.com/wiml/Nim into wiml-starttlsDominik Picheta2015-06-222-53/+89
|\ | | | | | | | | Conflicts: lib/pure/net.nim
| * Make the post-connection wrapSocket() call available in both the synchronous ↵Wim Lewis2015-04-262-10/+32
| | | | | | | | and asynchrinous net modules.
| * Add a handshake parameter to wrapSocket() to allow it to work on an ↵Wim Lewis2015-04-231-1/+15
| | | | | | | | already-connected socket.
* | preparations for more Nimble packages; clear licensing; fixes #2949Araq2015-06-201-1/+1
| |
* | Merge pull request #2961 from Perelandric/rename_writeLnDominik Picheta2015-06-208-21/+26
|\ \ | | | | | | Renamed writeln to writeLine. Issue #2958
| * | reworked deprecation to retain old procspatrick dw2015-06-191-2/+5
| | |
| * | renamed writeln to writeLine in libpatrick dw2015-06-197-20/+20
| | |
| * | Renamed writeln procs to writeLinepatrick dw2015-06-181-1/+3
| | |
* | | Merge branch 'patch-2' of https://github.com/rgv151/Nim into rgv151-patch-2Dominik Picheta2015-06-201-49/+50
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: lib/pure/htmlparser.nim
| * | | Allow TR, TH, TD tags inside THEAD and TFOOTBruce Doan2015-05-271-49/+49
| | | |
* | | | Merge pull request #2951 from apense/patch-5Andreas Rumpf2015-06-201-0/+21
|\ \ \ \ | | | | | | | | | | Added `isSorted` proc
| * | | | Added documentationapense2015-06-181-0/+3
| | | | | | | | | | | | | | | Now `isSorted` is documented.
| * | | | Removed redundant checkapense2015-06-181-2/+0
| | | | | | | | | | | | | | | Loop takes care of it already
| * | | | Fixed silly continueapense2015-06-171-5/+2
| | | | | | | | | | | | | | | The old if/else was weird and unnecessary
| * | | | Added `isSorted` procapense2015-06-171-0/+23
| | |/ / | |/| | | | | | Linear-time verification that an openarray is sorted. Operates on the same parameters as `sort`. Seems much cheaper for large sorts.
* / | | Added some C99 funcsapense2015-06-181-0/+18
|/ / / | | | | | | Error function (and complementary) and gamma function (and truncated)
* | | Merge pull request #2908 from apense/patch-7Andreas Rumpf2015-06-151-16/+40
|\ \ \ | | | | | | | | Updated random functions. Fixes #2907
| * | | Updated RNG for Visual Capense2015-06-141-14/+27
| | | | | | | | | | | | Can't test it, but it should work just fine. Can be extended to MinGW w/ GCC and other compilers sometime in the future
| * | | Discarded randomize for windowsapense2015-06-111-6/+9
| | | | | | | | | | | | It actually doesn't use it because `rand_s` doesn't.
| * | | Updated random functionsapense2015-06-111-4/+12
| | | | | | | | | | | | 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`).
* | | | colors: Introduce resetStyle enum & use templatesAdam Strzelecki2015-06-151-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | fixes #2909Araq2015-06-151-16/+16
| | | |
* | | | fixed #1985Vlad2015-06-141-1/+3
| | | |
* | | | Fix logger formattingSergey Avseyev2015-06-131-11/+20
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Fixed unittest output.yglukhov2015-06-111-1/+0
| | |
* | | Merge pull request #2891 from sstirlin/develAndreas Rumpf2015-06-101-1/+2
|\ \ \ | | | | | | | | fixed threadpool and atomics to work with Visual Studio 32 and 64 bit
| * | | disabled threadpool assertion only for vccSpencer Stirling2015-06-101-1/+2
| | | |
| * | | fixed threadpool and atomics to work with Visual Studio 32 and 64 bitSpencer Stirling2015-06-091-1/+1
| | | |
* | | | Fix doc typos in basic2d and basic3dmsiglreith2015-06-102-2/+2
| | | |
* | | | terminal doesn't use enormous windows module anymoreAraq2015-06-101-22/+81
| | | |
* | | | no private deprecated symbolsAraq2015-06-101-1/+0
| | | |
* | | | Allow to set position at end of streamFederico Omoto2015-06-091-1/+1
|/ / /
* | | Updated whitespace rangesapense2015-06-081-2/+8
| | | | | | | | | 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.
* | | Fixes #2884Dominik Picheta2015-06-081-2/+4
| | | | | | | | | | | | Haven't tested this patch but should work.