summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_eval.h
diff options
context:
space:
mode:
Diffstat (limited to 'mixlib/mix_eval.h')
-rw-r--r--mixlib/mix_eval.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/mixlib/mix_eval.h b/mixlib/mix_eval.h
index c126812..139d0b3 100644
--- a/mixlib/mix_eval.h
+++ b/mixlib/mix_eval.h
@@ -1,7 +1,7 @@
/* -*-c-*- ---------------- mix_eval.h :
* mix_eval_t is an evaluator of MIX W-expressions
* ------------------------------------------------------------------
- * Last change: Time-stamp: <00/12/03 12:29:17 jose>
+ * Last change: Time-stamp: <00/12/08 13:16:10 jose>
* ------------------------------------------------------------------
* Copyright (C) 2000 jose antonio ortega ruiz <jaortega@acm.org>
*
@@ -70,19 +70,19 @@ mix_eval_expression_with_loc (mix_eval_t *eval, const gchar *expr,
/* get the result of the last evaluation */
extern mix_word_t
-mix_eval_value (mix_eval_t *eval);
+mix_eval_value (const mix_eval_t *eval);
/* get the last eval result code */
extern mix_eval_result_t
-mix_eval_last_error (mix_eval_t *eval);
+mix_eval_last_error (const mix_eval_t *eval);
/* get the last error string */
extern const gchar*
-mix_eval_last_error_string (mix_eval_t *eval);
+mix_eval_last_error_string (const mix_eval_t *eval);
/* get the position of last error */
extern guint
-mix_eval_last_error_pos (mix_eval_t *eval);
+mix_eval_last_error_pos (const mix_eval_t *eval);
/* add, or redefine, a symbol. see mix_symbol_table.h for
possible outcomes. */
@@ -90,9 +90,16 @@ extern gint
mix_eval_set_symbol (mix_eval_t *eval, const gchar *symbol,
mix_word_t value);
+extern gboolean
+mix_eval_set_symbols_from_table (mix_eval_t *eval,
+ const mix_symbol_table_t *table);
+
extern void
mix_eval_remove_symbol (mix_eval_t *eval, const gchar *symbol);
+extern gboolean
+mix_eval_remove_symbols_from_table (mix_eval_t *eval,
+ const mix_symbol_table_t *table);