Skip to content

Commit

Permalink
Re-implement Sequence.bfind using new default API
Browse files Browse the repository at this point in the history
  • Loading branch information
GrieferAtWork committed May 20, 2024
1 parent b5626c7 commit 2503930
Show file tree
Hide file tree
Showing 20 changed files with 1,597 additions and 1,521 deletions.
5 changes: 1 addition & 4 deletions .vs/deemon-v141.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,11 @@
<ClInclude Include="..\src\deemon\objects\gc_inspect.h" />
<ClInclude Include="..\src\deemon\objects\int-8bit.h" />
<ClInclude Include="..\src\deemon\objects\int_logic.h" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch.h" />
<ClInclude Include="..\src\deemon\objects\seq\byattr.h" />
<ClInclude Include="..\src\deemon\objects\seq\combinations.h" />
<ClInclude Include="..\src\deemon\objects\seq\concat.h" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-attrproxy-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-bsearch-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-require-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-require-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api.h" />
Expand Down Expand Up @@ -430,7 +428,6 @@
<ClCompile Include="..\src\deemon\objects\rodict.c" />
<ClCompile Include="..\src\deemon\objects\roset.c" />
<ClCompile Include="..\src\deemon\objects\seq.c" />
<ClCompile Include="..\src\deemon\objects\seq\bsearch.c" />
<ClCompile Include="..\src\deemon\objects\seq\byattr.c" />
<ClCompile Include="..\src\deemon\objects\seq\combinations.c" />
<ClCompile Include="..\src\deemon\objects\seq\concat.c" />
Expand Down
15 changes: 3 additions & 12 deletions .vs/deemon-v141.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -696,15 +696,6 @@
<ClInclude Include="..\src\deemon\objects\int_logic.h">
<Filter>src\objects</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch.h">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\byattr.h">
<Filter>src\objects\seq</Filter>
</ClInclude>
Expand All @@ -717,6 +708,9 @@
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-attrproxy-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-bsearch-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-require-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
Expand Down Expand Up @@ -1259,9 +1253,6 @@
<ClCompile Include="..\src\deemon\objects\seq.c">
<Filter>src\objects</Filter>
</ClCompile>
<ClCompile Include="..\src\deemon\objects\seq\bsearch.c">
<Filter>src\objects\seq</Filter>
</ClCompile>
<ClCompile Include="..\src\deemon\objects\seq\byattr.c">
<Filter>src\objects\seq</Filter>
</ClCompile>
Expand Down
5 changes: 1 addition & 4 deletions .vs/deemon-v142.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,11 @@
<ClInclude Include="..\src\deemon\objects\gc_inspect.h" />
<ClInclude Include="..\src\deemon\objects\int-8bit.h" />
<ClInclude Include="..\src\deemon\objects\int_logic.h" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\bsearch.h" />
<ClInclude Include="..\src\deemon\objects\seq\byattr.h" />
<ClInclude Include="..\src\deemon\objects\seq\combinations.h" />
<ClInclude Include="..\src\deemon\objects\seq\concat.h" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-attrproxy-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-bsearch-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-require-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api-require-impl.c.inl" />
<ClInclude Include="..\src\deemon\objects\seq\default-api.h" />
Expand Down Expand Up @@ -430,7 +428,6 @@
<ClCompile Include="..\src\deemon\objects\rodict.c" />
<ClCompile Include="..\src\deemon\objects\roset.c" />
<ClCompile Include="..\src\deemon\objects\seq.c" />
<ClCompile Include="..\src\deemon\objects\seq\bsearch.c" />
<ClCompile Include="..\src\deemon\objects\seq\byattr.c" />
<ClCompile Include="..\src\deemon\objects\seq\combinations.c" />
<ClCompile Include="..\src\deemon\objects\seq\concat.c" />
Expand Down
15 changes: 3 additions & 12 deletions .vs/deemon-v142.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -696,15 +696,6 @@
<ClInclude Include="..\src\deemon\objects\int_logic.h">
<Filter>src\objects</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\bsearch.h">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\byattr.h">
<Filter>src\objects\seq</Filter>
</ClInclude>
Expand All @@ -717,6 +708,9 @@
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-attrproxy-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-bsearch-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
<ClInclude Include="..\src\deemon\objects\seq\default-api-methods-require-impl.c.inl">
<Filter>src\objects\seq</Filter>
</ClInclude>
Expand Down Expand Up @@ -1259,9 +1253,6 @@
<ClCompile Include="..\src\deemon\objects\seq.c">
<Filter>src\objects</Filter>
</ClCompile>
<ClCompile Include="..\src\deemon\objects\seq\bsearch.c">
<Filter>src\objects\seq</Filter>
</ClCompile>
<ClCompile Include="..\src\deemon\objects\seq\byattr.c">
<Filter>src\objects\seq</Filter>
</ClCompile>
Expand Down
28 changes: 16 additions & 12 deletions include/deemon/kos-headers/compiler/pp-generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,24 @@
#endif /* !__PREPROCESSOR_HAVE_STR */

