aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-sexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-sexp.h')
-rw-r--r--e-util/e-sexp.h119
1 files changed, 0 insertions, 119 deletions
diff --git a/e-util/e-sexp.h b/e-util/e-sexp.h
deleted file mode 100644
index 1030531133..0000000000
--- a/e-util/e-sexp.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- generic s-exp evaluator class
-*/
-#ifndef _E_SEXP_H
-#define _E_SEXP_H
-
-#include <glib.h>
-#include <gtk/gtk.h>
-
-#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 ())
-
-typedef struct _ESExp ESExp;
-typedef struct _ESExpClass ESExpClass;
-
-typedef struct _ESExpSymbol ESExpSymbol;
-typedef struct _ESExpResult ESExpResult;
-typedef struct _ESExpTerm ESExpTerm;
-
-typedef struct _ESExpResult *(ESExpFunc)(struct _ESExp *sexp,
- int argc,
- struct _ESExpResult **argv,
- void *data);
-
-typedef struct _ESExpResult *(ESExpIFunc)(struct _ESExp *sexp,
- int argc,
- struct _ESExpTerm **argv,
- void *data);
-enum _ESExpResultType {
- ESEXP_RES_ARRAY_PTR=0, /* type is a ptrarray, what it points to is implementation dependant */
- ESEXP_RES_INT, /* type is a number */
- ESEXP_RES_STRING, /* type is a pointer to a single string */
- ESEXP_RES_BOOL, /* boolean type */
- ESEXP_RES_UNDEFINED /* unknown type */
-};
-
-struct _ESExpResult {
- enum _ESExpResultType type;
- union {
- GPtrArray *ptrarray;
- int number;
- char *string;
- int bool;
- } value;
-};
-
-enum _ESExpTermType {
- ESEXP_TERM_INT = 0, /* integer literal */
- ESEXP_TERM_BOOL, /* boolean literal */
- ESEXP_TERM_STRING, /* string literal */
- ESEXP_TERM_FUNC, /* normal function, arguments are evaluated before calling */
- ESEXP_TERM_IFUNC, /* immediate function, raw terms are arguments */
- ESEXP_TERM_VAR, /* variable reference */
-};
-
-struct _ESExpSymbol {
- int type; /* ESEXP_TERM_FUNC or ESEXP_TERM_VAR */
- char *name;
- void *data;
- union {
- ESExpFunc *func;
- ESExpIFunc *ifunc;
- } f;
-};
-
-struct _ESExpTerm {
- enum _ESExpTermType type;
- union {
- char *string;
- int number;
- int bool;
- struct {
- struct _ESExpSymbol *sym;
- struct _ESExpTerm **terms;
- int termcount;
- } func;
- struct _ESExpSymbol *var;
- } value;
-};
-
-
-
-struct _ESExp {
- GtkObject object;
-
- GScanner *scanner; /* for parsing text version */
- ESExpTerm *tree; /* root of expression tree */
-};
-
-struct _ESExpClass {
- GtkObjectClass parent_class;
-
-};
-
-guint e_sexp_get_type (void);
-ESExp *e_sexp_new (void);
-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);
-void e_sexp_remove_symbol (ESExp *f, int scope, char *name);
-int e_sexp_set_scope (ESExp *f, int scope);
-
-void e_sexp_input_text (ESExp *f, const char *text, int len);
-void e_sexp_input_file (ESExp *f, int fd);
-
-
-void e_sexp_parse (ESExp *f);
-ESExpResult *e_sexp_eval (ESExp *f);
-
-ESExpResult *e_sexp_term_eval (struct _ESExp *f, struct _ESExpTerm *t);
-ESExpResult *e_sexp_result_new (int type);
-void e_sexp_result_free (struct _ESExpResult *t);
-
-/* utility functions for creating s-exp strings. */
-void e_sexp_encode_bool(GString *s, gboolean state);
-void e_sexp_encode_string(GString *s, const char *string);
-
-#endif /* _E_SEXP_H */
it/CHANGES?h=gstreamer&id=26e98ea1728d47f9bd2bf8367de17602ea2b110b'>USE_GETTEXT has totally been replaced by USES=gettext thanks, jgh and akbapt2013-05-071-0/+2 * Add new USES: shebangfixbapt2013-05-071-0/+10 * Add new USES: ncurses and readlinebapt2013-05-061-0/+16 * Introduces USES= iconv to replace USE_ICONV.mva2013-04-271-1/+8 * Remove USE_CDRTOOLS from bsd.port.mkbapt2013-04-261-0/+1 * Remove USE_FREETYPE from bsd.port.mkbapt2013-04-261-0/+5 * Introduces USES= gettext to replace USE_GETTEXTjgh2013-04-231-0/+13 * Fix datebapt2013-04-231-1/+1 * - Add WITH_CCACHE_BUILD support during 'configure' phasebdrewery2013-04-231-0/+9 * Introduce USES= pkgconfig to replace USE_PKGCONFIGbapt2013-04-231-0/+12 * - Add New USES macro to handle support for Zenoss ports and Zenpacks:jgh2013-03-201-0/+7 * Convert USE_CMAKE to USES macro:makc2013-03-201-0/+15 * Make the ports tree use dialog4ports for make config.bapt2013-03-191-0/+10 * Document USES=qmailbdrewery2013-03-161-0/+11 * Document the introduction of Keywords/info.yaml in CHANGESbapt2013-03-151-0/+7 * Add a note about the new USES macro and the new USES= pathfix fusebapt2013-03-071-0/+9 * - Fix Whitespacesmiwi2013-02-081-1/+1 * - Document that PTHREAD_CFLAGS and PTHREAD_LIBS are unsupportedgahr2013-02-071-0/+7 * - introduce a USE_FUSE macroflo2012-12-141-0/+7 * Extend the options framework providing 2 new macros:bapt2012-12-101-0/+7 * Minor whitespace and formatting fixes.danfe2012-11-171-3/+3 * We are in 2012, it is time to activate IPV6 options by default everywherebapt2012-10-101-0/+5 * Switching current to use pkgng by defaultbapt2012-10-101-0/+10 * - Add ccache support for building ports. [1]beat2012-08-301-0/+16 * - Add support for fetching from GitHub in bsd.sites.mkgahr2012-08-201-0/+22 * new devel/pkgconf added to replace devel/pkg-config. new version of pkg-configbapt2012-07-261-0/+15 * - use UPDATING instead CHANGESohauer2012-07-231-5/+0 * - use reserverd UID/GIDohauer2012-07-211-0/+5 * - Keep questions on a public mailing listbeat2012-07-161-1/+1 * - Add a note about the switch to Subversionbeat2012-07-161-0/+15 * - Fix copy-paste errorak2012-06-251-2/+2 * Give a passing mention of OPTIONSngcrees2012-06-241-0/+11 * - Add CHANGES entry on recent LDFLAGS updateamdmi32011-09-271-0/+19 * Describe how CPPFLAGS is now passed to both the configure and makegerald2011-06-071-0/+15 * Autotools update. Read ports/UPDATING 20100915 for details.ade2010-09-161-0/+8 * USE_GCC=4.3 is deprecated (and no port uses it anymore). USE_GCC=4.3+gerald2010-06-071-0/+7 * - Add entry in CHANGES about bsd.licenses*.mk.alepulver2010-05-261-0/+9 * - add 1 missing WITH_APACHEXX option to CHANGES thats now deadpgollucci2010-05-261-1/+1 * Bump copyright year to 2010erwin2010-01-031-1/+1 * be more specific about WITH_APACHE2 and friendspgollucci2009-12-261-1/+1 * Remove myself as maintainer and hand over to portmgrerwin2009-09-151-6/+3 * Mention the new USERS/GROUPS variable.flz2009-09-071-1/+16 * Add a note on the sourceforge change and new bsd.sites.mk macro.erwin2009-08-131-0/+11 * - Tell world bsd.port.options.mk are cool nowpav2009-05-211-7/+13 * - Document some deaths legacy in bsd.apache.mk variablespgollucci2009-05-171-0/+12 * - Change the wording a bit to point to UPDATING as wellerwin2009-03-031-2/+2 * - devel/libslang2 has completely replaced devel/libslang which has not beenpgollucci2009-02-081-0/+8 * - Drop whitespacesmiwi2008-09-081-1/+1 * * print/ghostscript-* and related ports have been renamed in thehrs2008-09-061-0/+22 * - Document CONFIGURE_ARGS changes for GNU_CONFIGURE on the syntax forrafan2008-08-211-0/+7 * - Fix some noticed spelling errorsdanfe2008-07-231-5/+5 * Document porter visible changes from bsd.port.mk rev. 1.598pav2008-07-221-0/+7