aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/jcf.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>1998-11-13 14:09:53 +0000
committerTom Tromey <tromey@gcc.gnu.org>1998-11-13 14:09:53 +0000
commitdf66b5660c1dc2f388b54d3d8d14951ead739edb (patch)
tree68a3d48319d95915e8d7750b2f010afd3c795f67 /gcc/java/jcf.h
parentbbeeb2b0201c839ffc6c66f0f472b88964387e63 (diff)
downloadgcc-df66b5660c1dc2f388b54d3d8d14951ead739edb.zip
gcc-df66b5660c1dc2f388b54d3d8d14951ead739edb.tar.gz
gcc-df66b5660c1dc2f388b54d3d8d14951ead739edb.tar.bz2
gjavah.c (main): Handle --output-class-directory argument.
* gjavah.c (main): Handle --output-class-directory argument. * jvspec.c (lang_specific_driver): Translate `-d' into -foutput-class-dir. * jcf.h (jcf_write_base_directory): Declare. * lang.c (lang_decode_option): Recognize -foutput-class-dir. * lang-options.h: Mention -foutput-class-dir. * jcf-write.c (jcf_write_base_directory): New global. (make_class_file_name): Put generated .class file into `-d' directory, or into source directory if -d not given. Function now static. (write_classfile): Free class file name. Handle case where class file name is NULL. (DIR_SEPARATOR): New macro. Include <sys/stat.h> From-SVN: r23640
Diffstat (limited to 'gcc/java/jcf.h')
-rw-r--r--gcc/java/jcf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/jcf.h b/gcc/java/jcf.h
index 1b8aff2..8f748b3 100644
--- a/gcc/java/jcf.h
+++ b/gcc/java/jcf.h
@@ -245,6 +245,8 @@ extern int jcf_unexpected_eof PROTO ((JCF*, int));
? (((PTR)[-3]&0x1F) << 12) + (((PTR)[-2]&0x3F) << 6) + ((PTR)[-1]&0x3F) \
: ((PTR)++, -1))
+extern char *jcf_write_base_directory;
+
/* Debug macros, for the front end */
extern int quiet_flag;