mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd:Ⓜ️ Rename function.
This commit is contained in:
parent
ab47188b0a
commit
3ec009bf6d
3 changed files with 8 additions and 9 deletions
|
@ -30,8 +30,7 @@ namespace ircd::m
|
|||
bool rfor_each_depth_gap(const room &, const depth_range_closure &);
|
||||
|
||||
bool sounding(const room &, const depth_range_closure &); // Last missing (all)
|
||||
|
||||
std::pair<int64_t, event::idx> surface(const room &); // First missing (one)
|
||||
std::pair<int64_t, event::idx> hazard(const room &); // First missing (one)
|
||||
std::pair<int64_t, event::idx> sounding(const room &); // Last missing (one)
|
||||
std::pair<int64_t, event::idx> twain(const room &);
|
||||
}
|
||||
|
|
|
@ -749,7 +749,7 @@ ircd::m::sounding(const room &room)
|
|||
}
|
||||
|
||||
std::pair<int64_t, ircd::m::event::idx>
|
||||
ircd::m::surface(const room &room)
|
||||
ircd::m::hazard(const room &room)
|
||||
{
|
||||
std::pair<int64_t, m::event::idx> ret {0, 0};
|
||||
for_each_depth_gap(room, [&ret]
|
||||
|
|
|
@ -7536,9 +7536,9 @@ console_cmd__room__sounding(opt &out, const string_view &line)
|
|||
room_id
|
||||
};
|
||||
|
||||
const auto surface
|
||||
const auto hazard
|
||||
{
|
||||
m::surface(room)
|
||||
m::hazard(room)
|
||||
};
|
||||
|
||||
const auto twain
|
||||
|
@ -7556,7 +7556,7 @@ console_cmd__room__sounding(opt &out, const string_view &line)
|
|||
m::room::index(room)
|
||||
};
|
||||
|
||||
out << "head: " << std::setw(8) << surface.first
|
||||
out << "head: " << std::setw(8) << m::depth(room)
|
||||
<< " " << m::event_id(head) << " (" << head << ")"
|
||||
<< std::endl;
|
||||
|
||||
|
@ -7573,11 +7573,11 @@ console_cmd__room__sounding(opt &out, const string_view &line)
|
|||
out << "twain: " << std::setw(8) << twain.first
|
||||
<< std::endl;
|
||||
|
||||
out << "surface: " << std::setw(8) << surface.first
|
||||
<< " " << m::event_id(surface.second) << " (" << surface.second << ")"
|
||||
out << "hazard: " << std::setw(8) << hazard.first
|
||||
<< " " << m::event_id(hazard.second) << " (" << hazard.second << ")"
|
||||
<< std::endl;
|
||||
|
||||
out << "create: " << std::setw(8) << create
|
||||
out << "create: " << std::setw(8) << m::get<uint64_t>(create, "depth")
|
||||
<< " " << m::event_id(create) << " (" << create << ")"
|
||||
<< std::endl;
|
||||
|
||||
|
|
Loading…
Reference in a new issue