Skip to content

Commit

Permalink
rocket/char_traits: Remove
Browse files Browse the repository at this point in the history
Signed-off-by: LIU Hao <[email protected]>
  • Loading branch information
lhmouse committed Apr 16, 2023
1 parent ab3dd7c commit ef0e606
Show file tree
Hide file tree
Showing 29 changed files with 4,004 additions and 2,716 deletions.
2 changes: 1 addition & 1 deletion asteria/library/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ std_string_compare(V_string text1, V_string text2, optV_integer length)
return 0;

// Compare two substrings.
return text1.compare(0, static_cast<size_t>(*length), text2, 0, static_cast<size_t>(*length));
return text1.substr_compare(0, static_cast<size_t>(*length), text2, 0, static_cast<size_t>(*length));
}

V_boolean
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ AS_VAR_SET([abi_minor], [0])
AS_VAR_SET([abi_suffix], [beta.0])

## Check for required libraries
AC_CHECK_HEADERS([uchar.h])
AC_CHECK_LIB([rt], [clock_gettime], [], [AC_MSG_WARN(librt not found; proceeding without it)])
AC_CHECK_LIB([z], [crc32], [], [AC_MSG_ERROR(zlib not found)])
AC_CHECK_LIB([pcre2-8], [pcre2_compile_8], [], [AC_MSG_ERROR(PCRE2 not found)])
Expand Down
2 changes: 1 addition & 1 deletion rocket/Makefile.inc.am
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ nobase_include_HEADERS += \
%reldir%/unique_posix_dir.hpp \
%reldir%/unique_posix_fd.hpp \
%reldir%/reference_counter.hpp \
%reldir%/char_traits.hpp \
%reldir%/cow_string.hpp \
%reldir%/cow_vector.hpp \
%reldir%/cow_hashmap.hpp \
Expand All @@ -45,6 +44,7 @@ nobase_include_HEADERS += \
%reldir%/array.hpp \
%reldir%/reference_wrapper.hpp \
%reldir%/linear_buffer.hpp \
%reldir%/tinybuf_base.hpp \
%reldir%/tinybuf.hpp \
%reldir%/tinybuf_str.hpp \
%reldir%/tinybuf_file.hpp \
Expand Down
Loading

0 comments on commit ef0e606

Please sign in to comment.