[balsa] filter-run: Make filter-run.h private



commit d35411b941dbfa9cce166057db27e86e910acae2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Tue Jul 23 23:02:51 2019 -0400

    filter-run: Make filter-run.h private
    
    * src/filter-run-callbacks.c: define OK_TO_INCLUDE_FILTER_RUN_H;
    * src/filter-run-dialog.c: ditto;
    * src/filter-run.h: error if it is not defined.

 ChangeLog                  | 8 ++++++++
 src/filter-run-callbacks.c | 4 ++++
 src/filter-run-dialog.c    | 4 ++++
 src/filter-run.h           | 4 ++++
 4 files changed, 20 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 713948c47..36b1b5647 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2019-07-23  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       filter-run: Make filter-run.h private
+
+       * src/filter-run-callbacks.c: define OK_TO_INCLUDE_FILTER_RUN_H;
+       * src/filter-run-dialog.c: ditto;
+       * src/filter-run.h: error if it is not defined.
+
 2019-07-23  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Cleanup after using G_DECLARE_FINAL_TYPE()
diff --git a/src/filter-run-callbacks.c b/src/filter-run-callbacks.c
index 0e85aa75e..0ad419b75 100644
--- a/src/filter-run-callbacks.c
+++ b/src/filter-run-callbacks.c
@@ -29,7 +29,11 @@
 
 #include "mailbox-filter.h"
 #include "filter-funcs.h"
+
+#define OK_TO_INCLUDE_FILTER_RUN_H
 #include "filter-run.h"
+#undef OK_TO_INCLUDE_FILTER_RUN_H
+
 #include "balsa-app.h"
 #include "save-restore.h"
 
diff --git a/src/filter-run-dialog.c b/src/filter-run-dialog.c
index 796eab7d3..1eb85c5ab 100644
--- a/src/filter-run-dialog.c
+++ b/src/filter-run-dialog.c
@@ -25,7 +25,11 @@
 #include <gdk-pixbuf/gdk-pixbuf.h>
 
 #include "balsa-app.h"
+
+#define OK_TO_INCLUDE_FILTER_RUN_H
 #include "filter-run.h"
+#undef OK_TO_INCLUDE_FILTER_RUN_H
+
 #include "mailbox-filter.h"
 #include "save-restore.h"
 #include "filter-funcs.h"
diff --git a/src/filter-run.h b/src/filter-run.h
index 162798f23..dddcb905c 100644
--- a/src/filter-run.h
+++ b/src/filter-run.h
@@ -23,6 +23,10 @@
  * Variables and definitions for the filter edit dialog
  */
 
+#ifndef OK_TO_INCLUDE_FILTER_RUN_H
+# error "filter-run.h is private to the filter-run modules"
+#endif
+
 #ifndef __FILTER_RUN_H__
 #define __FILTER_RUN_H__
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]