Commit Graph

2063 Commits

Author SHA1 Message Date
Araq
22ed2aab35 fixes memory leak for getAppFilename on Windows 2015-11-26 21:20:10 +01:00
Andreas Rumpf
fbe6695a52 Merge pull request #3594 from theduke/unicode-validate-overlong
validateUtf8: catch overlong ascii
2015-11-26 17:34:21 +01:00
theduke
25b605a3a2 validateUtf8: catch overlong ascii
Make unicode.validateUtf8() check for overlong ascii representations, which are 2 bytes long and start with c0 or c1.
2015-11-26 16:05:24 +01:00
Yuriy Glukhov
2fcc37fd2b fixed float formatting for js 2015-11-26 01:10:52 +02:00
def
93e01da671 Fix options module to use new import name 2015-11-23 16:30:18 +01:00
def
7540cdd169 Update comment about map being in system module 2015-11-23 16:23:35 +01:00
Charles Blake
716c12a436 Fix loop index bug in scan for a[s] in b[s..s+len2-1].
a, b must both be indexed starting from s after the common
prefix "strip" phase.  This resolves issue 3477:
  https://github.com/nim-lang/Nim/issues/3477
2015-11-19 06:52:31 -05:00
Varriount
3832ea0785 Prevent Exported C procedure collisions
Prevents collisions between those C externalized procedures in parseopt and parseopt2.
2015-11-11 15:18:13 -05:00
Araq
b6374f1f68 fixes newly introduced oswalkdir module 2015-11-10 15:56:17 +01:00
Araq
7578d580e0 added oswalkdir.nim for the JS target 2015-11-10 15:35:02 +01:00
Araq
2aff716134 os.walkDir is available at compile time 2015-11-10 15:31:21 +01:00
Araq
e9313dd362 added prefix matching to critbits.nim 2015-11-10 15:31:21 +01:00
wt
696b89c111 Fix osproc.close 2015-11-10 11:13:04 +08:00
Dominik Picheta
60e5a2b2f5 Merge pull request #3504 from Matt14916/xmlparser-entities
Create entity nodes with xmlparser, add a test to xmlparser
2015-11-08 13:07:38 +00:00
Andreas Rumpf
d883781071 Merge pull request #3490 from oderwat/osx-libiconv
Removed libiconv prefix (on OS X) to make encodings compile on OS X.
2015-11-01 12:59:33 +01:00
Dominik Picheta
29a40e37d5 Use nanoseconds for timeouts less than 1 second on Mac OS X. 2015-11-01 11:28:11 +00:00
Dominik Picheta
ae48f26798 Fix poll's timeout for Mac OS X in the seletors module. 2015-11-01 10:37:04 +00:00
Matt Sullivan
8671656e6f Add a test to xmlparser 2015-10-31 13:30:07 -05:00
Matt Sullivan
097c508897 Create entity nodes with xmlparser 2015-10-30 23:42:29 -05:00
Hans Raaf
9b64a73bad Removed libiconv prefix (on OS X) to make encodings compile on OS X.
I am not sure since which version OS X does include the libiconv library
without the `lib` prefix. But it seems this is the case for some years
now. If there are ways to check for the OS X version at compile time
this may be needed to support older OS X versions. But I guess thats not
needed for most users working with Nim anyway.
2015-10-28 20:36:09 +01:00
Dominik Picheta
3892969af4 Merge branch 'devel' 2015-10-27 23:36:00 +01:00
Araq
e94a6ec1f9 added an assertion 2015-10-27 08:37:43 +01:00
Araq
77dc0e50ff fixes #3474 2015-10-25 02:38:33 +02:00
Federico Ceratto
d1bb246c20 Replace "prefix" with "suffix" in endsWith doc 2015-10-23 17:35:55 +01:00
Andreas Rumpf
1c9f05ef13 Merge pull request #3442 from Dhertz/devel
Make sure the json module decodes UTF16 correctly
2015-10-23 02:02:07 +02:00
Andreas Rumpf
ba63ea9e82 Merge pull request #3454 from jlp765/osproc
add simple example for execProcess, exeCmd, execCmdEx
2015-10-23 02:01:26 +02:00
Araq
3ccd5ca64b make terminal.nim work with --app:gui 2015-10-19 16:09:35 +02:00
Araq
c977daf9d8 added poDemon flag for process management 2015-10-19 16:09:34 +02:00
Adam Strzelecki
2bc6acc808 terminal: Support both styled stdout and stderr
This is important if we want to write styled diagnostics to stderr, eg. some
tool outputting results to stdout, but writing styled error messages to stderr.

