summaryrefslogtreecommitdiffhomepage
path: root/mixlib/mix_eval.h
diff options
context:
space:
mode:
authorjaortega <jaortega>2000-12-08 21:30:01 +0000
committerjaortega <jaortega>2000-12-08 21:30:01 +0000
commit4d7d583e47215304d7be5487a42578081bbc8497 (patch)
tree3bb99264842fecf2d4ecb1f1eea16ac2b13d8177 /mixlib/mix_eval.h
parentd0dba18550f315279d65e5b4a2fc7cbd20a98b4a (diff)
downloadmdk-4d7d583e47215304d7be5487a42578081bbc8497.tar.gz
mdk-4d7d583e47215304d7be5487a42578081bbc8497.tar.bz2
(mix_eval_{set,remove}symbols_from_table, mix_eval_substract_table) new functions
(mix_symbol_table_{merge,substract}_table) const-correct
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);