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

Comparing trunk/OOPSE/libBASS/BASSlex.l (file contents):
Revision 841 by gezelter, Mon Aug 25 21:51:30 2003 UTC vs.
Revision 842 by mmeineke, Wed Oct 29 20:40:08 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  
# Line 33 | Line 34 | typedef        unsigned short  u_short;
34   #endif
35  
36   typedef unsigned short int r_short;
37 < typedef unsigned short  u_short;
37 > typedef unsigned short  my_short;
38  
39   extern void change_in_file( FILE* in_file );
40  
# Line 106 | 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 129 | 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 170 | 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 358 | 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