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
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
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
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
Parashurama
f5761e23d3
fix issue 4181. add testcase.
2016-05-18 12:12:01 +02: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
Andreas Rumpf
746132d696
PHP codegen improvements
2016-05-13 00:47:18 +02: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
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
Ruslan Mustakov
f288eb7543
Added ignoreStackAndRegisters parameter to GC_step
2016-05-10 21:52:44 +06:00
Andreas Rumpf
b48e178969
JS target improvements
2016-04-29 17:56:06 +02:00
Jacek Sieka
ba1a52614b
Merge remote-tracking branch 'origin/devel' into malloc-store-size
2016-04-26 21:25:57 +08:00
Yuriy Glukhov
7972448e60
Fixed stacktrace error
2016-04-26 15:32:59 +03:00
Andreas Rumpf
ef9a9b119d
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2016-04-19 12:11:18 +02:00
Andreas Rumpf
79f64d2469
simple stuff works with --gc:stack
2016-04-18 11:40:06 +02:00
James Boyden
13d06d9a5c
Add import sharedlist when hasThreadSupport
...
Without this change, a user's Nim code won't compile if they're using both threads & the mark-and-sweep GC:
lib/system/gc_ms.nim(75, 18) Error: undeclared identifier: 'SharedList'
toDispose: SharedList[pointer]
^
This small code block addition was copied from "lib/system/gc.nim" (where it appears directly after a `when defined(memProfiler)` block also).
2016-04-05 19:45:46 +10:00
Dominik Picheta
436b003173
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2016-04-04 12:06:42 +01:00
Dominik Picheta
a70e6b3fde
Fixes #3752 .
2016-04-04 12:06:25 +01:00
Anatoly Galiulin
45bbecb021
Use `when insideRLocksModule instead of when compiles`
2016-03-31 16:47:55 +06:00
Anatoly Galiulin
ebc02f6dc0
Fix `XDeclaredButNotUsed` warning when locks or rlocks module is used
2016-03-31 16:47:55 +06:00
Andreas Rumpf
d836028fe7
Merge pull request #4018 from cheatfate/dyncalls_change
...
Replace csprintf() in windows version of nimGetProcAddr
2016-03-31 02:14:51 +02:00
cheatfate
40f4fe997f
Replace csprintf() in windows version of nimGetProcAddr to pure nim's implementation, to avoid possible overflow.
2016-03-31 02:39:53 +03:00
cheatfate
266ea783e8
Make windows locks do not use dyncall
2016-03-31 00:43:56 +03:00
Araq
13a83c7fdd
Windows: fixes a regression; codegen might not know about & at this point
2016-03-29 16:39:05 +02:00
Alex Berghage
452696b980
Makes dyncall errors report to stderr. Fixes #3987
...
Hooray for bugtracker items tagged 'Easy'. Also I happened
to notice this one earlier today anyway, conveniently enough.
2016-03-29 00:19:54 -07:00
Andreas Rumpf
b4e2a846e1
munmap for LLVM
2016-03-28 02:43:16 +02:00
Andreas Rumpf
871bd8f164
added new memory management idea
2016-03-28 02:32:39 +02:00
Andreas Rumpf
e2c8d9ade0
beginnings of --gc:stack
2016-03-28 02:26:38 +02:00
Andreas Rumpf
c11487b339
GCs support ForeignCells
2016-03-28 02:15:08 +02:00
Jacek Sieka
25f9330928
store block size in when using malloc and nogc
...
this allows for a correct implementation of realloc, which is needed as
code using it assumes new values will be zeroed out / nil
2016-03-25 20:54:01 +08:00
Andreas Rumpf
7b071a7555
Merge pull request #3963 from def-/compiler-dir
...
Don't try to read directories as files
2016-03-23 11:22:50 +01:00
def
dfba0bdcaf
Explicitly return false
2016-03-18 19:09:27 +01:00
def
d5c332ffa8
Comment to explain not opening directories in open()
2016-03-17 22:22:52 +01:00
def
7fa3d58167
Don't check opened file for directory in nimscript
2016-03-16 13:05:04 +01:00
gmpreussner
91d152c0f5
Rewrote enum sign extension with branchless bit operations (also fixes travis)
2016-03-15 00:07:18 -04:00