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
Andreas Rumpf
cb1f1cfd52
Merge pull request #2682 from koalazen/refactor_lowerbound_algorithm
...
shorten lowerBound in algorithm.nim
2015-06-07 10:53:12 +02:00
Andreas Rumpf
faed57dff0
Merge pull request #2878 from Perelandric/rename_fixes
...
Some fixes from the recent `T` renaming
2015-06-07 10:46:35 +02:00
patrick dw
ca684da044
Updated deprecated names
2015-06-06 10:18:16 -05:00
Araq
adfdb4623d
use new type names
2015-06-06 11:59:35 +02:00
Simon Hafner
c4c64804e5
moved sexp.nim to nimsuggest repo
2015-06-05 11:04:15 -05:00
Dominik Picheta
c5708ef1ee
Merge branch 'exportnewsocket' of https://github.com/boopcat/Nim into boopcat-exportnewsocket
...
Conflicts:
lib/pure/asyncnet.nim
2015-06-05 15:06:02 +01:00
Andreas Rumpf
62376c0657
Merge pull request #2824 from yglukhov/js-ct-lambda-lifting
...
Perform lambda lifting for compile-time stuff when targeting JS.
2015-06-05 13:04:02 +02:00
Araq
ccb9ae2d52
stdlib: don't use deprecated symbols
2015-06-04 13:18:42 +02:00
pdw
d18e18060e
lib/pure/p-t - Dropped 'T' from types
2015-06-04 13:18:36 +02:00
pdw
6914244f30
lib/pure/e-o - Dropped 'T' from types
2015-06-04 13:18:35 +02:00
pdw
192ba3bbc0
lib/pure/a-c - Dropped 'T' from types
2015-06-04 13:17:11 +02:00
Dominik Picheta
88e849078f
Merge pull request #2830 from yglukhov/logging-no-format
...
Removed formatting from logging.
2015-06-04 11:43:49 +01:00
Andreas Rumpf
8264c3cbee
Merge pull request #2849 from ozra/feature-2811-hump-snake-dash
...
Feature #2811 hump, snake and now dash
2015-06-04 11:37:26 +02:00
Dominik Picheta
a385b6736c
Fix incorrect 400 reply in asynchttpserver
...
Without the ``continue`` the user's callback will be called but the client would have already been replied to.
2015-06-03 18:48:55 +01:00
Araq
79c92603f5
FlowVar's ^ for refs is safe and convenient to use
2015-06-02 16:32:53 +02:00
x2f
51d284ce84
Documented bufSize param in logging.nim
...
Documented bufSize param in logging.nim to complete the previous change
that added a bufSize parameter to file based logger constructors.
2015-06-01 21:52:26 -04:00
Oscar Campbell
dd30bab480
Restructure branching slighty. Fix error message.
2015-06-01 23:49:04 +02:00
x2f
3f78f75483
Expose bufSize parameter for file-based loggers
...
newFileLogger and newRollingFileLogger have a new bufSize parameter that
is used in open(). The default value -1 has the same behavior as before.
Use 0 for unbuffered output to log file.
2015-05-31 21:06:23 -04:00
Oscar Campbell
d35887e492
Util funcs used by lib/hashes.nim and compiler/lexer.nim
2015-05-31 01:32:50 +02:00
Oscar Campbell
1b4db5a34c
Implement #2811 - Unicode en-dash (U+2013) as hump/snake alt.
2015-05-31 01:31:06 +02:00
boopcat
af07db2829
Export newSocket(fd) from net.nim and standardize args in net/asyncnet
...
Exporting newSocket(fd) mimics what asyncnet does and lets you pass in your
own socket FD.
newSocket*(fd) and newAsyncSocket*(fd) now both take "buffered" instead of
"isBuff" and defaults to true to match the other constructors on both.
2015-05-30 11:01:15 +00:00
yglukhov
c5f7d553e9
Perform lambda lifting for compile-time stuff when targeting JS. Enable unittest test.
2015-05-29 10:48:14 +03:00
Stephan Diehl
4fcf5adfe2
fix for https://github.com/nim-lang/Aporia/issues/69
2015-05-28 15:25:09 +02:00
yglukhov
e65ccfb8f5
Removed formatting from logging.
2015-05-28 14:48:53 +03:00
Araq
3c13508b25
terminal: doc improvments
2015-05-28 12:51:17 +02:00
Flaviu Tamas
c9616897f0
Don't inspect typedescs
2015-05-26 18:40:43 -04:00
Flaviu Tamas
0479831fb0
Rename optionals module to options
2015-05-26 16:48:17 -04:00
Dominik Picheta
d03b5891c1
Merge pull request #2697 from lyro/devel
...
logging: make fmtStr public to be used in user defined loggers
2015-05-26 16:10:30 +01:00
Andreas Rumpf
1ebff2ef83
Merge pull request #2762 from flaviut/optionals
...
Optionals
2015-05-26 15:33:08 +02:00
Flaviu Tamas
f9e95b2987
Amend optionals docstring
2015-05-26 09:21:15 -04:00
Andreas Rumpf
8ee98b3681
Merge pull request #2795 from rgv151/patch-1
...
Remove dead code in findAll proc
2015-05-26 12:16:49 +02:00
Flaviu Tamas
d3fc943b6d
Fix guard for streams tests
2015-05-25 18:13:20 -04:00