--- stack/stack.c 2002/02/07 23:53:14 1.51 +++ stack/stack.c 2002/02/08 00:25:57 1.54 @@ -1,14 +1,12 @@ -/* printf */ +/* printf, sscanf, fgets, fprintf */ #include -/* EXIT_SUCCESS */ +/* exit, EXIT_SUCCESS, malloc, free */ #include /* NULL */ #include /* dlopen, dlsym, dlerror */ #include -/* assert */ -#include -/* strcat */ +/* strcmp, strcpy, strlen, strcat, strdup */ #include #define HASHTBLSIZE 65536 @@ -101,7 +99,9 @@ } free(val); /* Free the actual list value */ break; - default: + case integer: + case func: + case symb: break; } } @@ -207,8 +207,8 @@ strcpy(new_string, "sx_"); /* Stack eXternal */ current=new_string+3; while(old_string[0] != '\0'){ - current[0]=validchars[old_string[0]/16]; - current[1]=validchars[old_string[0]%16]; + current[0]=validchars[(unsigned char)(old_string[0])/16]; + current[1]=validchars[(unsigned char)(old_string[0])%16]; current+=2; old_string++; } @@ -541,7 +541,8 @@ free(temp_string); break; - default: + case integer: + break; } }