Re: !MS$LOCICAL:2




"Gary L. Scott" <garyscott@xxxxxxx> wrote in message
news:1255dsk44a9hpc4@xxxxxxxxxxxxxxxxxxxxx
philbrierley@xxxxxxxxxxx wrote:
Hi,
I put the following directives at the top of a module and it compiles
OK.

!MS$REAL:8
!MS$INTEGER:4

What is the equivalent for a logical. I get an 'Invalid DEC$ directive
!MS$LOGICAL:2' with the following...

!MS$LOGICAL:2

I am using CVF.

Thanks in advance,

Phil

Doesn't appear to be one for logical in the documentation.


It shouldn't matter. You are saying that all REAL declarations should act as
if they were DOUBLE PRECISION; all INTEGER declarations should act as if
they were INTEGER*4, otherwise known as INTEGER; and all LOGICAL to act as
LOGICAL*2 (which does exist) - but for compatability you are better off
leaving LOGICAL as default kind LOGICAL. If the code *really* does need
LOGICAL*2, then do so a global replace. Better still would be to consult the
manual and setip using KIND rather than *byte decriptors.


.