Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 4011f38

Browse files
committed
libfoundation: Rename MCProperListFirstIndexOfList().
For consistency with the string operation naming, rename `MCProperListFirstIndexOfList()` to `MCProperListFirstOffsetOfList()`.
1 parent e1da9a0 commit 4011f38

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

libfoundation/include/foundation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,7 @@ MC_DLLEXPORT bool MCProperListFirstIndexOfElementInRange(MCProperListRef list, M
28792879

28802880
MC_DLLEXPORT bool MCProperListLastIndexOfElementInRange(MCProperListRef list, MCValueRef p_needle, MCRange p_range, uindex_t & r_offset);
28812881

2882-
MC_DLLEXPORT bool MCProperListFirstIndexOfList(MCProperListRef list, MCProperListRef p_needle, uindex_t p_after, uindex_t& r_offset);
2882+
MC_DLLEXPORT bool MCProperListFirstOffsetOfList(MCProperListRef list, MCProperListRef p_needle, uindex_t p_after, uindex_t& r_offset);
28832883

28842884
MC_DLLEXPORT bool MCProperListIsEqualTo(MCProperListRef list, MCProperListRef p_other);
28852885

libfoundation/src/foundation-proper-list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ MCProperListLastIndexOfElementInRange (MCProperListRef self,
482482
return false;
483483
}
484484

485-
bool MCProperListFirstIndexOfList(MCProperListRef self, MCProperListRef p_needle, uindex_t p_after, uindex_t& r_offset)
485+
bool MCProperListFirstOffsetOfList(MCProperListRef self, MCProperListRef p_needle, uindex_t p_after, uindex_t& r_offset)
486486
{
487487
if (MCProperListIsIndirect(p_needle))
488488
p_needle = p_needle -> contents;

libscript/src/module-list.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extern "C" MC_DLLEXPORT void MCListEvalIsAmongTheElementsOf(MCValueRef p_needle,
118118
extern "C" MC_DLLEXPORT void MCListEvalContainsElements(MCProperListRef p_target, MCProperListRef p_needle, bool& r_output)
119119
{
120120
uindex_t t_dummy;
121-
r_output = MCProperListFirstIndexOfList(p_target, p_needle, 0, t_dummy);
121+
r_output = MCProperListFirstOffsetOfList(p_target, p_needle, 0, t_dummy);
122122
}
123123

124124
extern "C" MC_DLLEXPORT void MCListFetchElementOf(index_t p_index, MCProperListRef p_target, MCValueRef& r_output)

0 commit comments

Comments
 (0)