Commit Graph

3926 Commits

Author SHA1 Message Date
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
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
Andreas Rumpf
6e6c15081d Merge pull request #4142 from endragor/gc-allow-skip-stack
Added stackSize parameter to GC_step
2016-05-12 15:00:08 +02:00
Andreas Rumpf
4b13484025 Merge pull request #4025 from flyx/highlight-yaml
YAML highlighting support for doctools/highlite
2016-05-12 14:59:00 +02:00
Andreas Rumpf
81ebb96922 Merge pull request #4149 from oderwat/HARA-PHP_ArrayConstr_Hack
PHP codegen array constructor hack (!!!) for demo purpose only I guess
2016-05-12 01:43:04 +02:00
Andreas Rumpf
c02963bcea Pegs: fixes edge case 2016-05-12 01:36:23 +02:00
Andreas Rumpf
34110fc118 Merge pull request #4136 from oderwat/HARA-peg-replace-cb
Added a replace() with callback to pegs.
2016-05-11 23:31:22 +02:00
Hans Raaf
d3bae50c3c PHP codegen array constructor hack.
Because of PHP can't have refs for literal function parameters I
needed to come up with a hack such that the following code compiles with
PHP target.

```nim
type Foo = tuple[a: string, b: int]

var foo: array [0..2, Foo]

foo[0] = ("Test", 1)
foo[1] = ("Me", 2)

for x in foo:
  echo x.a
  echo x.b
```
2016-05-11 22:51:27 +02:00
Ruslan Mustakov
0dc35b7841 Replaced ignoreStackAndRegisters with stackSize in GC_step 2016-05-11 20:02:12 +06:00
Araq
97129ebd8a added another version of eqIdent 2016-05-10 22:03:07 +02:00
Araq
e101773d8b added scanp macro as an alternative to pegs 2016-05-10 22:03:07 +02:00
Araq
33aeadab73 minor whitespace change 2016-05-10 22:03:07 +02:00
Araq
b357e80833 added strscans stdlib module 2016-05-10 22:03:07 +02:00
Araq
c55ff72ea7 split too long lines 2016-05-10 22:03:07 +02:00
Ruslan Mustakov
f288eb7543 Added ignoreStackAndRegisters parameter to GC_step 2016-05-10 21:52:44 +06:00
Dominik Picheta
9fb97e310f Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-05-10 12:50:48 +01:00
Dominik Picheta
2e5b19e479 Added some useful JS procs to DOM module. 2016-05-10 12:50:18 +01:00
Hans Raaf
fcfe27a1f8 Added a replace() proc using a callback to pegs.
I was missing a nice way to use pegs with a more specialized replace
functionality. Here my try to create a universal and versatile version
of replace for that.
2016-05-07 17:53:43 +02:00
niv
5da7f28990 pure/logging: add notice level, suggest usecases 2016-05-01 12:51:36 +02:00
Andreas Rumpf
b48e178969 JS target improvements 2016-04-29 17:56:06 +02:00
Dominik Picheta
d2b191dc73 Merge pull request #4122 from yglukhov/binheap
Added heapqueue collection. Fixed timers in asyncdispatch.
2016-04-28 16:45:32 +01:00
Yuriy Glukhov
1a8f784834 Added heapqueue collection. Fixed timers in asyncdispatch. 2016-04-28 00:04:32 +03:00
Andreas Rumpf
ae4142b2da Merge pull request #4002 from arnetheduck/malloc-store-size
store block size in when using malloc and nogc
2016-04-26 16:54:27 +02:00
Andreas Rumpf
f9d9cdd1ee Merge pull request #4099 from cheatfate/asyncdispatch2
Proper definitions for functions СreateIoCompletionPort and GetQueuedCompletionStatus
2016-04-26 16:53:40 +02:00
Jacek Sieka
ba1a52614b Merge remote-tracking branch 'origin/devel' into malloc-store-size 2016-04-26 21:25:57 +08:00
Andreas Rumpf
e31ec746b9 Merge pull request #4115 from yglukhov/fix-staktrace-error
Fixed stacktrace error
2016-04-26 15:18:55 +02:00
Yuriy Glukhov
7972448e60 Fixed stacktrace error 2016-04-26 15:32:59 +03:00
def
d4cf5d13f0 Make SMTP example compile 2016-04-24 14:56:24 +02:00
Andreas Rumpf
ef9a9b119d Merge branch 'devel' of github.com:nim-lang/Nim into devel 2016-04-19 12:11:18 +02:00
cheatfate
2a2a3d6c39 CompletionKey parameter for functions CreateIoCompletionPort,
GetQueuedCompletionStatus must be 64bit size on amd64 and 32bit size on x86.
2016-04-19 03:04:44 +03:00
Andreas Rumpf
79f64d2469 simple stuff works with --gc:stack 2016-04-18 11:40:06 +02:00
mjendrusch
174205bcae Fixes #4093
Added COMMA macro to nimbase.h,
changed code generation for c++ template types to insert COMMA im
between the arguments, instead of ",".
2016-04-17 17:10:24 +02:00
Andreas Rumpf
7c3f5afd5b Merge pull request #4081 from yglukhov/ordered-tables-del
Added del for OrderedTable and OrderedTableRef
2016-04-13 13:32:52 +02:00
Yuriy Glukhov
b48d98b846 Added del for OrderedTable and OrderedTableRef 2016-04-13 13:41:32 +03:00