aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-06-10 06:19:30 +0000
committerJim Blandy1993-06-10 06:19:30 +0000
commit6c10d0cda588d97047d63376c572af3d76ec2f17 (patch)
tree8e39e2077a12e59cddccc9c0026a28b21d76797f /src
parentdea95cc23085d9e9609e21dd593f781b68e1d997 (diff)
downloademacs-6c10d0cda588d97047d63376c572af3d76ec2f17.tar.gz
emacs-6c10d0cda588d97047d63376c572af3d76ec2f17.zip
* filelock.c: Test HAVE_LONG_FILE_NAMES, not SHORT_FILE_NAMES, to
interface nicely with autoconf.
Diffstat (limited to 'src')
-rw-r--r--src/filelock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 5b31acbcb16..a5b9fd223c8 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -67,7 +67,7 @@ char *superlock_path;
67/* Set LOCK to the name of the lock file for the filename FILE. 67/* Set LOCK to the name of the lock file for the filename FILE.
68 char *LOCK; Lisp_Object FILE; */ 68 char *LOCK; Lisp_Object FILE; */
69 69
70#ifdef SHORT_FILE_NAMES 70#ifndef HAVE_LONG_FILE_NAMES
71 71
72#define MAKE_LOCK_PATH(lock, file) \ 72#define MAKE_LOCK_PATH(lock, file) \
73 (lock = (char *) alloca (14 + strlen (lock_path) + 1), \ 73 (lock = (char *) alloca (14 + strlen (lock_path) + 1), \
@@ -107,7 +107,7 @@ fill_in_lock_short_file_name (lockfile, fn)
107 crc.byte[4], crc.byte[5], crc.byte[6]); 107 crc.byte[4], crc.byte[5], crc.byte[6]);
108} 108}
109 109
110#else /* !defined SHORT_FILE_NAMES */ 110#else /* defined HAVE_LONG_FILE_NAMES */
111 111
112#define MAKE_LOCK_PATH(lock, file) \ 112#define MAKE_LOCK_PATH(lock, file) \
113 (lock = (char *) alloca (XSTRING (file)->size + strlen (lock_path) + 1), \ 113 (lock = (char *) alloca (XSTRING (file)->size + strlen (lock_path) + 1), \
@@ -132,7 +132,7 @@ fill_in_lock_file_name (lockfile, fn)
132 *p = '!'; 132 *p = '!';
133 } 133 }
134} 134}
135#endif /* SHORT_FILE_NAMES */ 135#endif /* !defined HAVE_LONG_FILE_NAMES */
136 136
137static Lisp_Object 137static Lisp_Object
138lock_file_owner_name (lfname) 138lock_file_owner_name (lfname)
@@ -169,7 +169,7 @@ lock_file_owner_name (lfname)
169 and put in the Emacs lock directory. */ 169 and put in the Emacs lock directory. */
170/* (ie., /ka/king/junk.tex -> /!/!ka!king!junk.tex). */ 170/* (ie., /ka/king/junk.tex -> /!/!ka!king!junk.tex). */
171 171
172/* If SHORT_FILE_NAMES is defined, the lock file name is the hex 172/* If HAVE_LONG_FILE_NAMES is not defined, the lock file name is the hex
173 representation of a 14-bytes CRC generated from the file name 173 representation of a 14-bytes CRC generated from the file name
174 and put in the Emacs lock directory (not very nice, but it works). 174 and put in the Emacs lock directory (not very nice, but it works).
175 (ie., /ka/king/junk.tex -> /!/ec92d3ed24a8f0). */ 175 (ie., /ka/king/junk.tex -> /!/ec92d3ed24a8f0). */