2013-08-24 02:32:28 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#pragma once
|
2014-04-22 18:09:13 +00:00
|
|
|
#include "util/rb_tree.h"
|
2013-09-13 10:35:29 +00:00
|
|
|
#include "util/name.h"
|
2014-05-08 01:32:53 +00:00
|
|
|
#include "util/lua.h"
|
2013-08-24 02:32:28 +00:00
|
|
|
namespace lean {
|
2014-04-22 18:09:13 +00:00
|
|
|
typedef rb_tree<name, name_quick_cmp> name_set;
|
2014-05-08 01:32:53 +00:00
|
|
|
/** \brief Make a name that does not occur in \c s, based on the given suggestion. */
|
2013-11-30 18:22:57 +00:00
|
|
|
name mk_unique(name_set const & s, name const & suggestion);
|
2014-05-08 01:32:53 +00:00
|
|
|
|
|
|
|
UDATA_DEFS_CORE(name_set)
|
|
|
|
void open_name_set(lua_State * L);
|
2013-08-24 02:32:28 +00:00
|
|
|
}
|