summaryrefslogtreecommitdiffhomepage
path: root/mixlib
diff options
context:
space:
mode:
authorjaortega <jaortega>2000-12-03 21:30:11 +0000
committerjaortega <jaortega>2000-12-03 21:30:11 +0000
commit12a4688bd722a53a21951e4d0795a41620f07c52 (patch)
tree5cf120fec6083faee25744aa62be7fb45c327361 /mixlib
parent66e33ffaa7748d49111d727cfa49522fb563bff7 (diff)
downloadmdk-12a4688bd722a53a21951e4d0795a41620f07c52.tar.gz
mdk-12a4688bd722a53a21951e4d0795a41620f07c52.tar.bz2
(mix_eval_use_table) new function
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;
+}
+