1 // This file is part of The New Aspell
2 // Copyright (C) 2004 by Kevin Atkinson under the GNU LGPL
3 // license version 2.0 or 2.1. You should have received a copy of the
4 // LGPL license along with this library if you did not you can find it
5 // at http://www.gnu.org/.
7 #ifndef __aspeller_check_list__
8 #define __aspeller_check_list__
10 #include "objstack.hpp"
11 #include "speller.hpp"
15 using acommon::CheckInfo;
17 static inline void clear_check_info(CheckInfo & ci)
19 memset(&ci, 0, sizeof(ci));
26 GuessInfo() : num(0), head(0) {}
27 void reset() { buf.reset(); num = 0; head = 0; }
30 CheckInfo * tmp = (CheckInfo *)buf.alloc_top(sizeof(CheckInfo),
32 clear_check_info(*tmp);
38 void * alloc(unsigned s) {return buf.alloc_bottom(s);}
39 char * dup(ParmString str) {return buf.dup(str);}