[前][次][番号順一覧][スレッド一覧]

ruby-changes:52883

From: nobu <ko1@a...>
Date: Tue, 16 Oct 2018 18:11:01 +0900 (JST)
Subject: [ruby-changes:52883] nobu:r65095 (trunk): regerror.c: lenghten MAX_ERROR_PAR_LEN to contain old property names

nobu	2018-10-16 18:10:56 +0900 (Tue, 16 Oct 2018)

  New Revision: 65095

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65095

  Log:
    regerror.c: lenghten MAX_ERROR_PAR_LEN to contain old property names

  Modified files:
    trunk/regerror.c
Index: regerror.c
===================================================================
--- regerror.c	(revision 65094)
+++ regerror.c	(revision 65095)
@@ -242,8 +242,8 @@ static int to_ascii(OnigEncoding enc, UC https://github.com/ruby/ruby/blob/trunk/regerror.c#L242
 }
 
 
-/* for ONIG_MAX_ERROR_MESSAGE_LEN */
-#define MAX_ERROR_PAR_LEN   30
+/* < ONIG_MAX_ERROR_MESSAGE_LEN - max length of messages with %n */
+#define MAX_ERROR_PAR_LEN   50
 
 extern int
 onig_error_code_to_str(UChar* s, OnigPosition code, ...)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]