diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-06-09 19:54:26 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-06-09 19:54:26 +0000 |
commit | 95ca6d8b3248955be5d473b3210824d5689c0e38 (patch) | |
tree | 1294c96ac7dbea07618cad9609fe95009462e108 /gcc/java/resource.c | |
parent | 00051260e05e8f7108c0fb5d1d30ed24f25a1829 (diff) | |
download | gcc-95ca6d8b3248955be5d473b3210824d5689c0e38.zip gcc-95ca6d8b3248955be5d473b3210824d5689c0e38.tar.gz gcc-95ca6d8b3248955be5d473b3210824d5689c0e38.tar.bz2 |
Make-lang.in (JAVA_OBJS, [...]): Update.
java:
* Make-lang.in (JAVA_OBJS, java/lang.o): Update.
(java/j-options.c, java/j-options.h): New.
* java-tree.h (resource_name, compile_resource_file,
compile_resource_data): Constify.
* jcf-write.c (jcf_write_base_directory): Similarly.
* jcf.h (jcf_write_base_directory): Similarly.
* lang.c: Include j-options.h.
(cl_options_count, cl_options, string_option, java_decode_option,
lang_f_options, lang_W_options, LANG_HOOKS_DECODE_OPTION,
process_option_with_no): Remove.
(resource_name): Constify.
(LANG_HOOKS_HANDLE_OPTION): Override.
(java_handle_option): New.
(java_init): Don't call jcf_path_init.
(java_init_options): Call jcf_path_init.
* lang.opt: New.
* resource.c (compile_resource_data, compile_resource_file): Constify.
From-SVN: r67673
Diffstat (limited to 'gcc/java/resource.c')
-rw-r--r-- | gcc/java/resource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/resource.c b/gcc/java/resource.c index e58a5a5..595b7b0 100644 --- a/gcc/java/resource.c +++ b/gcc/java/resource.c @@ -56,7 +56,7 @@ static GTY(()) rtx registerResource_libfunc; static int Jr_count = 0; void -compile_resource_data (char *name, const char *buffer, int length) +compile_resource_data (const char *name, const char *buffer, int length) { tree rtype, field = NULL_TREE, data_type, rinit, data, decl; char buf[60]; @@ -157,7 +157,7 @@ write_resource_constructor (void) compiled Java resource, which is accessed by the runtime using NAME. */ void -compile_resource_file (char *name, const char *filename) +compile_resource_file (const char *name, const char *filename) { struct stat stat_buf; int fd; |