Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Only adds the XBT_PUBLIC macro decoration a the begining of the public API functions.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 14:01:43 +0000 (14:01 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 6 Oct 2006 14:01:43 +0000 (14:01 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2872 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/graphxml.h
include/xbt/graphxml_parse.h
include/xbt/heap.h

index 754a1d8..0f532ce 100644 (file)
 #define _FLEXML_graphxml_H
 
 /* XML application entry points. */
 #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;
 
 /* 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 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. */
 
 /* 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) */
 
 /* 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
 #endif
index 2c26c35..faf9f08 100644 (file)
@@ -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;
 
 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 */
 
 /* 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
 
 #endif
index 27afafc..404e40a 100644 (file)
 /* @brief heap datatype */
 typedef struct xbt_heap *xbt_heap_t;
 
 /* @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 */
 
 /* @} */
 #endif                         /* _XBT_HEAP_H */