ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/interface_implementation/Globals.cpp
(Generate patch)

Comparing trunk/mdtools/interface_implementation/Globals.cpp (file contents):
Revision 134 by chuckv, Fri Oct 11 15:09:09 2002 UTC vs.
Revision 160 by mmeineke, Wed Oct 30 22:38:22 2002 UTC

# Line 3 | Line 3
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
# Line 793 | Line 794 | int Globals::hash( char* text ){
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines