aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@HelixCode.com>2000-12-24 08:58:02 +0800
committerMichael Zucci <zucchi@src.gnome.org>2000-12-24 08:58:02 +0800
commit5674966eeb7eecfa109ad419f1c997dba69ff0af (patch)
treea439ac65139c39f3f551573b1c9f14a8e56b1c82 /e-util/e-sexp.h
parentd5b5b5f0979f0819561fbec36a417a6dcfc3d4d5 (diff)
downloadgsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar.gz
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar.bz2
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar.lz
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar.xz
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.tar.zst
gsoc2013-evolution-5674966eeb7eecfa109ad419f1c997dba69ff0af.zip
Merge from camel-mt-branch.
2000-12-24 Not Zed <NotZed@HelixCode.com> * Merge from camel-mt-branch. svn path=/trunk/; revision=7152
Diffstat (limited to 'e-util/e-sexp.h')
-rw-r--r--e-util/e-sexp.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/e-util/e-sexp.h b/e-util/e-sexp.h
index 1030531133..5cf2740fc1 100644
--- a/e-util/e-sexp.h
+++ b/e-util/e-sexp.h
@@ -5,11 +5,20 @@
#define _E_SEXP_H
#include <glib.h>
+
+#ifdef E_SEXP_IS_GTK_OBJECT
#include <gtk/gtk.h>
+#endif
+#ifdef E_SEXP_IS_GTK_OBJECT
#define E_SEXP(obj) GTK_CHECK_CAST (obj, e_sexp_get_type (), ESExp)
#define E_SEXP_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, e_sexp_get_type (), ESExpClass)
#define FILTER_IS_SEXP(obj) GTK_CHECK_TYPE (obj, e_sexp_get_type ())
+#else
+#define E_SEXP(obj) ((struct _ESExp *)(obj))
+#define E_SEXP_CLASS(klass) ((struct _ESExpClass *)(klass))
+#define FILTER_IS_SEXP(obj) (1)
+#endif
typedef struct _ESExp ESExp;
typedef struct _ESExpClass ESExpClass;
@@ -82,19 +91,29 @@ struct _ESExpTerm {
struct _ESExp {
+#ifdef E_SEXP_IS_GTK_OBJECT
GtkObject object;
-
+#else
+ int refcount;
+#endif
GScanner *scanner; /* for parsing text version */
ESExpTerm *tree; /* root of expression tree */
};
struct _ESExpClass {
+#ifdef E_SEXP_IS_GTK_OBJECT
GtkObjectClass parent_class;
-
+#endif
};
+#ifdef E_SEXP_IS_GTK_OBJECT
guint e_sexp_get_type (void);
+#endif
ESExp *e_sexp_new (void);
+#ifndef E_SEXP_IS_GTK_OBJECT
+void e_sexp_ref (ESExp *f);
+void e_sexp_unref (ESExp *f);
+#endif
void e_sexp_add_function (ESExp *f, int scope, char *name, ESExpFunc *func, void *data);
void e_sexp_add_ifunction (ESExp *f, int scope, char *name, ESExpIFunc *func, void *data);
void e_sexp_add_variable (ESExp *f, int scope, char *name, ESExpTerm *value);