emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master dcfcaf4: ; Don't use non-ASCII quotes in comments


From: Eli Zaretskii
Subject: [Emacs-diffs] master dcfcaf4: ; Don't use non-ASCII quotes in comments
Date: Sun, 30 Jul 2017 15:44:06 -0400 (EDT)

branch: master
commit dcfcaf40d577808d640016c886d4fae7280a7fd5
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    ; Don't use non-ASCII quotes in comments
    
    * src/regex.h:
    * src/regex.c (re_wctype_parse): Don't use non-ASCII quotes in
    comments.
---
 src/regex.c | 8 ++++----
 src/regex.h | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/regex.c b/src/regex.c
index fb48765..0dbb473 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -1942,7 +1942,7 @@ struct range_table_work_area
    returned.  If name is not a valid character class name zero, or RECC_ERROR,
    is returned.
 
-   Otherwise, if *strp doesn’t begin with "[:name:]", -1 is returned.
+   Otherwise, if *strp doesn't begin with "[:name:]", -1 is returned.
 
    The function can be used on ASCII and multibyte (UTF-8-encoded) strings.
  */
@@ -1954,8 +1954,8 @@ re_wctype_parse (const unsigned char **strp, unsigned 
limit)
   if (limit < 4 || beg[0] != '[' || beg[1] != ':')
     return -1;
 
-  beg += 2;  /* skip opening ‘[:’ */
-  limit -= 3;  /* opening ‘[:’ and half of closing ‘:]’; --limit handles rest 
*/
+  beg += 2;  /* skip opening "[:" */
+  limit -= 3;  /* opening "[:" and half of closing ":]"; --limit handles rest 
*/
   for (it = beg; it[0] != ':' || it[1] != ']'; ++it)
     if (!--limit)
       return -1;
@@ -1985,7 +1985,7 @@ re_wctype_parse (const unsigned char **strp, unsigned 
limit)
            2 [:cntrl:]
            1 [:ff:]
 
-     If you update this list, consider also updating chain of or’ed conditions
+     If you update this list, consider also updating chain of or'ed conditions
      in execute_charset function.
    */
 
diff --git a/src/regex.h b/src/regex.h
index 1d439de..5e3a797 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -21,7 +21,7 @@
 #define _REGEX_H 1
 
 #if defined emacs && (defined _REGEX_RE_COMP || defined _LIBC)
-/* We’re not defining re_set_syntax and using a different prototype of
+/* We're not defining re_set_syntax and using a different prototype of
    re_compile_pattern when building Emacs so fail compilation early with
    a (somewhat helpful) error message when conflict is detected. */
 # error "_REGEX_RE_COMP nor _LIBC can be defined if emacs is defined."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]