diff options
| author | Paul Eggert | 2012-08-16 14:58:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-16 14:58:44 -0700 |
| commit | 620f13b0612810324592ab2d2b4e5a5dab27f981 (patch) | |
| tree | 844d21f0c90ede1887eb699058398f5f9a81f069 /src/doc.c | |
| parent | 85c2386bbe5d7957cf5750b6f96b2868f83eedf4 (diff) | |
| download | emacs-620f13b0612810324592ab2d2b4e5a5dab27f981.tar.gz emacs-620f13b0612810324592ab2d2b4e5a5dab27f981.zip | |
Use ASCII tests for character types.
* admin/merge-gnulib (GNULIB_MODULES): Add c-ctype.
* lwlib/lwlib-Xaw.c, lwlib/lwlib.c, lwlib/xlwmenu.c:
Don't include <ctype.h>; no longer needed.
* lwlib/lwlib-Xaw.c (openFont):
* lwlib/xlwmenu.c (openXftFont): Test just for ASCII digits.
* src/category.c, src/dispnew.c, src/doprnt.c, src/editfns.c, src/syntax.c
* src/term.c, src/xfns.c, src/xterm.c:
Don't include <ctype.h>; was not needed.
* src/charset.c, src/doc.c, src/fileio.c, src/font.c, src/frame.c:
* src/gtkutil.c, src/image.c, src/sysdep.c, src/xfaces.c:
Include <c-ctype.h> instead of <ctype.h>.
* src/nsterm.m: Include <c-ctype.h>.
* src/charset.c (read_hex):
* src/doc.c (Fsnarf_documentation):
* src/fileio.c (IS_DRIVE) [WINDOWSNT]:
(DRIVE_LETTER) [DOS_NT]:
(Ffile_name_directory, Fexpand_file_name)
(Fsubstitute_in_file_name):
* src/font.c (font_parse_xlfd, font_parse_fcname):
* src/frame.c (x_set_font_backend):
* src/gtkutil.c (xg_get_font):
* src/image.c (xbm_scan, xpm_scan, pbm_scan_number):
* src/nsimage.m (hexchar):
* src/nsterm.m (ns_xlfd_to_fontname):
* src/sysdep.c (system_process_attributes):
* src/xfaces.c (hash_string_case_insensitive):
Use C-locale tests instead of locale-specific tests for character
types, since we want the ASCII interpretation here, not the
interpretation suitable for whatever happens to be the current locale.
Diffstat (limited to 'src/doc.c')
| -rw-r--r-- | src/doc.c | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -22,11 +22,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 22 | 22 | ||
| 23 | #include <sys/types.h> | 23 | #include <sys/types.h> |
| 24 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ | 24 | #include <sys/file.h> /* Must be after sys/types.h for USG*/ |
| 25 | #include <ctype.h> | ||
| 26 | #include <setjmp.h> | 25 | #include <setjmp.h> |
| 27 | #include <fcntl.h> | 26 | #include <fcntl.h> |
| 28 | #include <unistd.h> | 27 | #include <unistd.h> |
| 29 | 28 | ||
| 29 | #include <c-ctype.h> | ||
| 30 | |||
| 30 | #include "lisp.h" | 31 | #include "lisp.h" |
| 31 | #include "character.h" | 32 | #include "character.h" |
| 32 | #include "buffer.h" | 33 | #include "buffer.h" |
| @@ -597,9 +598,9 @@ the same file name is found in the `doc-directory'. */) | |||
| 597 | { | 598 | { |
| 598 | ptrdiff_t len; | 599 | ptrdiff_t len; |
| 599 | 600 | ||
| 600 | while (*beg && isspace (*beg)) ++beg; | 601 | while (*beg && c_isspace (*beg)) ++beg; |
| 601 | 602 | ||
| 602 | for (end = beg; *end && ! isspace (*end); ++end) | 603 | for (end = beg; *end && ! c_isspace (*end); ++end) |
| 603 | if (*end == '/') beg = end+1; /* skip directory part */ | 604 | if (*end == '/') beg = end+1; /* skip directory part */ |
| 604 | 605 | ||
| 605 | len = end - beg; | 606 | len = end - beg; |