get rid of warnings about qualifier discarding
svn path=/trunk/; revision=16017
This commit is contained in:
parent
0f2584c4d2
commit
0539569e1b
|
@ -259,7 +259,7 @@ void except_rethrow(except_t *except)
|
|||
do_throw(except);
|
||||
}
|
||||
|
||||
void except_throw(long group, long code, char *msg)
|
||||
void except_throw(long group, long code, const char *msg)
|
||||
{
|
||||
except_t except;
|
||||
|
||||
|
@ -271,7 +271,7 @@ void except_throw(long group, long code, char *msg)
|
|||
do_throw(&except);
|
||||
}
|
||||
|
||||
void except_throwd(long group, long code, char *msg, void *data)
|
||||
void except_throwd(long group, long code, const char *msg, void *data)
|
||||
{
|
||||
except_t except;
|
||||
|
||||
|
@ -321,7 +321,7 @@ unsigned long except_group(except_t *ex)
|
|||
return ex->except_id.except_group;
|
||||
}
|
||||
|
||||
char *except_message(except_t *ex)
|
||||
const char *except_message(except_t *ex)
|
||||
{
|
||||
return ex->except_message;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ typedef struct {
|
|||
|
||||
typedef struct {
|
||||
except_id_t volatile except_id;
|
||||
char *volatile except_message;
|
||||
const char *volatile except_message;
|
||||
void *volatile except_dyndata;
|
||||
} except_t;
|
||||
|
||||
|
@ -91,13 +91,13 @@ extern struct except_stacknode *except_pop(void);
|
|||
extern int except_init(void);
|
||||
extern void except_deinit(void);
|
||||
extern void except_rethrow(except_t *);
|
||||
extern void except_throw(long, long, char *);
|
||||
extern void except_throwd(long, long, char *, void *);
|
||||
extern void except_throw(long, long, const char *);
|
||||
extern void except_throwd(long, long, const char *, void *);
|
||||
extern void except_throwf(long, long, const char *, ...);
|
||||
extern void (*except_unhandled_catcher(void (*)(except_t *)))(except_t *);
|
||||
extern unsigned long except_code(except_t *);
|
||||
extern unsigned long except_group(except_t *);
|
||||
extern char *except_message(except_t *);
|
||||
extern const char *except_message(except_t *);
|
||||
extern void *except_data(except_t *);
|
||||
extern void *except_take_data(except_t *);
|
||||
extern void except_set_allocator(void *(*)(size_t), void (*)(void *));
|
||||
|
|
Loading…
Reference in New Issue