Commit Graph

3965 Commits

Author SHA1 Message Date
Andreas Rumpf
4e83a24662 Merge branch 'maxsplit' of https://github.com/mjoud/Nim into mjoud-maxsplit 2016-05-28 17:50:36 +02:00
Andreas Rumpf
426306eeb4 fixes #3882 2016-05-28 17:43:47 +02:00
Andreas Rumpf
d3fe4a2db1 Merge pull request #4113 from jcosborn/gettypeinst
getTypeInst
2016-05-28 17:14:52 +02:00
Konstantin Molchanov
6075bd4231 Stdlib: httpclient: export strtabs added.
When using `httpclient`, viewing HTTP headers is impossible without importing `strtabs`, which is very much _not_ obvious; it's impossible to know without deep diving into the docs.

Dealing with headers is an essential part of working with HTTP in general, so I propose this change. The situation is analogous to this one with `nre` and `options`: https://github.com/nim-lang/Nim/issues/4158
2016-05-28 10:25:36 +04:00
Konstantin Molchanov
4006e0b8b7 Stdlib: nre: Add export options
This should make `nre` more user friendly. See https://github.com/nim-lang/Nim/issues/4158
2016-05-27 15:27:35 +04:00
cheatfate
49c50e4e21 Introduce template withValue() for tables.nim too. 2016-05-27 01:00:05 +03:00
cheatfate
a2393d0593 Introduce template withValue() 2016-05-26 15:32:14 +03:00
Andreas Rumpf
301d39b882 Merge pull request #4130 from lihf8515/devel
Update parsecfg.nim
2016-05-26 10:51:10 +02:00
Andreas Rumpf
ea0dff3783 Merge pull request #4216 from Parashurama/fix_4212
fixes issue 4212 && add test for various valid zero floats.
2016-05-25 17:11:57 +02:00
Andreas Rumpf
2bc6acd0ed gc:stack compiles with --threads:on 2016-05-25 12:04:27 +02:00
Parashurama
4716034a7f fixes issue 4212 && add test for various valid zero floats. 2016-05-25 11:57:09 +02:00
Andreas Rumpf
ad70fb4ffe Merge pull request #4213 from oderwat/nimphpext-stack-gc
Made nimphpext work with gc:stack.
2016-05-25 02:55:24 +02:00
Hans Raaf
5385798838 Made nimphpext work with gc:stack. 2016-05-25 02:25:48 +02:00
Andreas Rumpf
835bd9aef2 fixes #4212 2016-05-25 01:10:31 +02:00
Andreas Rumpf
749abfc39c Merge pull request #4208 from cheatfate/osproc2
Make waitForExit() to use timeout.
2016-05-24 21:30:49 +02:00
cheatfate
d4f3db3bd0 Resolve bugs 2016-05-24 01:37:31 +03:00
Andreas Rumpf
fcb5cdcc9f Merge pull request #4083 from vegansk/vm_readfile
Add ``readFile`` implementation for nimvm
2016-05-24 00:09:54 +02:00
cheatfate
b27ee842d4 Resolve #4200
Resolve [Deprecated] warning for raiseOsError at line 878
2016-05-24 00:33:05 +03:00
Dominik Picheta
8b7d52a734 Merge pull request #4203 from def-/torationaloverflow
Fix toRational overflow by calculating internally with int64s (fixes #4194)
2016-05-23 13:52:53 +01:00
Andreas Rumpf
55ec99b70b new GC listens to GC_ref/GC_unref 2016-05-23 12:54:01 +02:00
Andreas Rumpf
9b609b26ca GC v2 compiles again 2016-05-23 12:53:17 +02:00
def
834ad57d94 Fix toRational overflow by calculating internally with int64s (fixes #4194) 2016-05-22 18:09:55 +02:00
Andreas Rumpf
6dd0887009 Merge pull request #4199 from oderwat/oderwat-fix-pragmas
Fixing pragmas (so syntax highligthing works).
2016-05-22 15:23:21 +02:00
Andreas Rumpf
2ecf4633f4 Merge branch 'prim-gc' into devel 2016-05-22 15:01:36 +02:00
Andreas Rumpf
dcf830bba9 fixes #3184 2016-05-22 14:28:53 +02:00
Hans Raaf
38b7581a28 Fixing pragmas (so syntax highligting works). 2016-05-20 20:26:20 +02:00
nigredo-tori
85c41a1398 Fix toJSStr for control characters
fixes #4190
Add leading zero to encoded character if it is less than 0x10
2016-05-20 12:35:34 +06:00
Andreas Rumpf
268f25225a Merge pull request #4187 from Lompik/devel
Remove spurious semicolon in type definition
2016-05-20 00:57:03 +02:00
Parashurama
5d7d8816e5 fixes some issues with underscores in float literals. add more tests.
fixes some potential issues with underscores in float literals.
adds more checks for badly positionned underscores in float literals.
adds more test files.
2016-05-19 21:03:22 +02:00
Stephane Fontaine
f12fc1140d Remove spurious semicolon in type definition 2016-05-19 19:58:17 +04:00
Dominik Picheta
d3e9589b3d Merge pull request #4180 from cheatfate/callsoon2
Resolve bugs with `deep recursion` of asyncdispatch.
2016-05-18 11:45:56 +01:00
Parashurama
f5761e23d3 fix issue 4181. add testcase. 2016-05-18 12:12:01 +02:00
cheatfate
aba60e54d5 Resolve bugs with deep recursion of asyncdispatch.
Introduce callSoon() implementation.
Patch tests to use waitFor() instead of asyncCheck()
2016-05-18 00:53:53 +03:00
Andreas Rumpf
3f075b7921 Merge pull request #4173 from Parashurama/better_float_parsing
fixes issue #4117 and make float parsing locale independent.
2016-05-17 17:15:23 +02:00
Parashurama
60e03ee27c make float parsing locale independent. 2016-05-16 22:06:35 +02:00
Parashurama
fdcb4907bc fixes typo in system/timers. 2016-05-16 17:21:49 +02:00
Andreas Rumpf
7e134b5388 fixes #3793 2016-05-16 15:29:51 +02:00
Andreas Rumpf
d8bce8b83d GC with primitive MS 2016-05-16 00:28:00 +02:00
Dominik Picheta
f4f7edf00f Merge pull request #4075 from yglukhov/json
Json serialization for openarrays and objects
2016-05-15 12:39:26 +01:00
Andreas Rumpf
c770715b16 Merge pull request #4161 from moigagoo/devel
Stdlib: nre: Convenience proc ``contains`` added.
2016-05-15 11:01:22 +02:00
Andreas Rumpf
28a45f7ac9 Merge pull request #4154 from yglukhov/sizeof-doc
Added limitations note to sizeof. Closes #4153.
2016-05-15 10:57:42 +02:00
Lompiktab
72ba30d0a9 Fix 2 compile errors in LockFreeHash.nim
* type mismatch in range (line 55)
* invalid indentation (line 249)
2016-05-14 09:41:35 +04:00
Konstantin Molchanov
4f9b498103 Stdlib: nre: Convenience proc `contains` added. 2016-05-14 09:23:09 +04:00
Stephane Fontaine
fbd6291f2f Fix missing ]
other nim can't parse the file.
Introduced in 192ba3bbc0 (diff-1a01187da2fad29f03da8ce36ffe1f91)
2016-05-13 22:14:22 +04:00
Yuriy Glukhov
5a49c51b4c Added limitations note to sizeof. Closes #4153. 2016-05-13 20:09:14 +03:00
Yuriy Glukhov
6e135468f8 Json serialization for openarrays and objects 2016-05-13 17:25:40 +03:00
Dominik Picheta
299989f3aa Restore sanity check for bytesReceived in asyncdispatch. 2016-05-13 13:41:46 +01:00
Dominik Picheta
373c47ba70 Merge pull request #4150 from cheatfate/winasync
Resolve bugs based on unreliable `bytesReceived` value.
2016-05-13 13:34:50 +01:00
Andreas Rumpf
746132d696 PHP codegen improvements 2016-05-13 00:47:18 +02:00
cheatfate
6fa6fdeb34 Resolve bugs based on unreliable bytesReceived value. 2016-05-12 21:11:42 +03:00