Commit graph

24 commits

Author SHA1 Message Date
Andreas Rumpf
957105520f make tests green again 2017-10-29 21:27:22 +01:00
Dominik Picheta
c4d5cc652f Work around issue with queues. Refs #4773. 2017-02-10 00:05:42 +01:00
Yuriy Glukhov
54cbe0b743 More workarounds for #5098 2016-12-07 20:15:31 +02:00
Ruslan Mustakov
2c146445bc Added deques module, deprecating queues 2016-11-24 19:11:51 +07:00
Matthew Baulch
90a5edfa6d Fix #4422: Reset queue element on pop. Prevent NimVM confusion. Help GC. 2016-07-11 15:10:54 +10:00
ReneSac
67c7a925c1 Remove high() and low() procs from queues module
Just in case as they are said not overloadable. No deprecation because this is during a PR: those procs didn't exist before.
Also update comment due to failed optimization attempt using copyMem() for POD datatypes.
2016-06-16 18:08:15 -03:00
ReneSac
8dcb3fe5b7 Fixes for things pointed by Araq on the PR 2016-06-16 17:33:45 -03:00
ReneSac
dac4826483 Improved the documentation and miscelaneous
Better bounds checking. Tried to make it and documentation comply with the conflicting style guides.
Added example of usage at the top of the module as well as warnings on usage.
Also fix the back() and internal englishOrdinal() proc from previous commit.
Added {.discardable.} pragma for .pop(), when calling only for it's side effects.
Sprinkled some unlikely() for optimization.
Some new tests reflecting those changes.
2016-06-15 18:19:51 -03:00
ReneSac
d6849b87c5 Enchanced random access support for queues
Now queues support indexing, front() and back() operations and pairs iteration.
Also modernized some of the code to use newer Nim features.
Added the "add()" alias to "enqueue()", per nim's conventions (also fits better with pop())
2016-06-12 16:34:24 -03:00
def
7177e0058b Consistently use Channel instead of TChannel 2016-02-25 04:04:45 +01:00
Adam Strzelecki
43bddf62dd lib: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
reactormonk
014be3a29c Merge pull request #2020 from def-/mitems
mitems and mpairs
2015-02-01 05:19:47 +05:00
Araq
dbe71c715e documented new C++ support 2015-01-28 12:59:04 +01:00
def
46cf40c40d Add mitems and mpairs where it makes sense 2015-01-28 02:31:26 +01:00
Araq
7deb8b2e7b fixed typos so docgen works again 2014-12-20 22:39:05 +01:00
Araq
280fa9624c fixes #1496 2014-12-18 14:54:26 +01:00
def
f52fd8785f Fix some deprecation warnings caused by renames 2014-11-13 21:34:46 +01:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Clay Sweetser
93fa75bb07 Fixed #1172 (for real) 2014-06-01 17:40:06 -04:00
Clay Sweetser
05953381e9 Fix assertion in queues.dequeue 2014-05-24 08:41:12 -04:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
5b96eaa953 preparations for 0.8.12 2011-07-10 15:48:13 +02:00
Araq
99bcc233cd bugfix: 'set' overloadable; further steps for multi threading support 2011-07-08 01:29:15 +02:00