From 4d7d583e47215304d7be5487a42578081bbc8497 Mon Sep 17 00:00:00 2001 From: jaortega Date: Fri, 8 Dec 2000 21:30:01 +0000 Subject: (mix_eval_{set,remove}symbols_from_table, mix_eval_substract_table) new functions (mix_symbol_table_{merge,substract}_table) const-correct --- mixlib/mix_eval.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'mixlib/mix_eval.h') 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 * @@ -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); -- cgit v1.2.3