| 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 |
|
|
| 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 |
|
|
| 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 |
|
|
| 130 |
|
|
| 131 |
|
"/*" { |
| 132 |
|
/* ignore comments */ |
| 133 |
< |
u_short done; |
| 133 |
> |
my_short done; |
| 134 |
|
char c; |
| 135 |
|
|
| 136 |
|
done = 0; |
| 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 |
|
|
| 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; |