| 3 |
|
#include <cstring> |
| 4 |
|
|
| 5 |
|
#include "Globals.hpp" |
| 6 |
+ |
#include "simError.h" |
| 7 |
|
|
| 8 |
|
/* |
| 9 |
|
* The following section lists all of the defined tokens for the |
| 794 |
|
|
| 795 |
|
// if the key is less than zero, we've had an overflow error |
| 796 |
|
|
| 797 |
< |
fprintf( stderr, |
| 797 |
> |
sprintf( painCave.errMsg, |
| 798 |
|
"There has been an overflow error in the Globals' hash key."); |
| 799 |
< |
exit(0); |
| 799 |
> |
painCave.isFatal = 1; |
| 800 |
> |
simError(); |
| 801 |
|
} |
| 802 |
|
|
| 803 |
|
return key; |
| 814 |
|
key = hash( text ); |
| 815 |
|
the_element->setNext( command_table[key] ); |
| 816 |
|
command_table[key] = the_element; |
| 817 |
< |
}; |
| 817 |
> |
} |