2014-09-03 22:01:13 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "kernel/environment.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
/** \brief Mark \c n as protected, protected declarations are ignored by wildcard 'open' command */
|
|
|
|
environment add_protected(environment const & env, name const & n);
|
|
|
|
/** \brief Return true iff \c n was marked as protected in the environment \c n. */
|
|
|
|
bool is_protected(environment const & env, name const & n);
|
2015-05-19 05:35:18 +00:00
|
|
|
/** \brief Return the shortest name that can be used to reference the given name */
|
|
|
|
name get_protected_shortest_name(name const & n);
|
2014-09-23 00:30:29 +00:00
|
|
|
|
|
|
|
void initialize_protected();
|
|
|
|
void finalize_protected();
|
2014-09-03 22:01:13 +00:00
|
|
|
}
|