Changeset: 35a4074cf885 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/35a4074cf885
Modified Files:
        gdk/gdk.h
        gdk/gdk_bbp.c
Branch: default
Log Message:

Move typedef for gdk_callback into only file where it is used.


diffs (40 lines):

diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -2533,16 +2533,6 @@ TIMEOUT_TEST(QryCtx *qc)
                        CALLBACK;                                       \
        } while (0)
 
-typedef struct gdk_callback {
-       const char *name;
-       int argc;
-       int interval;  // units sec
-       lng last_called; // timestamp GDKusec
-       gdk_return (*func)(int argc, void *argv[]);
-       struct gdk_callback *next;
-       void *argv[];
-} gdk_callback;
-
 typedef gdk_return gdk_callback_func(int argc, void *argv[]);
 
 gdk_export gdk_return gdk_add_callback(const char *name, gdk_callback_func *f,
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -4444,6 +4444,16 @@ gdk_bbp_reset(void)
 
 static MT_Lock GDKCallbackListLock = MT_LOCK_INITIALIZER(GDKCallbackListLock);
 
+typedef struct gdk_callback {
+       const char *name;
+       int argc;
+       int interval;  // units sec
+       lng last_called; // timestamp GDKusec
+       gdk_return (*func)(int argc, void *argv[]);
+       struct gdk_callback *next;
+       void *argv[];
+} gdk_callback;
+
 static struct {
        int cnt;
        gdk_callback *head;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to