bool
Perl_grok_bslash_o(pTHX_ char **s, const char * const send, UV *uv,
- const char** error_msg,
+ const char** message,
const bool output_warning, const bool strict,
const bool UTF)
{
* range *s..send-1
* uv points to a UV that will hold the output value, valid only if the
* return from the function is TRUE
- * error_msg is a pointer that will be set to an internal buffer giving an
+ * message is a pointer that will be set to an internal buffer giving an
* error message upon failure (the return is FALSE). Untouched if
* function succeeds
* output_warning says whether to output any warning messages, or suppress
(*s)++;
if (send <= *s || **s != '{') {
- *error_msg = "Missing braces on \\o{}";
+ *message = "Missing braces on \\o{}";
return FALSE;
}
while (isOCTAL(**s)) { /* Position beyond the legal digits */
(*s)++;
}
- *error_msg = "Missing right brace on \\o{";
+ *message = "Missing right brace on \\o{";
return FALSE;
}
numbers_len = e - *s;
if (numbers_len == 0) {
(*s)++; /* Move past the } */
- *error_msg = "Empty \\o{}";
+ *message = "Empty \\o{}";
return FALSE;
}
if (strict) {
*s += numbers_len;
*s += (UTF) ? UTF8_SAFE_SKIP(*s, send) : 1;
- *error_msg = "Non-octal character";
+ *message = "Non-octal character";
return FALSE;
}
else if (output_warning) {
bool
Perl_grok_bslash_x(pTHX_ char **s, const char * const send, UV *uv,
- const char** error_msg,
+ const char** message,
const bool output_warning, const bool strict,
const bool UTF)
{
* range *s..send-1
* uv points to a UV that will hold the output value, valid only if the
* return from the function is TRUE
- * error_msg is a pointer that will be set to an internal buffer giving an
+ * message is a pointer that will be set to an internal buffer giving an
* error message upon failure (the return is FALSE). Untouched if
* function succeeds
* output_warning says whether to output any warning messages, or suppress
if (send <= *s) {
if (strict) {
- *error_msg = "Empty \\x";
+ *message = "Empty \\x";
return FALSE;
}
if (strict && len != 2) {
if (len < 2) {
*s += (UTF) ? UTF8_SAFE_SKIP(*s, send) : 1;
- *error_msg = "Non-hex character";
+ *message = "Non-hex character";
}
else {
- *error_msg = "Use \\x{...} for more than two hex characters";
+ *message = "Use \\x{...} for more than two hex characters";
}
return FALSE;
}
/* XXX The corresponding message above for \o is just '\\o{'; other
* messages for other constructs include the '}', so are inconsistent.
*/
- *error_msg = "Missing right brace on \\x{}";
+ *message = "Missing right brace on \\x{}";
return FALSE;
}
if (numbers_len == 0) {
if (strict) {
(*s)++; /* Move past the } */
- *error_msg = "Empty \\x{}";
+ *message = "Empty \\x{}";
return FALSE;
}
*s = e + 1;
if (strict && numbers_len != (STRLEN) (e - *s)) {
*s += numbers_len;
*s += (UTF) ? UTF8_SAFE_SKIP(*s, send) : 1;
- *error_msg = "Non-hex character";
+ *message = "Non-hex character";
return FALSE;
}
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_GROK_BSLASH_C
-PERL_CALLCONV bool Perl_grok_bslash_o(pTHX_ char** s, const char* const send, UV* uv, const char** error_msg, const bool output_warning, const bool strict, const bool utf8)
+PERL_CALLCONV bool Perl_grok_bslash_o(pTHX_ char** s, const char* const send, UV* uv, const char** message, const bool output_warning, const bool strict, const bool utf8)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_GROK_BSLASH_O \
- assert(s); assert(send); assert(uv); assert(error_msg)
+ assert(s); assert(send); assert(uv); assert(message)
-PERL_CALLCONV bool Perl_grok_bslash_x(pTHX_ char** s, const char* const send, UV* uv, const char** error_msg, const bool output_warning, const bool strict, const bool utf8)
+PERL_CALLCONV bool Perl_grok_bslash_x(pTHX_ char** s, const char* const send, UV* uv, const char** message, const bool output_warning, const bool strict, const bool utf8)
__attribute__warn_unused_result__;
#define PERL_ARGS_ASSERT_GROK_BSLASH_X \
- assert(s); assert(send); assert(uv); assert(error_msg)
+ assert(s); assert(send); assert(uv); assert(message)
#ifndef PERL_NO_INLINE_FUNCTIONS
PERL_STATIC_INLINE I32 S_regcurly(const char *s)