H2INC Version 1.0 Does Not Support _syscall or _stdcall

ID Number: Q73368

6.00 | 6.00

MS-DOS | OS/2

buglist6.00

Summary:

The Microsoft C to MASM Include file Translator (H2INC) version 1.0

that ships with the Microsoft Macro Assembler (MASM) version 6.0 does

not support function prototypes using _syscall or _stdcall.

Page 448 of the "Microsoft Macro Assembler Programmer's Guide" states

that _syscall and _stdcall are accepted, but H2INC generates errors

when it encounters prototypes containing these calling convention

keywords. The _cdecl, _fortran, and _pascal language types are

supported as documented.

More Information:

The following sample prototype demonstrates this problem:

void _syscall sysfunc(void)

When this prototype is processed by H2INC, the following errors are

generated:

warning HI4820: ignoring function definition : _syscall()

error HI2061: syntax error : identifier 'sysfunc'

Similar messages are generated for a prototype containing _stdcall.

Microsoft has confirmed this to be a problem in H2INC version 1.0

(buglist1.00). We are researching this problem and will post new

information here as it becomes available.

Additional reference words: 1.00 6.00