summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
Diffstat (limited to 'mixlib')
-rw-r--r--mixlib/mix_eval.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/mixlib/mix_eval.c b/mixlib/mix_eval.c
index 683b8ac..5a65391 100644
--- a/mixlib/mix_eval.c
+++ b/mixlib/mix_eval.c
@@ -1,7 +1,7 @@
/* -*-c-*- -------------- mix_eval.c :
* Implementation of the functions declared in mix_eval.h
* ------------------------------------------------------------------
- * Last change: Time-stamp: "00/12/02 23:13:47 jose"
+ * Last change: Time-stamp: "00/12/03 22:27:53 jose"
* ------------------------------------------------------------------
* Copyright (C) 2000 jose antonio ortega ruiz <jaortega@acm.org>
*
@@ -150,5 +150,15 @@ mix_eval_remove_symbol (mix_eval_t *eval, const gchar *symbol)
mix_symbol_table_remove (eval->table, symbol);
}
-
+void
+mix_eval_use_symbol_table (mix_eval_t *eval,
+ mix_symbol_table_t *table)
+{
+ g_return_if_fail (eval != NULL);
+ if (eval->table != NULL && eval->towner)
+ mix_symbol_table_delete (eval->table);
+ eval->table = table;
+ eval->towner = FALSE;
+}
+