Author Topic: missing right parenthesis  (Read 695 times)

nidud

  • Member
  • *****
  • Posts: 2215
    • https://github.com/nidud/asmc
missing right parenthesis
« 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.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: missing right parenthesis
« Reply #1 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
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

nidud

  • Member
  • *****
  • Posts: 2215
    • https://github.com/nidud/asmc
Re: missing right parenthesis
« Reply #2 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

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 8497
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: missing right parenthesis
« Reply #3 on: April 24, 2021, 01:31:26 AM »
Gratsie  :thup:
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy: