aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorEli Zaretskii2004-04-26 10:49:11 +0000
committerEli Zaretskii2004-04-26 10:49:11 +0000
commitb09c560845ae108ac90675000eeacc2add6eb2b5 (patch)
treeb18f7a5ad968a5767df4000ab60a6134f818da47 /lib-src
parent9eca7c03d8fd9f2aa8023396c5c9e06a02909722 (diff)
downloademacs-b09c560845ae108ac90675000eeacc2add6eb2b5.tar.gz
emacs-b09c560845ae108ac90675000eeacc2add6eb2b5.zip
(IS_DIRECTORY_SEP): New macro.
(put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP instead of a literal '/'.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog6
-rw-r--r--lib-src/make-docfile.c16
2 files changed, 17 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index eaf07239901..e2fcc6cc939 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,9 @@
12004-04-26 Eli Zaretskii <eliz@gnu.org>
2
3 * make-docfile.c (IS_DIRECTORY_SEP): New macro.
4 (put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP
5 instead of a literal '/'.
6
12004-04-23 Juanma Barranquero <lektu@terra.es> 72004-04-23 Juanma Barranquero <lektu@terra.es>
2 8
3 * makefile.w32-in: Add "-*- makefile -*-" mode tag. 9 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index ba73f5800a7..1c0bc559225 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -60,6 +60,10 @@ Boston, MA 02111-1307, USA. */
60#define READ_BINARY "r" 60#define READ_BINARY "r"
61#endif /* not DOS_NT */ 61#endif /* not DOS_NT */
62 62
63#ifndef IS_DIRECTORY_SEP
64#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/')
65#endif
66
63int scan_file (); 67int scan_file ();
64int scan_lisp_file (); 68int scan_lisp_file ();
65int scan_c_file (); 69int scan_c_file ();
@@ -183,11 +187,13 @@ void
183put_filename (filename) 187put_filename (filename)
184 char *filename; 188 char *filename;
185{ 189{
186 char *tmp = filename; 190 char *tmp;
187 int len; 191
188 192 for (tmp = filename; *tmp; tmp++)
189 while ((tmp = index (filename, '/'))) 193 {
190 filename = tmp + 1; 194 if (IS_DIRECTORY_SEP(*tmp))
195 filename = tmp + 1;
196 }
191 197
192 putc (037, outfile); 198 putc (037, outfile);
193 putc ('S', outfile); 199 putc ('S', outfile);