1 /* $Id: partialmatch.cc,v 1.1.1.1 2003/07/04 22:29:14 atterer Exp $ -*- C++ -*-
3 |_) /| Copyright (C) 2002 | richard@
4 | \/¯| Richard Atterer | atterer.org
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License, version 2. See
8 the file COPYING for details.
10 Helper class for mktemplate - queue of partially matched files
15 #include <mktemplate.hh>
16 #include <partialmatch.hh>
17 #include <partialmatch.ih>
18 //______________________________________________________________________
22 void MkTemplate::PartialMatchQueue::consistencyCheck() const {
24 for (PartialMatch* i = head; i != 0 && count <= MAX_MATCHES;
26 Assert(i->next() == 0 || *i <= *(i->next()));
29 for (PartialMatch* i = freeHead; i != 0 && count <= MAX_MATCHES;
30 i = i->next()) ++count;
31 Assert(count == MAX_MATCHES);