[Pcre-svn] [1108] code/trunk: pcre32: Remove unused error co…

Startseite
Nachricht löschen
Autor: Subversion repository
Datum:  
To: pcre-svn
Betreff: [Pcre-svn] [1108] code/trunk: pcre32: Remove unused error code
Revision: 1108
          http://vcs.pcre.org/viewvc?view=rev&revision=1108
Author:   chpe
Date:     2012-10-16 16:56:55 +0100 (Tue, 16 Oct 2012)


Log Message:
-----------
pcre32: Remove unused error code

PCRE_ERROR_BADUTF32_OFFSET can't actually occur, so remove it.

Modified Paths:
--------------
    code/trunk/doc/pcre32.3
    code/trunk/pcre.h.in


Modified: code/trunk/doc/pcre32.3
===================================================================
--- code/trunk/doc/pcre32.3    2012-10-16 15:56:51 UTC (rev 1107)
+++ code/trunk/doc/pcre32.3    2012-10-16 15:56:55 UTC (rev 1108)
@@ -307,7 +307,7 @@
 .SH "ERROR NAMES"
 .rs
 .sp
-The error PCRE_ERROR_BADUTF32_OFFSET correspond to its 8-bit counterpart.
+The error PCRE_ERROR_BADUTF32 corresponds to its 8-bit counterpart.
 The error PCRE_ERROR_BADMODE is given when a compiled
 pattern is passed to a function that processes patterns in the other
 mode, for example, if a pattern compiled with \fBpcre_compile()\fP is passed to


Modified: code/trunk/pcre.h.in
===================================================================
--- code/trunk/pcre.h.in    2012-10-16 15:56:51 UTC (rev 1107)
+++ code/trunk/pcre.h.in    2012-10-16 15:56:55 UTC (rev 1108)
@@ -161,9 +161,8 @@
 #define PCRE_ERROR_BADUTF8         (-10)  /* Same for 8/16/32 */
 #define PCRE_ERROR_BADUTF16        (-10)  /* Same for 8/16/32 */
 #define PCRE_ERROR_BADUTF32        (-10)  /* Same for 8/16/32 */
-#define PCRE_ERROR_BADUTF8_OFFSET  (-11)  /* Same for 8/16/32 */
-#define PCRE_ERROR_BADUTF16_OFFSET (-11)  /* Same for 8/16/32 */
-#define PCRE_ERROR_BADUTF32_OFFSET (-11)  /* Same for 8/16/32 */
+#define PCRE_ERROR_BADUTF8_OFFSET  (-11)  /* Same for 8/16 */
+#define PCRE_ERROR_BADUTF16_OFFSET (-11)  /* Same for 8/16 */
 #define PCRE_ERROR_PARTIAL         (-12)
 #define PCRE_ERROR_BADPARTIAL      (-13)
 #define PCRE_ERROR_INTERNAL        (-14)