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

Comparing:
branches/mmeineke/mdtools/BASS_parse/BASS_parse.c (file contents), Revision 10 by mmeineke, Tue Jul 9 18:40:59 2002 UTC vs.
trunk/mdtools/BASS_parse/BASS_parse.c (file contents), Revision 138 by chuckv, Wed Oct 16 21:07:02 2002 UTC

# Line 4 | Line 4
4  
5   #include "BASS_parse.h"
6  
7 + #ifdef IS_MPI
8 + #define __is_lex__
9 + #include "../headers/mpiBASS.h"
10 + #endif
11 +
12   #define HASH_SIZE 211 // the size of the hash table
13   #define SHIFT 4 // the bit shift for the hash index calculation
14  
# Line 84 | Line 89 | int res_word( char* text ){
89  
90   int res_word( char* text ){
91    
87  register unsigned short int i; // loop counter
92    int matched = 0;
93    int key; // the hash key
94    struct res_element* current_ptr; // points to the current hash element
# Line 181 | Line 185 | char* get_definition( char* defined ){
185    // search failed, therefore there is an error
186  
187    fprintf( stderr, "%s was not found in the defined list\n", defined );
188 <  exit(1);
188 > #ifdef IS_MPI
189 >  mpiInterfaceExit();
190 > #endif
191 >  exit(0);
192 >  return NULL;
193   }
194  
195   /*
# Line 264 | Line 272 | int hash ( char* text ){
272  
273      fprintf( stderr,
274               "There has been an overflow error in the hash key.");
275 + #ifdef IS_MPI
276 +    mpiInterfaceExit();
277 + #endif
278      exit(0);
279    }
280    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines