Alexandre Duret-Lutz
14570f62d0
bivect: workaround flexible arrays not being standard C++
...
This is a -pedantic warning from gcc.
* src/misc/bitvect.cc, src/misc/bitvect.hh (storage_): Remove.
(storage): New method to access past the end of the struct.
2014-08-19 22:50:08 +02:00
Alexandre Duret-Lutz
a5bc7c3ff6
* src/misc/bitvect.hh (bitvect_array): Make as SPOT_DELETED.
2014-08-19 16:15:02 +02:00
Alexandre Duret-Lutz
9a097bb02e
bitvect: add a is_subset_of method.
...
* src/misc/bitvect.hh: New method.
* src/tgbatest/bitvect.cc, src/tgbatest/bitvect.test: Test it.
2014-02-12 14:07:16 +01:00
Alexandre Duret-Lutz
4f31a9bbed
bitvect: fix block_count() on 0-sized bit-vectors
...
The bug was introduced by 522373984c .
* src/misc/bitvect.hh (block_count): Here.
* src/tgbatest/dstar.test: Add a test case.
2014-01-24 09:25:48 +01:00
Alexandre Duret-Lutz
522373984c
bitvect: fix some issues observed on 32bit architectures.
...
* src/misc/bitvect.cc, src/misc/bitvect.hh: Do
not assume the two bitvect with the same size have
the same number of allocated blocks. Fix an
assertion in extra_range().
2014-01-15 16:27:49 +01:00
Alexandre Duret-Lutz
9ccdef9cbd
Workaround GCC 4.0.1 on the Darwin builds.
...
* src/misc/bitvect.hh: Remove SPOT_API from class forward declarations.
* src/ltlast/nfa.hh: Likewise.
2014-01-15 14:39:45 +01:00
Alexandre Duret-Lutz
5a3b1a9905
bitvect: implement a dynamic bit-vector class.
...
* src/misc/bitvect.cc, src/misc/bitvect.hh: New files.
* src/misc/Makefile.am: Add them.
* src/tgbatest/bitvect.cc, src/tgbatest/bitvect.test: New files.
* src/tgbatest/Makefile.am: Add them.
2013-08-23 17:02:29 +02:00