aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2008-07-06 13:33:05 +0000
committerTom Tromey <tromey@gcc.gnu.org>2008-07-06 13:33:05 +0000
commitdcef3dac7f7d7d6fdcd21451f3c9a570aaa8a50d (patch)
tree7ddb197a2bf5bf748c7d71a7c592b6858b568551 /gcc/java/jcf.h
parenta0ed509928bf2ab7544da098a6f41eb457c5c3ad (diff)
downloadgcc-dcef3dac7f7d7d6fdcd21451f3c9a570aaa8a50d.zip
gcc-dcef3dac7f7d7d6fdcd21451f3c9a570aaa8a50d.tar.gz
gcc-dcef3dac7f7d7d6fdcd21451f3c9a570aaa8a50d.tar.bz2
jcf-io.c: Don't include fnmatch.h.
* jcf-io.c: Don't include fnmatch.h. Don't use JCF_USE_SCANDIR. (compare_path): Remove. (java_or_class_file): Likewise. (memoized_dirlist_entry): Likewise. (memoized_dirlist_hash): Likewise. (memoized_dirlist_lookup_eq): Likewise. (memoized_dirlists): Likewise. (caching_stat): Likewise. (find_class): Use stat. * jcf.h (JCF_USE_SCANDIR): Remove. From-SVN: r137523
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r--gcc/java/jcf.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index d4de2c5..40bbd72 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -1,6 +1,6 @@
/* Utility macros to read Java(TM) .class files and byte codes.
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
- 2006, 2007 Free Software Foundation, Inc.
+ 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of GCC.
@@ -45,14 +45,6 @@ The Free Software Foundation is independent of Sun Microsystems, Inc. */
#define JCF_word JCF_u4
#endif
-/* If we have both "scandir" and "alphasort", we can cache directory
- listings to reduce the time taken to search the classpath. */
-#if defined(HAVE_SCANDIR) && defined(HAVE_ALPHASORT)
-#define JCF_USE_SCANDIR 1
-#else
-#define JCF_USE_SCANDIR 0
-#endif
-
/* On case-insensitive file systems, we need to ensure that a request
to open a .java or .class file is honored only if the file to be
opened is of the exact case we are asking for. In other words, we