removing the duplicate entry add regressions in the integer module + a change in...
Yann Collette [Mon, 29 Jun 2009 14:15:52 +0000 (16:15 +0200)]
scilab/modules/core/src/c/hashtable_core.c

index fd56c5f..13e6c15 100644 (file)
@@ -118,7 +118,6 @@ int action_hashtable_scilab_functions(int *key,char *name, int *data, SCI_HFUNCT
                                        {
                                        case SCI_HFUNCTIONS_ENTER :
                                                htable[idx].entry.data = *data;
-                                               htable[idx].used = 1;
                                                if (name) strcpy(htable[idx].entry.namefunction,name);
                                                else strcpy(htable[idx].entry.namefunction,"");
                                                return OK;
@@ -156,7 +155,6 @@ int action_hashtable_scilab_functions(int *key,char *name, int *data, SCI_HFUNCT
                                                {
                                                case SCI_HFUNCTIONS_ENTER :
                                                        htable[idx].entry.data = *data; 
-                                                       htable[idx].used = 1;
                                                        if (name) strcpy(htable[idx].entry.namefunction,name);
                                                        else strcpy(htable[idx].entry.namefunction,"");
                                                        return OK;