terminal: improve internal structure

This patch reorganizes the terminal's source code to become easier to
extend. It also enables the strict warning level.
This commit is contained in:
Norman Feske
2018-02-06 21:32:02 +01:00
parent 12c8e51071
commit 96a068f90a
16 changed files with 834 additions and 682 deletions

View File

@ -30,11 +30,17 @@ class Cell_array
{
private:
/*
* Noncopyable
*/
Cell_array(Cell_array const &);
Cell_array &operator = (Cell_array const &);
unsigned _num_cols;
unsigned _num_lines;
Genode::Allocator *_alloc;
CELL **_array;
bool *_line_dirty;
Genode::Allocator &_alloc;
CELL **_array = nullptr;
bool *_line_dirty = nullptr;
typedef CELL *Char_cell_line;
@ -73,7 +79,7 @@ class Cell_array
public:
Cell_array(unsigned num_cols, unsigned num_lines,
Genode::Allocator *alloc)
Genode::Allocator &alloc)
:
_num_cols(num_cols),
_num_lines(num_lines),