Commit Graph

2596 Commits

Author SHA1 Message Date
Andreas Rumpf
41ce6571a3 Merge pull request #2291 from def-/parsexml-again2
Revert my.c changes in parsexml
2015-03-08 14:54:36 +01:00
def
21bdf45853 Revert my.c changes in parsexml
Remeasured with the string copy fix (#2255) and isn't faster anymore, so
we should opt for the simpler code again.
2015-03-08 14:50:39 +01:00
Araq
419199bf9a don't use conio.h on windows (#2137) 2015-03-08 14:45:06 +01:00
Araq
c40aac8e20 GC: get rid of pathological behaviour for stack marking 2015-03-08 13:08:19 +01:00
Andreas Rumpf
e390d8ec4a Merge pull request #2225 from dyu/freebsd
compile nim on freebsd
2015-03-08 13:01:55 +01:00
Andreas Rumpf
a50dff8a5e Merge pull request #2171 from def-/xmlparse-performance
Improve performance of parsexml
2015-03-08 13:01:40 +01:00
Andreas Rumpf
554d7c040a Merge pull request #2255 from def-/copies
Only copy strings to their size, not capacity
2015-03-08 12:36:06 +01:00
Andreas Rumpf
8c5537408d Merge pull request #2231 from oderwat/upd-sequtils
Adding repeat(s, n) to sequtils.
2015-03-08 00:00:53 +01:00
Hans Raaf
51034d7e3a Changed cast to type conversion and added XXX. 2015-03-07 17:51:03 +01:00
Andreas Rumpf
df0473d754 Merge pull request #2239 from Maxdamantus/devel
interpret `tuple` as a class and `tuple[]` as the empty tuple, enable syntax for anonymous tuples
2015-03-07 17:35:14 +01:00
Andreas Rumpf
569d1c80b3 Merge pull request #2253 from def-/utf8-to
make toUTF8 support up to 6 bytes
2015-03-07 17:28:50 +01:00
Araq
d58212ccc5 fixes #1940; code breakage! stricter template evaluation 2015-03-07 15:43:36 +01:00
Araq
c914532c26 fixes #2205 2015-03-07 15:43:35 +01:00
Hans Raaf
9e2f79251c Do we want we to use the typesystem like this? 2015-03-06 18:16:00 +01:00
Hans Raaf
534fe46b82 Added repeat(seq, n) to sequtils.
This adds a repeat proc for sequences. There is also an test for it at the end of file.
2015-03-06 18:16:00 +01:00
Dominik Picheta
2c0dfcb302 Merge pull request #2277 from SSPkrolik/redis-hll
Added HyperLogLog support to Redis client
2015-03-06 15:52:47 +00:00
krolik
093b2adf65 Added HyperLogLog support to Redis client 2015-03-06 14:27:16 +02:00
Dominik Picheta
d8c5c2f222 Export AsyncFile. Add asyncfile module to docgen. 2015-03-06 10:51:56 +00:00
Andreas Rumpf
fcb44ae4f0 Merge pull request #2267 from SSPkrolik/tables-getter-fix
Fixed table getter not compiling when table key type had not '$' proc ...
2015-03-06 10:18:03 +01:00
Max Zerzouri
9c126282b2 interpret tuple as a class and tuple[] as the empty tuple
When the indentation syntax is allowed it is always interpreted as a
tuple:

type
  Unit = tuple
2015-03-06 12:20:15 +13:00
Dominik Picheta
bab8190b67 Fixes bugs introduced by ee62d56cad. Closes #2227. 2015-03-05 21:18:28 +00:00
krolik
4fe0a72577 Fixed table getter not compiling when table value type had not '$' proc overriden 2015-03-05 14:43:15 +02:00
Johanna Berewinkel
04906d6993 Changed some characters (&! -> !&) in the documentation in lib/pure/hashes.nim 2015-03-05 12:01:42 +01:00
Araq
d61f326f38 prevent name mangling for C++ DLLs 2015-03-05 01:34:09 +01:00
Andreas Rumpf
1ca2db0273 Merge pull request #2260 from oderwat/upd-deprecated-repeats
Updates to remove deprecated repeatStr() and repeatChar() from all files.
2015-03-04 16:42:13 +01:00
Johanna Berewinkel
12e4a62b44 Fixed examples in the documentation of module re (proc replace and proc replacef) 2015-03-04 09:05:30 +01:00
Hans Raaf
b902ea887b Replaced deprecated repeatStr() with repeat(). 2015-03-04 03:44:09 +01:00
def
20426e77e9 Fix copyStrLast to set the trailing \0 char 2015-03-04 03:37:50 +01:00
Hans Raaf
58186f6c1d Replaced deprecated repeatChar() with repeat() or spaces(). 2015-03-04 03:30:43 +01:00
def
d875951124 sizeof(char) is always 1 2015-03-04 03:22:06 +01:00
def
0264b42216 Also deepCopy strings only up to their length, not capacity 2015-03-04 03:21:17 +01:00
Andreas Rumpf
b1656f2db4 Merge pull request #2230 from Archs/devel
streams.ssWriteData: Call setLen only when new data truly increases the underlying string buffer
2015-03-04 03:08:38 +01:00
Andreas Rumpf
171de9c355 Merge pull request #2175 from def-/sorted
sorted & sortByIt
2015-03-04 03:08:21 +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
def
c3f6c7f8a3 Move sortByIt to algorithm module and add an example for it 2015-03-03 21:44:27 +01:00
def
bacb91002a make toUTF8 support up to 6 bytes 2015-03-03 21:25:28 +01:00
Andreas Rumpf
8f43979cf6 Merge pull request #2232 from oderwat/upd-strutils
`repeat` instead of `repeatStr` + parameter swapped
2015-03-03 19:46:49 +01:00
Andreas Rumpf
9731fb5420 Merge pull request #2248 from chrisheller/devel
Make macros.nim expectKind error message with a single TNimrodNodeKind c...
2015-03-03 19:45:14 +01:00
Chris Heller
0553758ebd Clone the implementation of cmpIgnoreStyle into macros.nim from typeinfo.nim so that we get rid of any imports in the core modules 2015-03-03 09:29:38 -08:00
Chris Heller
b54dfbce16 Remove use of .format() from macros.nim to avoid importing into core. There is still a remaining import of cmpIgnoreStyle from strutils that needs to be removed as well 2015-03-03 09:22:54 -08:00
Archs
758a883cc6 set the correct length for s.data when data truely increased 2015-03-04 00:28:18 +08:00
Hans Raaf
3546ff8819 Replaced repeatStr() and repeatChar() with more natural versions. 2015-03-03 16:37:54 +01:00
Araq
21ccc5d58e parseopt is not deprecated anymore 2015-03-03 13:53:31 +01:00
Chris Heller
df7e388e0c Make macros.nim expectKind error message with a single TNimrodNodeKind consistent with error message shown with a set of TNimrodNodeKind by displaying the actual node kind (as well as the expected) 2015-03-02 17:02:43 -08:00
Andreas Rumpf
8b05bf3e86 Merge pull request #2238 from oderwat/fix-2228-readall-osx
Fix for readAll(stdin) problem on OS X and better anyway. I can confirm this works on Windows.
2015-03-01 23:30:02 +01:00
Araq
24ae0c387f some love for the testsuite; fixed regressions 2015-03-01 21:41:21 +01:00
Hans Raaf
79ad73574c Fix for readAll(stdin) problem on OS X and better anyway. 2015-03-01 03:35:20 +01:00
Charles Blake
840f80e45c Fix buggy rect(), doc comment, and unit test. 2015-02-28 19:21:52 -05:00
Jonathan Edwards
b1e0d2058b Addition of some complex hyperbolic functions 2015-02-28 16:12:36 -05:00