| 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 |
|
|
| 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 |
| 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 |
|
/* |
| 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 |
|
|