Mercurial > hg > xemacs-beta
annotate src/s/gnu.h @ 5211:cdca98f2d36f
Move `default-file-system-ignore-case' to C; fix bug in directory hash tables
src/ChangeLog addition:
2010-05-16 Aidan Kehoe <kehoea@parhasard.net>
Move `default-file-system-ignore-case' to C; pay attention to it
in creating the directory hash tables for #'locate-file. Fix a bug
where #'eq was specified when creating directory hash tables in
dired.c.
* config.h.in (DEFAULT_FILE_SYSTEM_IGNORE_CASE): This is 1 on
Darwin.
* dired.c (make_directory_hash_table): If
#'file-system-ignore-case-p gives non-nil for a directory, created
the associated hash table with #'equalp as its test. Never use
#'eq as a directory hash table test.
* fileio.c (vars_of_fileio):
Move `default-file-system-ignore-case' here, so it can be a
constant boolean reflecting a compile-time #define.
* lisp.h: Update the declaration of make_directory_hash_table;
remove the declaration of wasteful_word_to_lisp, which was
#ifdef'd out.
* lread.c (Flocate_file): Take out a debugging statement from
this function.
(locate_file_refresh_hashing): Call make_directory_hash_table with
a Lisp string, not an Ibyte pointer.
(vars_of_lread): If DEFAULT_FILE_SYSTEM_IGNORE_CASE is defined,
use #'equalp as the hash table test for locate-file-hash-table,
not #'equal.
* s/win32-common.h (DEFAULT_FILE_SYSTEM_IGNORE_CASE):
Case should normally be ignored in file names on Win32.
lisp/ChangeLog addition:
2010-05-16 Aidan Kehoe <kehoea@parhasard.net>
* files.el (default-file-system-ignore-case):
Move this to fileio.c, where it's a constant boolean variable
initialised at dump time.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sun, 16 May 2010 12:33:21 +0100 |
| parents | 023b83f4e54b |
| children | 308d34e9f07d 861f2601a38b |
| rev | line source |
|---|---|
| 613 | 1 /* Definitions file for XEmacs running on the GNU Hurd. |
| 428 | 2 Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. |
| 3 | |
| 613 | 4 This file is part of XEmacs. |
| 428 | 5 |
| 613 | 6 XEmacs is free software; you can redistribute it and/or modify |
| 428 | 7 it under the terms of the GNU General Public License as published by |
| 8 the Free Software Foundation; either version 2, or (at your option) | |
| 9 any later version. | |
| 10 | |
| 613 | 11 XEmacs is distributed in the hope that it will be useful, |
| 428 | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 GNU General Public License for more details. | |
| 15 | |
| 16 You should have received a copy of the GNU General Public License | |
| 17 along with XEmacs; see the file COPYING. If not, write to | |
| 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
| 19 Boston, MA 02111-1307, USA. */ | |
| 20 | |
| 21 /* Synched up with: FSF 19.31. */ | |
| 22 | |
| 23 /* Get most of the stuff from bsd4.3 */ | |
| 24 #include "bsd4-3.h" | |
| 25 | |
| 26 /* For mem-limits.h. */ | |
| 27 #define BSD4_2 | |
| 28 | |
| 29 #undef SYSTEM_TYPE | |
| 30 #define SYSTEM_TYPE "gnu" | |
| 31 | |
| 32 #define LIBS_DEBUG | |
| 33 | |
| 34 /* GNU needs its own crt0, and libc defines data_start. */ | |
| 35 #define ORDINARY_LINK | |
| 36 #define DATA_START ({ extern int data_start; (char *) &data_start; }) | |
| 37 | |
| 38 /* GNU now always uses the ELF format. */ | |
| 39 #define UNEXEC "unexelf.o" | |
| 40 | |
| 41 /* Some losing code fails to include this and then assumes | |
| 42 that because it is braindead that O_RDONLY==0. */ | |
| 43 #ifndef NOT_C_CODE | |
| 44 #include <fcntl.h> | |
| 45 #endif |
