www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/08/01/09:08:36

Date: Sun, 1 Aug 1999 12:17:37 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp-workers AT delorie DOT com
Subject: Re: Changes in Binutils 2.9.1
In-Reply-To: <Pine.SUN.3.91.990801121450.20304f-100000@is>
Message-ID: <Pine.SUN.3.91.990801121722.20304j-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

These are the patches for the include directory of Binutils.

1999-07-08  Eli Zaretskii  <eliz AT is DOT elta DOT co DOT il>

	* filenames.h: New file.
	(DOSISH_FILENAMES, MONOCASE_FILENAMES, FILENAME_CMP): New macros.

*** /dev/null	Sat Jul 31 17:57:06 1999
--- include/filename.h	Tue Jul 27 19:15:42 1999
***************
*** 0 ****
--- 1,23 ----
+ /* Macros for taking apart, interpreting and processing file names.
+ 
+    These are here because some non-Posix (a.k.a. DOSish) systems have
+    the drive letter brain-damage at the beginning of an absolute file
+    name, use forward- and back-slash in path names interchangeably, and
+    some of them have case-insensitive file names.  */
+ 
+ #if defined(__MSDOS__) || defined(_WIN32)
+ #define IS_SLASH(c)	((c) == '/' || (c) == '\\')
+ #define IS_ABSOLUTE(f)	(IS_SLASH((f)[0]) || (f)[0] && (f)[1] == ':')
+ #define DOSISH_FILENAMES 1
+ #define MONOCASE_FILENAMES 1
+ #else
+ #define IS_SLASH(c)	((c) == '/')
+ #define IS_ABSOLUTE(f)	(IS_SLASH((f)[0]))
+ #define MONOCASE_FILENAMES 0
+ #endif
+ 
+ #if MONOCASE_FILENAMES
+ #define FILENAME_CMP(s1, s2)  strcasecmp(s1, s2)
+ #else
+ #define FILENAME_CMP(s1, s2)  strcmp(s1, s2)
+ #endif

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019