Araq
7d78707e36
fixes #7766
2018-05-04 08:11:13 +02:00
Andreas Rumpf
f64f9e50cc
correct comparisons for nil strings/seqs
2018-04-28 15:13:44 +02:00
Andreas Rumpf
65c08212db
system.nim: minor code cleanup
2018-04-28 07:57:44 +02:00
Andreas Rumpf
7c538b26ad
nil in string concats does not produce crashes anymore
2018-04-27 21:33:05 +02:00
Andreas Rumpf
ce36b8efd6
setLen doesn't crash on nil strings/seqs anymore
2018-04-27 11:07:40 +02:00
Andreas Rumpf
ef1b547f35
'add' on a nil sequence doesn't produce a crash anymore
2018-04-27 09:57:20 +02:00
Andreas Rumpf
b25044286b
sysstr.nim: fix minor typos
2018-04-02 17:01:40 +02:00
Araq
15e044416f
fixes #7291
2018-03-05 13:38:32 +01:00
Andreas Rumpf
0b52466bb8
bugfix: do not call memcmp for nil strings
2018-01-19 09:26:11 +01:00
cooldome
2aebb8ed7e
Fix for isssue in parseBiggestFloat #7060 ( #7061 )
2018-01-11 01:57:20 +01:00
Mathias Stearn
6bd3a2826f
cmp(x, y: string) now uses memcmp rather than strcmp ( #6869 ) ( #6968 )
2017-12-24 15:23:17 +01:00
Brent Pedersen
e016c9253e
optimize setLen ( #6816 )
...
inline the call to setLengthSeq and avoid decref for types if ntfNoRefs
closes #6721 and speeds setLen when newLen < len for non reference
types.
2017-12-07 14:25:39 -05:00
Arne Döring
a11be5f21f
added when statement ( #6759 )
2017-11-17 10:53:15 +01:00
Araq
742f43e572
fixes #6609 ; 'if' expressions support multiple statements; minor breaking change
2017-11-05 01:26:04 +01:00
Andreas Rumpf
6a3288a60e
more replacements for the deprecated '<'
2017-10-29 08:55:30 +01:00
Andreas Rumpf
dcfc2b0e5f
sysstr: code formatting
2017-10-28 12:10:22 +02:00
Araq
7ee825a6e5
make the Windows build green again
2017-10-17 09:27:44 +02:00
Andreas Rumpf
3308d26581
breaking change: arrays of char do not convert to cstring; ptr to array of char does
2017-10-10 00:17:20 +02:00
Andreas Rumpf
0314075639
revert the 'wasMoved' logic until the write barrier has been adapted
2017-09-29 11:33:40 +02:00
Andreas Rumpf
fe99495a9b
new string behaviour now available under nimShallowStrings
2017-09-22 10:15:30 +02:00
Andreas Rumpf
c383e4d35e
preparations for string optimizations
2017-09-22 09:57:18 +02:00
Andreas Rumpf
e7bcadaf32
hotfix: fixes seq.add and str.add for edge cases
2017-09-16 10:56:28 +02:00
Araq
6b3af6a5d7
WIP: --gc:regions instead of --gc:stack
2017-08-13 02:51:00 +02:00
Araq
346ea6d171
system.nim: don't use deprecated symbols/constructs
2017-02-08 14:55:30 +01:00
Andreas Rumpf
9ca15ad369
string.add for floats and ints for more performance (JS not yet supported)
2016-11-21 13:53:55 +01:00
Andreas Rumpf
66bbf7518e
fixes #4776
2016-09-24 02:27:12 +02:00
Dominik Picheta
b56595ae26
Fixes $(0.0/0.0) giving -nan on some systems.
...
Squashed commit of the following:
commit c7fc086b663f4d4003ccd5831a0ca508cf9badc7
Author: Dominik Picheta <dominikpicheta@gmail.com >
Date: Sat Sep 17 21:09:48 2016 +0200
Another attempt at fix.
commit 67b7fb67cda08d945e480a6a01fb0fee797add00
Author: Dominik Picheta <dominikpicheta@gmail.com >
Date: Sat Sep 17 20:47:41 2016 +0200
Fixes $(0.0/0.0) giving `-nan` on some systems.
2016-09-17 22:09:10 +02:00
Hans Raaf
cc4bb89267
Fix for cstring nil to string nil conversion with $
2016-07-29 01:39:33 +02:00
Jacek Sieka
fe2b39f007
remove system/ansi_c include from os
2016-06-05 20:16:26 +08:00
Jacek Sieka
64b0485207
fix types of ansi_c/sysio to more closely match C ABI
...
also fixes some instances of using C library functions when there are
nim alternatives available
2016-06-05 12:03:20 +08:00
Parashurama
4716034a7f
fixes issue 4212 && add test for various valid zero floats.
2016-05-25 11:57:09 +02:00
Andreas Rumpf
835bd9aef2
fixes #4212
2016-05-25 01:10:31 +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
Parashurama
f5761e23d3
fix issue 4181. add testcase.
2016-05-18 12:12:01 +02:00
Parashurama
60e03ee27c
make float parsing locale independent.
2016-05-16 22:06:35 +02:00
Andreas Rumpf
79f64d2469
simple stuff works with --gc:stack
2016-04-18 11:40:06 +02:00
Araq
070403ca5e
first compiling version of the new GC
2015-12-01 00:53:30 +01:00
Araq
4932415742
fixes #1832
2015-07-24 01:04:45 +02:00
Stefan Talpalaru
b487d4e425
conditional TGenericSeq extension
2015-06-16 15:15:17 +02:00
Stefan Talpalaru
02ddbae8f6
fix growObj() with strings
2015-06-09 17:58:54 +02:00
Stefan Talpalaru
50e96ad939
the Go GC - initial implementation
2015-05-31 19:07:44 +02:00
Araq
ee57bb3e3e
fixes --gc:none regression; made some tests green
2015-03-10 12:32:47 +01:00
def
20426e77e9
Fix copyStrLast to set the trailing \0 char
2015-03-04 03:37:50 +01:00
def
d875951124
sizeof(char) is always 1
2015-03-04 03:22:06 +01:00
def
f5968c7946
Only zero strings when necessary.
...
This removes the zeroing when the string is subsequently overwritten by
a memcpy anyway.
2015-03-04 01:48:09 +01:00
def
fa3620be9e
Only copy strings to their size, not capacity
...
Capacity may be much bigger, so we end up with strings that are much
larger than they have to be and have to copy more as well.
2015-03-03 22:23:35 +01:00
Araq
24ae0c387f
some love for the testsuite; fixed regressions
2015-03-01 21:41:21 +01:00
Andreas Rumpf
13c2d9b8e2
Merge pull request #2150 from def-/gc2-compiling
...
Make gc2 compile again and fix some deprecation warnings
2015-02-16 20:33:25 +01:00
def
b9abeff617
Clean up some more deprecation warnings
2015-02-16 19:13:49 +01:00
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00