From 2fe21db8281abdcb94d98c99022cd121c0650bc7 Mon Sep 17 00:00:00 2001 From: cherierm Date: Fri, 6 Oct 2006 14:01:43 +0000 Subject: [PATCH] Only adds the XBT_PUBLIC macro decoration a the begining of the public API functions. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2872 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/graphxml.h | 18 +++++++++--------- include/xbt/graphxml_parse.h | 32 ++++++++++++++++---------------- include/xbt/heap.h | 14 +++++++------- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/include/xbt/graphxml.h b/include/xbt/graphxml.h index 754a1d80d9..0f532cea5c 100644 --- a/include/xbt/graphxml.h +++ b/include/xbt/graphxml.h @@ -49,12 +49,12 @@ #define _FLEXML_graphxml_H /* XML application entry points. */ -extern void STag_graphxml_graph(void); -extern void ETag_graphxml_graph(void); -extern void STag_graphxml_node(void); -extern void ETag_graphxml_node(void); -extern void STag_graphxml_edge(void); -extern void ETag_graphxml_edge(void); +XBT_PUBLIC extern void STag_graphxml_graph(void); +XBT_PUBLIC extern void ETag_graphxml_graph(void); +XBT_PUBLIC extern void STag_graphxml_node(void); +XBT_PUBLIC extern void ETag_graphxml_node(void); +XBT_PUBLIC extern void STag_graphxml_edge(void); +XBT_PUBLIC extern void ETag_graphxml_edge(void); /* XML application data. */ typedef const char* AT_graphxml_node_name; @@ -97,11 +97,11 @@ extern AT_graphxml_edge_length A_graphxml_edge_length; extern AT_graphxml_edge_name A_graphxml_edge_name; /* XML application utilities. */ -extern int graphxml_element_context(int); +XBT_PUBLIC extern int graphxml_element_context(int); /* XML processor entry point. */ -extern int yylex(void); +XBT_PUBLIC extern int yylex(void); /* Flexml error handling function (useful only when -q flag passed to flexml) */ -const char * graphxml_parse_err_msg(void); +XBT_PUBLIC const char * graphxml_parse_err_msg(void); #endif diff --git a/include/xbt/graphxml_parse.h b/include/xbt/graphxml_parse.h index 2c26c35c18..faf9f08bb9 100644 --- a/include/xbt/graphxml_parse.h +++ b/include/xbt/graphxml_parse.h @@ -24,23 +24,23 @@ extern void_f_void_t *ETag_graphxml_node_fun; extern void_f_void_t *STag_graphxml_edge_fun; extern void_f_void_t *ETag_graphxml_edge_fun; -void xbt_graph_parse_open(const char *file); -void xbt_graph_parse_close(void); -void xbt_graph_parse_reset_parser(void); -void xbt_graph_parse_get_double(double *value,const char *string); +XBT_PUBLIC void xbt_graph_parse_open(const char *file); +XBT_PUBLIC void xbt_graph_parse_close(void); +XBT_PUBLIC void xbt_graph_parse_reset_parser(void); +XBT_PUBLIC void xbt_graph_parse_get_double(double *value,const char *string); /* Prototypes of the functions offered by flex */ -int xbt_graph_parse_lex(void); -int xbt_graph_parse_get_lineno(void); -FILE *xbt_graph_parse_get_in(void); -FILE *xbt_graph_parse_get_out(void); -int xbt_graph_parse_get_leng(void); -char *xbt_graph_parse_get_text(void); -void xbt_graph_parse_set_lineno(int line_number); -void xbt_graph_parse_set_in(FILE * in_str); -void xbt_graph_parse_set_out(FILE * out_str); -int xbt_graph_parse_get_debug(void); -void xbt_graph_parse_set_debug(int bdebug); -int xbt_graph_parse_lex_destroy(void); +XBT_PUBLIC int xbt_graph_parse_lex(void); +XBT_PUBLIC int xbt_graph_parse_get_lineno(void); +XBT_PUBLIC FILE *xbt_graph_parse_get_in(void); +XBT_PUBLIC FILE *xbt_graph_parse_get_out(void); +XBT_PUBLIC int xbt_graph_parse_get_leng(void); +XBT_PUBLIC char *xbt_graph_parse_get_text(void); +XBT_PUBLIC void xbt_graph_parse_set_lineno(int line_number); +XBT_PUBLIC void xbt_graph_parse_set_in(FILE * in_str); +XBT_PUBLIC void xbt_graph_parse_set_out(FILE * out_str); +XBT_PUBLIC int xbt_graph_parse_get_debug(void); +XBT_PUBLIC void xbt_graph_parse_set_debug(int bdebug); +XBT_PUBLIC int xbt_graph_parse_lex_destroy(void); #endif diff --git a/include/xbt/heap.h b/include/xbt/heap.h index 27afafceda..404e40a846 100644 --- a/include/xbt/heap.h +++ b/include/xbt/heap.h @@ -19,15 +19,15 @@ /* @brief heap datatype */ typedef struct xbt_heap *xbt_heap_t; -xbt_heap_t xbt_heap_new(int num, void_f_pvoid_t free_func); -void xbt_heap_free(xbt_heap_t H); -int xbt_heap_size(xbt_heap_t H); +XBT_PUBLIC xbt_heap_t xbt_heap_new(int num, void_f_pvoid_t free_func); +XBT_PUBLIC void xbt_heap_free(xbt_heap_t H); +XBT_PUBLIC int xbt_heap_size(xbt_heap_t H); -void xbt_heap_push(xbt_heap_t H, void *content, double key); -void *xbt_heap_pop(xbt_heap_t H); +XBT_PUBLIC void xbt_heap_push(xbt_heap_t H, void *content, double key); +XBT_PUBLIC void *xbt_heap_pop(xbt_heap_t H); -double xbt_heap_maxkey(xbt_heap_t H); -void *xbt_heap_maxcontent(xbt_heap_t H); +XBT_PUBLIC double xbt_heap_maxkey(xbt_heap_t H); +XBT_PUBLIC void *xbt_heap_maxcontent(xbt_heap_t H); /* @} */ #endif /* _XBT_HEAP_H */ -- 2.20.1