cppmain.c (main): Use IS_DIR_SEPARATOR.
authorMark Elbrecht <snowball3@bigfoot.com>
Thu, 11 May 2000 18:21:31 +0000 (18:21 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Thu, 11 May 2000 18:21:31 +0000 (18:21 +0000)
2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>

* cppmain.c (main): Use IS_DIR_SEPARATOR.

From-SVN: r33854

gcc/ChangeLog
gcc/cppmain.c

index 8ecc00896a6f0227df017e570ed9334d88ef18e5..5e4e3466569c14ecd21800024d70bbe46212c865 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-11  Mark Elbrecht  <snowball3@bigfoot.com>
+
+       * cppmain.c (main): Use IS_DIR_SEPARATOR.
+
 2000-05-11  Jakub Jelinek  <jakub@redhat.com>
 
        * except.c (find_exception_handler_labels_1): New function.
index ef636cbe02540a62b3f47dc09a41d9dbd900ff49..0eeafe4c1c09ce5ce3954a8beab819e71c096030 100644 (file)
@@ -43,7 +43,7 @@ main (argc, argv)
   int argi = 1;  /* Next argument to handle.  */
 
   p = argv[0] + strlen (argv[0]);
-  while (p != argv[0] && p[-1] != '/') --p;
+  while (p != argv[0] && ! IS_DIR_SEPARATOR (p[-1])) --p;
   progname = p;
 
   xmalloc_set_program_name (progname);