Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New perls #130

Merged
merged 2 commits into from
Feb 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Encode.xs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ strict_utf8(pTHX_ SV* sv)
}

/* Modern perls have the capability to do this more efficiently and portably */
#ifdef is_utf8_string_loc_flags
#ifdef utf8n_to_uvchr_msgs
# define CAN_USE_BASE_PERL
#endif

Expand Down Expand Up @@ -533,7 +533,7 @@ process_utf8(pTHX_ SV* dst, U8* s, U8* e, SV *check_sv,

#else /* Use code for earlier perls */

PERL_UNUSED_VAR(flags);
((void)sizeof(flags)); /* Avoid compiler warning */

if (UTF8_IS_INVARIANT(*s)) {
*d++ = *s++;
Expand Down