#ifdef __PREPROCESSOR_HAVE_CAT
#define __PP_PRIVATE_CAT2(a, b) a##b
#define __PP_PRIVATE_CAT3(a, b, c) a##b##c
#define __PP_PRIVATE_CAT4(a, b, c, d) a##b##c##d
#define __PP_CAT2(a, b) __PP_PRIVATE_CAT2(a, b)
#define __PP_CAT3(a, b, c) __PP_PRIVATE_CAT3(a, b, c)
#define __PP_CAT4(a, b, c, d) __PP_PRIVATE_CAT4(a, b, c, d)
#define __PP_PRIVATE_CAT2(a, b) a##b
#define __PP_PRIVATE_CAT3(a, b, c) a##b##c
#define __PP_PRIVATE_CAT4(a, b, c, d) a##b##c##d
#define __PP_PRIVATE_CAT5(a, b, c, d, e) a##b##c##d##e
#define __PP_CAT2(a, b) __PP_PRIVATE_CAT2(a, b)
#define __PP_CAT3(a, b, c) __PP_PRIVATE_CAT3(a, b, c)
#define __PP_CAT4(a, b, c, d) __PP_PRIVATE_CAT4(a, b, c, d)
#define __PP_CAT5(a, b, c, d, e) __PP_PRIVATE_CAT5(a, b, c, d, e)
#else /* __PREPROCESSOR_HAVE_CAT */
/* clang-format off */
#define __PP_PRIVATE_CAT2(a, b) a/**/b
#define __PP_PRIVATE_CAT3(a, b, c) a/**/b/**/c
#define __PP_PRIVATE_CAT4(a, b, c, d) a/**/b/**/c/**/d
#define __PP_CAT2(a, b) a/**/b
#define __PP_CAT3(a, b, c) a/**/b/**/c
#define __PP_CAT4(a, b, c, d) a/**/b/**/c/**/d
#define __PP_PRIVATE_CAT2(a, b) a/**/b
#define __PP_PRIVATE_CAT3(a, b, c) a/**/b/**/c
#define __PP_PRIVATE_CAT4(a, b, c, d) a/**/b/**/c/**/d
#define __PP_PRIVATE_CAT5(a, b, c, d, e) a/**/b/**/c/**/d/**/e
#define __PP_CAT2(a, b) a/**/b
#define __PP_CAT3(a, b, c) a/**/b/**/c
#define __PP_CAT4(a, b, c, d) a/**/b/**/c/**/d
#define __PP_CAT5(a, b, c, d, e) a/**/b/**/c/**/d/**/e
/* clang-format on */
#endif /* !__PREPROCESSOR_HAVE_CAT */

Expand Down
1 change: 1 addition & 0 deletions include/deemon/kos-headers/hybrid/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
#define PP_CAT2 __PP_CAT2
#define PP_CAT3 __PP_CAT3
#define PP_CAT4 __PP_CAT4
#define PP_CAT5 __PP_CAT5
#define PP_PRIVATE_MUL8 __PP_PRIVATE_MUL8
#define PP_MUL8 __PP_MUL8

Expand Down
Loading

0 comments on commit 2503930

Please sign in to comment.