Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Oct 3, 2022
1 parent 9652f2f commit 6153842
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bld/cc/c/cscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ TOKEN KwLookup( const char *buf, size_t len )
if( !CompFlags.c99_extensions ) {
switch( token ) {
case T_INLINE:
if( !CompFlags.extensions_enabled )
return( T_ID );
break;
if( CompFlags.extensions_enabled )
break;
/* fall through */
case T_RESTRICT:
case T__COMPLEX:
case T__IMAGINARY:
Expand Down Expand Up @@ -259,10 +259,9 @@ static TOKEN doScanName( void )

getIDName( CurrChar );
WriteBufferNullChar();
if( CompFlags.doing_macro_expansion )
return( T_ID );
if( PPControl & PPCTL_NO_EXPAND )
if( CompFlags.doing_macro_expansion || (PPControl & PPCTL_NO_EXPAND) ) {
return( T_ID );
}
mentry = MacroLookup( Buffer );
if( mentry == NULL ) {
if( IS_PPOPERATOR_PRAGMA( Buffer, TokenLen ) ) {
Expand Down

0 comments on commit 6153842

Please sign in to comment.