The MASM Forum

Projects => MASM32 => Topic started by: nidud on April 24, 2021, 12:18:42 AM

Title: missing right parenthesis
Post by: nidud on April 24, 2021, 12:18:42 AM
Added a more stringent bracket testing in Asmc as it allows this to span over multiple lines, so after a long list of errors on my end this also popped up.

Code: [Select]
Assembling: msort.asm

***********
ASCII build
***********

\masm32\include\winextra.inc(1871) : error A2157: missing right parenthesis
 \masm32\include\winextra.inc(1871): Included by
  \masm32\include\windows.inc(26889): Included by
   msort.asm(35): Main line code
\masm32\include\winextra.inc(1871) : error A2008: syntax error : IS_VALIDSTATEBITS
 \masm32\include\winextra.inc(1871): Included by
  \masm32\include\windows.inc(26889): Included by
   msort.asm(35): Main line code

Masm currently ignore this but it should probably be fixed at some point in time.
Title: Re: missing right parenthesis
Post by: hutch-- on April 24, 2021, 12:44:42 AM
I can't find either in the two reference include files.

Line 1871 in winextra is a blank line.

Line 26889 in windows.inc => include winextra.inc
Title: Re: missing right parenthesis
Post by: nidud on April 24, 2021, 12:54:32 AM
A bit misleading as the assembler gobbles up lines here in search for the end bracket and stops at IFDEF/ENDIF statement below.

The correct line number is 1684.

Code: [Select]
IS_VALIDSTATEBITS                equ (IS_NORMAL or IS_SPLIT or IS_FULLSCREEN or 80000000h or 40000000h
Title: Re: missing right parenthesis
Post by: hutch-- on April 24, 2021, 01:31:26 AM
Gratsie  :thup: