Changeset: f10314f614ca for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f10314f614ca
Modified Files:
clients/Tests/exports.stable.out
gdk/gdk_tracer.c
gdk/gdk_tracer.h
Branch: default
Log Message:
No static variables in include files.
diffs (62 lines):
diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -217,6 +217,7 @@ BUN BUNfnd(BAT *b, const void *right);
gdk_return BUNinplace(BAT *b, BUN p, const void *right, bool force)
__attribute__((__warn_unused_result__));
BAT *COLcopy(BAT *b, int tt, bool writable, role_t role);
BAT *COLnew(oid hseq, int tltype, BUN capacity, role_t role)
__attribute__((__warn_unused_result__));
+const char *COMPONENT_STR[];
size_t GDK_mem_maxsize;
size_t GDK_vm_maxsize;
gdk_return GDKanalytical_correlation(BAT *r, BAT *b1, BAT *b2, BAT *s, BAT *e,
int tpe);
@@ -333,6 +334,7 @@ size_t HEAPmemsize(Heap *h);
size_t HEAPvmsize(Heap *h);
void IMPSdestroy(BAT *b);
lng IMPSimprintsize(BAT *b);
+const char *LEVEL_STR[];
LOG_LEVEL LVL_PER_COMPONENT[];
int MT_check_nr_cores(void);
int MT_create_thread(MT_Id *t, void (*function)(void *), void *arg, enum
MT_thr_detach d, const char *threadname);
diff --git a/gdk/gdk_tracer.c b/gdk/gdk_tracer.c
--- a/gdk/gdk_tracer.c
+++ b/gdk/gdk_tracer.c
@@ -29,6 +29,14 @@ LOG_LEVEL LVL_PER_COMPONENT[] = {
FOREACH_COMP(GENERATE_LOG_LEVEL)
};
+const char *COMPONENT_STR[] = {
+ FOREACH_COMP(GENERATE_STRING)
+};
+
+const char *LEVEL_STR[] = {
+ FOREACH_LEVEL(GENERATE_STRING)
+};
+
// When BASIC adapter is active, all the log messages are getting printed to a
file.
diff --git a/gdk/gdk_tracer.h b/gdk/gdk_tracer.h
--- a/gdk/gdk_tracer.h
+++ b/gdk/gdk_tracer.h
@@ -85,9 +85,7 @@ typedef enum {
FOREACH_LEVEL(GENERATE_ENUM)
} LOG_LEVEL;
-static const char *LEVEL_STR[] = {
- FOREACH_LEVEL(GENERATE_STRING)
-};
+gdk_export const char *LEVEL_STR[];
@@ -174,9 +172,7 @@ typedef enum {
FOREACH_COMP(GENERATE_ENUM)
} COMPONENT;
-static const char *COMPONENT_STR[] = {
- FOREACH_COMP(GENERATE_STRING)
-};
+gdk_export const char *COMPONENT_STR[];
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list