From f51ded7f341f3f3498504ac0a651f873934f9219 Mon Sep 17 00:00:00 2001 From: "Asanka C. Herath" Date: Tue, 9 Nov 2010 15:40:11 -0500 Subject: [PATCH] Export annotations for com_right.h --- lib/com_err/com_right.h | 15 +++++++++++---- lib/com_err/error.c | 8 ++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/lib/com_err/com_right.h b/lib/com_err/com_right.h index 7f4114565..b0857d283 100644 --- a/lib/com_err/com_right.h +++ b/lib/com_err/com_right.h @@ -71,9 +71,16 @@ struct et_list { }; extern struct et_list *_et_list; -const char *com_right (struct et_list *list, long code); -const char *com_right_r (struct et_list *list, long code, char *, size_t); -void initialize_error_table_r (struct et_list **, const char **, int, long); -void free_error_table (struct et_list *); +KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL +com_right (struct et_list *list, long code); + +KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL +com_right_r (struct et_list *list, long code, char *, size_t); + +KRB5_LIB_FUNCTION void KRB5_LIB_CALL +initialize_error_table_r (struct et_list **, const char **, int, long); + +KRB5_LIB_FUNCTION void KRB5_LIB_CALL +free_error_table (struct et_list *); #endif /* __COM_RIGHT_H__ */ diff --git a/lib/com_err/error.c b/lib/com_err/error.c index 854a4b66c..0e49a9410 100644 --- a/lib/com_err/error.c +++ b/lib/com_err/error.c @@ -46,7 +46,7 @@ #define dgettext(d,s) (s) #endif -const char * +KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL com_right(struct et_list *list, long code) { struct et_list *p; @@ -56,7 +56,7 @@ com_right(struct et_list *list, long code) return NULL; } -const char * +KRB5_LIB_FUNCTION const char * KRB5_LIB_CALL com_right_r(struct et_list *list, long code, char *str, size_t len) { struct et_list *p; @@ -79,7 +79,7 @@ struct foobar { struct error_table et; }; -void +KRB5_LIB_FUNCTION void KRB5_LIB_CALL initialize_error_table_r(struct et_list **list, const char **messages, int num_errors, @@ -103,7 +103,7 @@ initialize_error_table_r(struct et_list **list, } -void +KRB5_LIB_FUNCTION void KRB5_LIB_CALL free_error_table(struct et_list *et) { while(et){