Previously this module was assuming we are writing only to stdout. Now all
module procs take file handle as first argument. Wrappers assuming stdout are
provided for backwards compatibility.

The new terminal.styledWriteLine(f, args) is provided and documented as
counterpart for unstyled plain writeLine(f, args).
2015-10-16 20:55:17 +02:00
Adam Strzelecki
9ef50717fa terminal: Remove superflous hStdout = conHandle
Use just hStdout on Windows to keep handle to process stdout.
2015-10-16 20:55:17 +02:00
JamesP
f596e8145d add simple example for execProcess, exeCmd, execCmdEx 2015-10-16 23:13:14 +10:00
Andreas Rumpf
612d3f84fb Merge pull request #3437 from nim-lang/threadpool-isready
Implement isReady procedure in threadpool module.
2015-10-15 23:55:29 +02:00
JamesP
36cf87e6a9 add {.pop.} for {.push debugger:off.} to balance push/pop 2015-10-14 09:11:19 +10:00
Araq
f4bfa076ae updated httpclient to use tables.getOrDefault 2015-10-14 00:41:04 +02:00
Daniel Hertz
42975e6338 Add UTF-16 decoding tests to json module 2015-10-13 14:56:10 -04:00
Daniel Hertz
e5bcd287f8 Make sure the json module decodes UTF16 correctly
Javascript uses UTF-16 as its internal representation of strings,
so JSON does so as well. This means that we could have surrogate
pairs, with codepoints above 0xFFFF that take 2 ecape codes to
decode.
2015-10-13 14:42:24 -04:00
Araq
aeb69dbe84 Merge branch 'devel' of https://github.com/nim-lang/Nim into devel 2015-10-13 15:54:33 +02:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
rbmz
4548c1aa9b added all/any/allIt/anyIt with tests and inline documentation
Signed-off-by: rbmz <rbmz@users.noreply.github.com>
2015-10-13 01:10:25 -03:00
Araq
2fda95a4d6 added getOrDefault; bootstrapping works again 2015-10-13 03:03:05 +02:00
Araq
d8b0edc323 Merge branch 'mget' of https://github.com/def-/Nim into def--mget
Conflicts:
	lib/pure/collections/critbits.nim
	lib/pure/collections/tables.nim
	lib/pure/xmltree.nim
	lib/system/sets.nim
	tests/collections/ttables.nim
	tests/collections/ttablesref.nim
2015-10-13 00:22:27 +02:00
Dominik Picheta
dda41afe9e Implement isReady procedure in threadpool module. 2015-10-12 23:05:41 +01:00
Andreas Rumpf
ee93ee5e15 Merge pull request #3335 from SSPkrolik/teardown-move
Moved teardown call to try block for namespace access reasons
2015-10-12 21:18:04 +02:00
Araq
c7a3079123 logging.nim: expose underlying 'file' object; errors and fatals flush the buffer; refs #3270 2015-10-12 21:08:44 +02:00
Araq
e0f896785d docs now build again 2015-10-12 20:58:46 +02:00
Andreas Rumpf
f687003b73 Merge pull request #3432 from FedericoCeratto/patch-4
Export substituteLog
2015-10-12 20:58:22 +02:00
Andreas Rumpf
7b9d929d50 Merge pull request #3423 from petermora/breakSequtils
Break sequtils
2015-10-12 20:42:17 +02:00
Araq
4705cf2308 cleaned up ospaths module 2015-10-12 16:55:23 +02:00
Joey Payne
2d256a4489 Made strutils string test procs less redundant. 2015-10-10 09:13:00 -06:00
Joey Payne
ea9a1e26be Added tests for string test procs. 2015-10-10 08:55:19 -06:00