diff options
| author | Dmitry Antipov | 2012-06-25 18:07:04 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2012-06-25 18:07:04 +0400 |
| commit | 3511c7847949ea1d53a32cf9327c0e02d2191f3d (patch) | |
| tree | 9370b7a199654a28179375c254220a304e7bc530 /src | |
| parent | fb7da12e7560ce31fc88f829cff94723c3bbc5fa (diff) | |
| download | emacs-3511c7847949ea1d53a32cf9327c0e02d2191f3d.tar.gz emacs-3511c7847949ea1d53a32cf9327c0e02d2191f3d.zip | |
* configure.in (AC_CHECK_FUNCS): Detect library functions
strcasecmp and strncasecmp.
* lib-src/etags.c (etags_strcasecmp, etags_strncasecmp): Define to
library functions strcasecmp and strncasecmp if available.
* lwlib/lwlib.c (my_strcasecmp): Rename to lwlib_strcasecmp, which
may be defined to library function strcasecmp if available.
* src/dispextern.c (xstrcasecmp): Define to library function
strcasecmp if available.
* src/xfaces.c: Do not use xstrcasecmp if strcasecmp is available.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/dispextern.h | 4 | ||||
| -rw-r--r-- | src/xfaces.c | 3 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 48eb04ca50d..a8c8b84b34a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-06-25 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * dispextern.c (xstrcasecmp): Define to library function | ||
| 4 | strcasecmp if available. | ||
| 5 | * xfaces.c: Do not use xstrcasecmp if strcasecmp is available. | ||
| 6 | |||
| 1 | 2012-06-25 Andreas Schwab <schwab@linux-m68k.org> | 7 | 2012-06-25 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 8 | ||
| 3 | * keyboard.c (menu_bar_items, menu_bar_item, read_key_sequence): | 9 | * keyboard.c (menu_bar_items, menu_bar_item, read_key_sequence): |
diff --git a/src/dispextern.h b/src/dispextern.h index 63c23b8962f..d541d181fbf 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -3216,7 +3216,11 @@ void unload_color (struct frame *, unsigned long); | |||
| 3216 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, | 3216 | char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, |
| 3217 | int *); | 3217 | int *); |
| 3218 | void prepare_face_for_display (struct frame *, struct face *); | 3218 | void prepare_face_for_display (struct frame *, struct face *); |
| 3219 | #ifdef HAVE_STRCASECMP | ||
| 3220 | #define xstrcasecmp(x,y) strcasecmp ((x), (y)) | ||
| 3221 | #else | ||
| 3219 | int xstrcasecmp (const char *, const char *); | 3222 | int xstrcasecmp (const char *, const char *); |
| 3223 | #endif | ||
| 3220 | int lookup_named_face (struct frame *, Lisp_Object, int); | 3224 | int lookup_named_face (struct frame *, Lisp_Object, int); |
| 3221 | int lookup_basic_face (struct frame *, int); | 3225 | int lookup_basic_face (struct frame *, int); |
| 3222 | int smaller_face (struct frame *, int, int); | 3226 | int smaller_face (struct frame *, int, int); |
diff --git a/src/xfaces.c b/src/xfaces.c index 32d1499b85a..f2cd0eb6af8 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -716,6 +716,7 @@ x_free_gc (struct frame *f, GC gc) | |||
| 716 | } | 716 | } |
| 717 | #endif /* HAVE_NS */ | 717 | #endif /* HAVE_NS */ |
| 718 | 718 | ||
| 719 | #ifndef HAVE_STRCASECMP | ||
| 719 | /* Like strcasecmp/stricmp. Used to compare parts of font names which | 720 | /* Like strcasecmp/stricmp. Used to compare parts of font names which |
| 720 | are in ISO8859-1. */ | 721 | are in ISO8859-1. */ |
| 721 | 722 | ||
| @@ -737,7 +738,7 @@ xstrcasecmp (const char *s1, const char *s2) | |||
| 737 | return *s2 == 0 ? 0 : -1; | 738 | return *s2 == 0 ? 0 : -1; |
| 738 | return 1; | 739 | return 1; |
| 739 | } | 740 | } |
| 740 | 741 | #endif /* HAVE_STRCASECMP */ | |
| 741 | 742 | ||
| 742 | /* If FRAME is nil, return a pointer to the selected frame. | 743 | /* If FRAME is nil, return a pointer to the selected frame. |
| 743 | Otherwise, check that FRAME is a live frame, and return a pointer | 744 | Otherwise, check that FRAME is a live frame, and return a pointer |