fix(util/sexpr/format): retract change that may be creating problems for emscripten
This commit is contained in:
parent
42c236eb2e
commit
694eef7f6a
3 changed files with 3 additions and 3 deletions
|
@ -1108,7 +1108,7 @@ class rewrite_fn {
|
||||||
r += t.pp(fmt);
|
r += t.pp(fmt);
|
||||||
}
|
}
|
||||||
format cs = pp_choice_symbols(m_lemma);
|
format cs = pp_choice_symbols(m_lemma);
|
||||||
if (!cs.is_nil()) {
|
if (!cs.is_nil_fmt()) {
|
||||||
r += line() + format("rewrite lemma uses the following overloaded symbols");
|
r += line() + format("rewrite lemma uses the following overloaded symbols");
|
||||||
r += nest(get_pp_indent(fmt.get_options()), line() + cs);
|
r += nest(get_pp_indent(fmt.get_options()), line() + cs);
|
||||||
}
|
}
|
||||||
|
|
|
@ -224,7 +224,7 @@ int format::space_upto_line_break(sexpr const & s, int available, bool & found_n
|
||||||
{
|
{
|
||||||
sexpr list = sexpr_compose_list(s);
|
sexpr list = sexpr_compose_list(s);
|
||||||
int len = 0;
|
int len = 0;
|
||||||
while (list && !found_newline) {
|
while (!is_nil(list) && !found_newline) {
|
||||||
sexpr const & h = car(list);
|
sexpr const & h = car(list);
|
||||||
list = cdr(list);
|
list = cdr(list);
|
||||||
len += space_upto_line_break(h, available, found_newline);
|
len += space_upto_line_break(h, available, found_newline);
|
||||||
|
|
|
@ -182,7 +182,7 @@ public:
|
||||||
format_kind kind() const {
|
format_kind kind() const {
|
||||||
return sexpr_kind(m_value);
|
return sexpr_kind(m_value);
|
||||||
}
|
}
|
||||||
bool is_nil() const { return kind() == format_kind::NIL; }
|
bool is_nil_fmt() const { return kind() == format_kind::NIL; }
|
||||||
unsigned hash() const { return m_value.hash(); }
|
unsigned hash() const { return m_value.hash(); }
|
||||||
|
|
||||||
explicit operator bool() const { return static_cast<bool>(m_value); }
|
explicit operator bool() const { return static_cast<bool>(m_value); }
|
||||||
|
|
Loading…
Reference in a new issue