(IS_DIRECTORY_SEP): New macro.
(put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP instead of a literal '/'.
This commit is contained in:
parent
9eca7c03d8
commit
b09c560845
2 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-04-26 Eli Zaretskii <eliz@gnu.org>
|
||||
|
||||
* make-docfile.c (IS_DIRECTORY_SEP): New macro.
|
||||
(put_filename): Remove unused variable len. Use IS_DIRECTORY_SEP
|
||||
instead of a literal '/'.
|
||||
|
||||
2004-04-23 Juanma Barranquero <lektu@terra.es>
|
||||
|
||||
* makefile.w32-in: Add "-*- makefile -*-" mode tag.
|
||||
|
|
|
@ -60,6 +60,10 @@ Boston, MA 02111-1307, USA. */
|
|||
#define READ_BINARY "r"
|
||||
#endif /* not DOS_NT */
|
||||
|
||||
#ifndef IS_DIRECTORY_SEP
|
||||
#define IS_DIRECTORY_SEP(_c_) ((_c_) == '/')
|
||||
#endif
|
||||
|
||||
int scan_file ();
|
||||
int scan_lisp_file ();
|
||||
int scan_c_file ();
|
||||
|
@ -183,11 +187,13 @@ void
|
|||
put_filename (filename)
|
||||
char *filename;
|
||||
{
|
||||
char *tmp = filename;
|
||||
int len;
|
||||
|
||||
while ((tmp = index (filename, '/')))
|
||||
filename = tmp + 1;
|
||||
char *tmp;
|
||||
|
||||
for (tmp = filename; *tmp; tmp++)
|
||||
{
|
||||
if (IS_DIRECTORY_SEP(*tmp))
|
||||
filename = tmp + 1;
|
||||
}
|
||||
|
||||
putc (037, outfile);
|
||||
putc ('S', outfile);
|
||||
|
|
Loading…
Add table
Reference in a new issue