2009/6/26 Tomek Grabiec <tgrab...@gmail.com>: > > Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> > --- > include/jit/exception.h | 2 +- > include/vm/object.h | 2 +- > jit/exception.c | 2 +- > vm/object.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/include/jit/exception.h b/include/jit/exception.h > index 6e9cc79..39482ee 100644 > --- a/include/jit/exception.h > +++ b/include/jit/exception.h > @@ -55,7 +55,7 @@ void throw_exception_from_signal(void *ctx, struct > vm_object *exception); > void throw_exception_from_trampoline(void *ctx, struct vm_object *exception); > void unwind(void); > void signal_exception(struct vm_object *obj); > -void signal_new_exception(char *class_name, char *msg); > +void signal_new_exception(char *class_name, const char *msg);
Can't the class name be const as well? > void clear_exception(void); > void init_exceptions(void); > void thread_init_exceptions(void); > diff --git a/include/vm/object.h b/include/vm/object.h > index 587b6bb..9d50dbf 100644 > --- a/include/vm/object.h > +++ b/include/vm/object.h > @@ -30,7 +30,7 @@ struct vm_object *vm_object_alloc_array(struct vm_class > *class, int count); > struct vm_object * > vm_object_alloc_string(const uint8_t bytes[], unsigned int length); > > -struct vm_object *new_exception(char *class_name, char *message); > +struct vm_object *new_exception(char *class_name, const char *message); > > bool vm_object_is_instance_of(struct vm_object *obj, struct vm_class *class); > void vm_object_check_null(struct vm_object *obj); > diff --git a/jit/exception.c b/jit/exception.c > index cceefdf..c48fe15 100644 > --- a/jit/exception.c > +++ b/jit/exception.c > @@ -94,7 +94,7 @@ void signal_exception(struct vm_object *exception) > exception_holder = exception; > } > > -void signal_new_exception(char *class_name, char *msg) > +void signal_new_exception(char *class_name, const char *msg) > { > struct vm_object *e; > > diff --git a/vm/object.c b/vm/object.c > index 8dfc504..e330186 100644 > --- a/vm/object.c > +++ b/vm/object.c > @@ -176,7 +176,7 @@ vm_object_alloc_string(const uint8_t bytes[], unsigned > int length) > > typedef void (*exception_init_fn)(struct vm_object *, struct vm_object *); > > -struct vm_object *new_exception(char *class_name, char *message) > +struct vm_object *new_exception(char *class_name, const char *message) > { > struct vm_object *message_str; > exception_init_fn init; > -- Vegard ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel