[Pcre-svn] [341] code/trunk/src/pcre2_error.c: Remove the te…

トップ ページ
このメッセージを削除
著者: Subversion repository
日付:  
To: pcre-svn
題目: [Pcre-svn] [341] code/trunk/src/pcre2_error.c: Remove the text for an error that is no longer used.
Revision: 341
          http://www.exim.org/viewvc/pcre2?view=rev&revision=341
Author:   ph10
Date:     2015-08-10 17:17:10 +0100 (Mon, 10 Aug 2015)
Log Message:
-----------
Remove the text for an error that is no longer used.


Modified Paths:
--------------
    code/trunk/src/pcre2_error.c


Modified: code/trunk/src/pcre2_error.c
===================================================================
--- code/trunk/src/pcre2_error.c    2015-08-10 12:28:27 UTC (rev 340)
+++ code/trunk/src/pcre2_error.c    2015-08-10 16:17:10 UTC (rev 341)
@@ -51,11 +51,10 @@
 /* The texts of compile-time error messages. Compile-time error numbers start
 at COMPILE_ERROR_BASE (100).


-Do not ever re-use any error number, because they are documented. Always add a
-new error instead. This used to be a table of strings, but in order to reduce
-the number of relocations needed when a shared library is loaded dynamically,
-it is now one long string. We cannot use a table of offsets, because the
-lengths of inserts such as XSTRING(MAX_NAME_SIZE) are not known. Instead,
+This used to be a table of strings, but in order to reduce the number of
+relocations needed when a shared library is loaded dynamically, it is now one
+long string. We cannot use a table of offsets, because the lengths of inserts
+such as XSTRING(MAX_NAME_SIZE) are not known. Instead,
pcre2_get_error_message() counts through to the one it wants - this isn't a
performance issue because these strings are used only when there is an error.

@@ -154,7 +153,7 @@
/* 70 */
"internal error: unknown opcode in find_fixedlength()\0"
"\\N is not supported in a class\0"
- "too many forward references\0"
+ "SPARE ERROR\0"
"disallowed Unicode code point (>= 0xd800 && <= 0xdfff)\0"
"using UTF is disabled by the application\0"
/* 75 */