summaryrefslogtreecommitdiff
path: root/gcc/java/resource.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-09 19:54:26 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-09 19:54:26 +0000
commit35171f45dafd640694a4eea29083d299b4746b9c (patch)
tree1294c96ac7dbea07618cad9609fe95009462e108 /gcc/java/resource.c
parent7de4f5f229944e622115372dedac95f86ab3ef2f (diff)
downloadgcc-35171f45dafd640694a4eea29083d299b4746b9c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67673 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/resource.c')
-rw-r--r--gcc/java/resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/resource.c b/gcc/java/resource.c
index e58a5a5ac20..595b7b06da7 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;