Opened 16 years ago

Closed 16 years ago

#252 closed enhancement (fixed)

expand grammar for #define constants

Reported by: Stephen Siegel Owned by: zirkel
Priority: major Milestone: 1.1
Component: front Version: 1.1
Keywords: constant define pointer null Cc:

Description

The following statements should be allowed, but currently do not parse:

#define X NULL
#define MPI_REQUEST_NULL (MPI_Request)NULL

etc. These should all be legitimate named constants.

Change History (3)

comment:1 by Stephen Siegel, 16 years ago

Milestone: Release 1.01.1
Version: 1.01.1

comment:2 by Stephen Siegel, 16 years ago

Owner: changed from bperry to zirkel
Status: newassigned

comment:3 by zirkel, 16 years ago

Resolution: fixed
Status: assignedclosed

The following statement is now in examples/parserTest/nullCast.c:

#define MPI_REQUEST_NULL (MPI_Request)NULL

Also, #defines, #includes, and declarations can all be interspersed now.

Note: See TracTickets for help on using tickets.