@@ -1114,14 +1114,14 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
1114
1114
1115
1115
for (ptr = defines; ptr != NULL ; ptr2 = ptr, ptr = ptr->next )
1116
1116
{
1117
- if (strcmp (yytext, ptr->old ) == 0 )
1117
+ if (strcmp (yytext, ptr->olddef ) == 0 )
1118
1118
{
1119
1119
if (ptr2 == NULL )
1120
1120
defines = ptr->next ;
1121
1121
else
1122
1122
ptr2->next = ptr->next ;
1123
- free (ptr->new );
1124
- free (ptr->old );
1123
+ free (ptr->newdef );
1124
+ free (ptr->olddef );
1125
1125
free (ptr);
1126
1126
break ;
1127
1127
}
@@ -1300,8 +1300,10 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
1300
1300
yytext[i+1 ] = ' \0 ' ;
1301
1301
1302
1302
for (defptr = defines;
1303
- defptr != NULL && strcmp (yytext, defptr->old ) != 0 ;
1304
- defptr = defptr->next );
1303
+ defptr != NULL &&
1304
+ strcmp (yytext, defptr->olddef ) != 0 ;
1305
+ defptr = defptr->next )
1306
+ /* skip */ ;
1305
1307
1306
1308
preproc_tos++;
1307
1309
stacked_if_value[preproc_tos].else_branch = false ;
@@ -1333,19 +1335,19 @@ cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})((\/\*[^*/]*\*+
1333
1335
1334
1336
for (ptr = defines; ptr != NULL ; ptr = ptr->next )
1335
1337
{
1336
- if (strcmp (old, ptr->old ) == 0 )
1338
+ if (strcmp (old, ptr->olddef ) == 0 )
1337
1339
{
1338
- free (ptr->new );
1339
- ptr->new = mm_strdup (literalbuf);
1340
+ free (ptr->newdef );
1341
+ ptr->newdef = mm_strdup (literalbuf);
1340
1342
}
1341
1343
}
1342
1344
if (ptr == NULL )
1343
1345
{
1344
1346
this = (struct _defines *) mm_alloc (sizeof (struct _defines ));
1345
1347
1346
1348
/* initial definition */
1347
- this ->old = old;
1348
- this ->new = mm_strdup (literalbuf);
1349
+ this ->olddef = old;
1350
+ this ->newdef = mm_strdup (literalbuf);
1349
1351
this ->next = defines;
1350
1352
this ->used = NULL ;
1351
1353
defines = this ;
@@ -1613,7 +1615,7 @@ static bool isdefine(void)
1613
1615
/* is it a define? */
1614
1616
for (ptr = defines; ptr; ptr = ptr->next )
1615
1617
{
1616
- if (strcmp (yytext, ptr->old ) == 0 && ptr->used == NULL )
1618
+ if (strcmp (yytext, ptr->olddef ) == 0 && ptr->used == NULL )
1617
1619
{
1618
1620
struct _yy_buffer *yb;
1619
1621
@@ -1626,7 +1628,7 @@ static bool isdefine(void)
1626
1628
1627
1629
ptr->used = yy_buffer = yb;
1628
1630
1629
- yy_scan_string (ptr->new );
1631
+ yy_scan_string (ptr->newdef );
1630
1632
return true ;
1631
1633
}
1632
1634
}
0 commit comments