ports/lang/node/patches/patch-deps_ada_ada_cpp

67 lines
3 KiB
Text
Raw Normal View History

Index: deps/ada/ada.cpp
--- deps/ada/ada.cpp.orig
+++ deps/ada/ada.cpp
2024-09-19 07:08:57 +00:00
@@ -10486,7 +10486,7 @@ ada_unused std::string get_state(ada::state s) {
return "Special Authority Slashes";
case ada::state::SPECIAL_RELATIVE_OR_AUTHORITY:
return "Special Relative or Authority";
- case ada::state::QUERY:
+ case ada::state::ADAQUERY:
return "Query";
case ada::state::PATH:
return "Path";
2024-09-19 07:08:57 +00:00
@@ -12575,7 +12575,7 @@ result_type parse_url_impl(std::string_view user_input
// state to query state.
if ((input_position != input_size) &&
(url_data[input_position] == '?')) {
- state = ada::state::QUERY;
+ state = ada::state::ADAQUERY;
}
// Otherwise, if c is not the EOF code point:
else if (input_position != input_size) {
2024-09-19 07:08:57 +00:00
@@ -12670,7 +12670,7 @@ result_type parse_url_impl(std::string_view user_input
break;
}
- case ada::state::QUERY: {
+ case ada::state::ADAQUERY: {
ada_log("QUERY ", helpers::substring(url_data, input_position));
2024-09-19 07:08:57 +00:00
if constexpr (store_values) {
// Let queryPercentEncodeSet be the special-query percent-encode set
@@ -12755,7 +12755,7 @@ result_type parse_url_impl(std::string_view user_input
size_t location = view.find('?');
if (location != std::string_view::npos) {
view.remove_suffix(view.size() - location);
- state = ada::state::QUERY;
+ state = ada::state::ADAQUERY;
input_position += location + 1;
} else {
input_position = input_size + 1;
2024-09-19 07:08:57 +00:00
@@ -12810,7 +12810,7 @@ result_type parse_url_impl(std::string_view user_input
// set url's query to the empty string and state to query state.
else if ((input_position != input_size) &&
(url_data[input_position] == '?')) {
- state = ada::state::QUERY;
+ state = ada::state::ADAQUERY;
}
// Otherwise, if c is not the EOF code point:
else if (input_position != input_size) {
2024-09-19 07:08:57 +00:00
@@ -12834,7 +12834,7 @@ result_type parse_url_impl(std::string_view user_input
// Furthermore, we can immediately locate the '?'.
size_t locofquestionmark = view.find('?');
if (locofquestionmark != std::string_view::npos) {
- state = ada::state::QUERY;
+ state = ada::state::ADAQUERY;
view.remove_suffix(view.size() - locofquestionmark);
input_position += locofquestionmark + 1;
} else {
2024-09-19 07:08:57 +00:00
@@ -12996,7 +12996,7 @@ result_type parse_url_impl(std::string_view user_input
// If c is U+003F (?), then set url's query to the empty string and
// state to query state.
if (input_position != input_size && url_data[input_position] == '?') {
- state = ada::state::QUERY;
+ state = ada::state::ADAQUERY;
}
// Otherwise, if c is not the EOF code point:
else if (input_position != input_size) {