//
// aegis - project change supervisor
// Copyright (C) 2001, 2002, 2004-2006, 2008, 2012, 2014 Peter Miller
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or (at
// your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see .
//
#include
#include
#include
#include
format_search_ty *
format_search_new(void)
{
format_search_ty *fsp = new format_search_ty;
fsp->root = 0;
return fsp;
}
void
format_search_delete(format_search_ty *fsp)
{
if (fsp->root)
{
delete fsp->root;
fsp->root = 0;
}
delete fsp;
}
void
format_search_staff(format_search_ty *fsp, nstring_list &sl)
{
for (format_version *fvp = fsp->root; fvp; fvp = fvp->after)
{
// what about branches?
assert(fvp->who);
sl.push_back_unique(fvp->who);
}
}
void
format_search_validate(format_search_ty *fsp)
{
assert(fsp->filename_physical->valid());
assert(fsp->filename_logical->valid());
fsp->root->validate();
}
// vim: set ts=8 sw=4 et :