This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
VAX PATCH: remove FILE_NAME_NONDIRECTORY
- To: dave dot anglin at nrc dot ca
- Subject: VAX PATCH: remove FILE_NAME_NONDIRECTORY
- From: Lars Brinkhoff <lars at nocrew dot org>
- Date: 21 Feb 2001 12:24:14 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- Organization: nocrew
Ever since this:
1997-10-31 Brendan Kehoe <brendan@lisa.cygnus.com>
* lex.c (FILE_NAME_NONDIRECTORY): Delete macro.
(file_name_nondirectory): New function, doing the same
as the macro.
(set_typedecl_interface_info): Use it instead of the macro.
(check_newline): Likewise.
(handle_cp_pragma): Likewise.
the macro FILE_NAME_NONDIRECTORY in gcc/config/vax/xm-vms.h seems to
be unused.
2001-02-21 lars brinkhoff <lars@nocrew.org>
* config/vax/xm-vms.h (FILE_NAME_NONDIRECTORY): Remove.
Index: xm-vms.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/vax/xm-vms.h,v
retrieving revision 1.7
diff -u -r1.7 xm-vms.h
--- xm-vms.h 2000/11/09 07:45:15 1.7
+++ xm-vms.h 2001/02/21 11:18:57
@@ -84,26 +84,6 @@
#define MAX_READ_LEN (32 * 512)
#define MAX_WRITE_LEN (32 * 512)
-/* Under VMS a directory specification can be enclosed either in square
- brackets or in angle brackets. Thus we need to check both. This
- macro is used to help compare filenames in cp-lex.c.
-
- We also need to make sure that the names are all lower case, because
- we must be able to compare filenames to determine if a file implements
- a class. */
-
-#define FILE_NAME_NONDIRECTORY(C) \
-({ \
- char * pnt_ = (C), * pnt1_; \
- pnt1_ = pnt_ - 1; \
- while (*++pnt1_) \
- if ((*pnt1_ >= 'A' && *pnt1_ <= 'Z')) *pnt1_ |= 0x20; \
- pnt1_ = strrchr (pnt_, ']'); \
- pnt1_ = (pnt1_ == 0 ? strrchr (pnt_, '>') : pnt1_); \
- pnt1_ = (pnt1_ == 0 ? strrchr (pnt_, ':') : pnt1_); \
- (pnt1_ == 0 ? pnt_ : pnt1_ + 1); \
- })
-
/* Macro to generate the name of the cross reference file. The standard
one does not work, since it was written assuming that the conventions
of a unix style filesystem will work on the host system. */