URL
https://opencores.org/ocsvn/zipcpu/zipcpu/trunk
[/] [zipcpu/] [trunk/] [sw/] [zasm/] [zasm.l] - Diff between revs 13 and 16
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 13 |
Rev 16 |
Line 49... |
Line 49... |
%option yylineno
|
%option yylineno
|
%option warn
|
%option warn
|
|
|
%%
|
%%
|
|
|
^"#line"[ \t]+[0-9]+[ \t]+["][^"]*["][ \t]*$ {
|
^"#line"[ \t]+[0-9]+[ \t]+[\"][^"]*[\"][ \t]*$ {
|
yylineno = atoi(&yytext[6]);
|
yylineno = atoi(&yytext[6]);
|
char *bg, *en;
|
char *bg, *en;
|
bg = strchr(yytext, '\"')+1;
|
bg = strchr(yytext, '\"')+1;
|
en = strchr(bg, '\"'); *en = '\0';
|
en = strchr(bg, '\"'); *en = '\0';
|
if ((master_input_filename == NULL)||(strcmp(master_input_filename, bg)!=0)) {
|
if ((master_input_filename == NULL)||(strcmp(master_input_filename, bg)!=0)) {
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.