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

Comparing trunk/mdtools/BASS_parse/BASS.l (file contents):
Revision 138 by chuckv, Wed Oct 16 21:07:02 2002 UTC vs.
Revision 157 by mmeineke, Tue Oct 29 21:48:25 2002 UTC

# Line 24 | Line 24 | identifier             ("_"|{letter})({letter}|{digit}|"-"|"_")*
24   #include <stdio.h>
25   #include <string.h>
26   #include "BASS_parse.h"
27 + #include "../headers/simError.h"
28   #ifdef IS_MPI
29   #define __is_lex__
30   #include "../headers/mpiBASS.h"
# Line 235 | Line 236 | int escape_stack_ptr = 0; //keeps track of the escape
236                                        // shove the whole quoted string into the macro
237                                      
238                                        definition[def_ptr] = c;
239 <                                      fprintf( stderr, "%c", c );
239 >                                      //fprintf( stderr, "%c", c );
240                                        def_ptr++;
241                                        check_def_buff( yytext, def_ptr );
242                                        
# Line 243 | Line 244 | int escape_stack_ptr = 0; //keeps track of the escape
244                                        while( c != '\"' ){
245                                        
246                                          definition[def_ptr] = c;
247 <                                      fprintf( stderr, "%c", c );
247 >                                        //fprintf( stderr, "%c", c );
248                                          def_ptr++;
249                                          check_def_buff( yytext, def_ptr );
250  
251                                          c = input();
252                                        }
253                                        definition[def_ptr] = c;
254 <                                      fprintf( stderr, "%c", c );
254 >                                      //fprintf( stderr, "%c", c );
255                                        def_ptr++;
256                                        check_def_buff( yytext, def_ptr );
257                                        c = input();
# Line 286 | Line 287 | int escape_stack_ptr = 0; //keeps track of the escape
287                                          default:
288                                            // the '/' char was a normal symbol
289                                            definition[def_ptr] = '/';
290 <                                      fprintf( stderr, "%c", c );
290 >                                          //fprintf( stderr, "%c", c );
291                                            def_ptr++;
292                                            check_def_buff( yytext, def_ptr );
293                                            break;
# Line 317 | Line 318 | int escape_stack_ptr = 0; //keeps track of the escape
318                                          // we now know the character is a good one
319  
320                                          definition[def_ptr] = c;
321 <                                      fprintf( stderr, "%c", c );
321 >                                        //fprintf( stderr, "%c", c );
322                                          def_ptr++;
323                                          check_def_buff( yytext, def_ptr );
324                                        }
# Line 415 | Line 416 | void check_def_buff( char* defined, int index ){
416    
417    if( index >= DEFINED_BUFFER_SIZE ){
418      
419 <    fprintf( stderr, "Define buffer size exceeded for %s\n", defined );
420 < #ifdef IS_MPI
421 <    mpiInterfaceExit();
421 < #endif
422 <    exit(1);
419 >    sprintf( painCave.errMsg, "Define buffer size exceeded for %s\n", defined );
420 >    painCave.isFatal = 1;
421 >    simError();
422    }
423   }
424  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines