[pcre-dev] Patch to fix typos

Kezdőlap
Üzenet törlése
Szerző: Stepan Kasal
Dátum:  
Címzett: pcre-dev
Tárgy: [pcre-dev] Patch to fix typos
Hello,
attached please find a patch to fix a few typos.

Stepan Kasal
2007-11-19 Stepan Kasal <skasal@???>

    * Fix typos: s/alphameric/alphanumeric/


Index: pcre_internal.h
===================================================================
--- pcre_internal.h    (revision 273)
+++ pcre_internal.h    (working copy)
@@ -1037,7 +1037,7 @@
 #define ctype_letter  0x02
 #define ctype_digit   0x04
 #define ctype_xdigit  0x08
-#define ctype_word    0x10   /* alphameric or '_' */
+#define ctype_word    0x10   /* alphanumeric or '_' */
 #define ctype_meta    0x80   /* regexp meta char or zero (end pattern) */


 /* Offsets for the bitmap tables in pcre_cbits. Each table contains a set
Index: pcre_compile.c
===================================================================
--- pcre_compile.c    (revision 273)
+++ pcre_compile.c    (working copy)
@@ -498,16 +498,16 @@


if (c == 0) *errorcodeptr = ERR1;

-/* Non-alphamerics are literals. For digits or letters, do an initial lookup in
+/* Non-alphanumerics are literals. For digits or letters, do an initial lookup in
a table. A non-zero result is something that can be returned immediately.
Otherwise further processing may be required. */

 #ifndef EBCDIC  /* ASCII coding */
-else if (c < '0' || c > 'z') {}                           /* Not alphameric */
+else if (c < '0' || c > 'z') {}                           /* Not alphanumeric */
 else if ((i = escapes[c - '0']) != 0) c = i;


 #else           /* EBCDIC coding */
-else if (c < 'a' || (ebcdic_chartab[c] & 0x0E) == 0) {}   /* Not alphameric */
+else if (c < 'a' || (ebcdic_chartab[c] & 0x0E) == 0) {}   /* Not alphanumeric */
 else if ((i = escapes[c - 0x48]) != 0)  c = i;
 #endif


@@ -724,7 +724,7 @@
     break;


     /* PCRE_EXTRA enables extensions to Perl in the matter of escapes. Any
-    other alphameric following \ is an error if PCRE_EXTRA was set; otherwise,
+    other alphanumeric following \ is an error if PCRE_EXTRA was set; otherwise,
     for Perl compatibility, it is a literal. This code looks a bit odd, but
     there used to be some cases other than the default, and there may be again
     in future, so I haven't "optimized" it. */
Index: pcretest.c
===================================================================
--- pcretest.c    (revision 273)
+++ pcretest.c    (working copy)
@@ -1098,7 +1098,7 @@


   if (isalnum(delimiter) || delimiter == '\\')
     {
-    fprintf(outfile, "** Delimiter must not be alphameric or \\\n");
+    fprintf(outfile, "** Delimiter must not be alphanumeric or \\\n");
     goto SKIP_DATA;
     }