Skip to content

Commit

Permalink
option -D: if enclosed in quotes, accept white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Baron-von-Riedesel committed Sep 7, 2024
1 parent ea501ed commit 26c6e39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
- fastcall 32-bit (MS style): registers may have hold float arguments.
- no 'implicit far jmp/call to near label' error in pass one; see
group7.asm.
- option -D: accept white spaces if option is enclosed in double quotes
( Masm compatible ).

Other changes:
- write listing reworked.
Expand Down
7 changes: 5 additions & 2 deletions src/cmdline.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,11 @@ static const char *GetNameToken( char *dst, const char *str, int max, char type
//if ( *str == NULLC || *str == ' ' || *str == '\t' )
if ( *str == NULLC )
break;
/* v2.10: don't stop for white spaces if filename is expected and true cmdline is parsed */
if ( ( *str == ' ' || *str == '\t' ) && ( rspidx || type != '@' ) )
/* v2.10: don't stop for white spaces if type = '@' (filename expected) and true cmdline is parsed
* v2.19: don't stop for white spaces if type = '$' ( useful for -D option )
*/
//if ( ( *str == ' ' || *str == '\t' ) && ( rspidx || type != '@' ) )
if ( ( *str == ' ' || *str == '\t' ) && ( rspidx || type == 0 ) )
break;
if ( type == 0 )
if ( *str == '-'
Expand Down

0 comments on commit 26c6e39

Please sign in to comment.