Commit Graph

101 Commits

Author SHA1 Message Date
Andreas Rumpf
696c0c48c7 fixes merge conflict 2018-08-19 15:14:03 +02:00
Araq
babd31360a fixes more nil string bugs 2018-08-08 18:22:48 +02:00
Araq
05121d84b3 fixes a long standing nil bug in substr 2018-08-08 12:05:29 +02:00
Araq
7ac6462cbd make at least bootstrapping work 2018-08-05 14:17:24 +02:00
Andreas Rumpf
c57e320c94 fixes 7833 (#8533)
* fixes #7833; still to-do: fix setLen
* make tests green again
* also fixes setLen and string concats; refs #7833
* change formating to avoid a compiler warning
* emit the write barrier also for addChar
* fixes yet another regression
* make setLengthStr compile for the old version
* make growobjcrash complete earlier
2018-08-05 11:42:38 +02:00
Araq
c9f2c16da1 make setLengthStr compile for the old version 2018-08-04 23:23:10 +02:00
Araq
25b4d26e22 fixes yet another regression 2018-08-04 18:50:44 +02:00
Araq
1c80619ac5 WIP: avoid using the old growObj in order to fix the newly introduced seq leaks 2018-08-03 18:30:45 +02:00
Yuriy Glukhov
dfe3f16022 Don't depend on string.h in codegen (#8299) 2018-07-13 17:41:59 +02:00
Andreas Rumpf
5b59852406 system.substr is not implemented with compilerProcs anymore 2018-07-11 16:39:16 +02:00
Andreas Rumpf
ce01472ff3 refactorings in preparations for the new runtime 2018-07-10 10:39:53 +02:00
Andreas Rumpf
b5a96d28c7 codgen refactoring: prepare for alternative string/seq implementations 2018-06-29 11:34:39 +02:00
Dmitry Atamanov
e206a8d952 Use new binarySearch everywhere (#7876) 2018-05-25 00:04:30 +03:00
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