ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/BASSlex.l
(Generate patch)

Comparing:
branches/mmeineke/OOPSE/libBASS/BASSlex.l (file contents), Revision 377 by mmeineke, Fri Mar 21 17:42:12 2003 UTC vs.
trunk/OOPSE/libBASS/BASSlex.l (file contents), Revision 854 by mmeineke, Thu Nov 6 19:24:31 2003 UTC

# Line 21 | Line 21 | identifier             ("_"|{letter})({letter}|{digit}|"-"|"_")*
21   /* what to put at the top of the lex code */
22  
23   %{
24 + #include <stdlib.h>
25   #include <stdio.h>
26   #include <string.h>
27  
28 < #include <BASSyacc.h>
29 < #include <BASS_parse.h>
30 < #include <simError.h>
28 > #include "BASSyacc.h"
29 > #include "BASS_parse.h"
30 > #include "simError.h"
31   #ifdef IS_MPI
32   #define __is_lex__
33 < #include <mpiBASS.h>
33 > #include "mpiBASS.h"
34   #endif
35  
36   typedef unsigned short int r_short;
37 + typedef unsigned short  my_short;
38  
39   extern void change_in_file( FILE* in_file );
40  
# Line 105 | Line 107 | int escape_stack_ptr = 0; //keeps track of the escape
107   \".*\"                          {
108                                    /* little routine to strip off the quotes */
109                                    
110 <                                  u_short i;
110 >                                  my_short i;
111                                    i = 0; // index
112                                    while( yytext[i+1] != '\"' ){
113  
# Line 128 | Line 130 | int escape_stack_ptr = 0; //keeps track of the escape
130  
131   "/*"                            {
132                                    /* ignore comments */
133 <                                  u_short done;
133 >                                  my_short done;
134                                    char c;
135  
136                                    done = 0;
# Line 169 | Line 171 | int escape_stack_ptr = 0; //keeps track of the escape
171                                    
172                                    // little routine to strip off the quotes
173  
174 <                                  u_short i;
174 >                                  my_short i;
175                                    i = 0; // index
176                                    while( yytext[i+1] != '\"' ){
177  
# Line 357 | Line 359 | int escape_stack_ptr = 0; //keeps track of the escape
359   <ESCAPE>"//".*\n                /* ignore comments */;
360   <ESCAPE>"/*"                    {
361                                    /* ignore comments */
362 <                                  u_short done;
362 >                                  my_short done;
363                                    char c;
364  
365                                    done = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines