Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Craig Neth <neth@zk3.dec.com>
Subject: Re: C compiler: is this normal???????
Date: 1996/07/16	[thread overview]
Message-ID: <31EBAB91.446B@zk3.dec.com> (raw)
In-Reply-To: 4rr492$mtn@highway.leidenuniv.nl


Theo Vosse wrote:
> 
> Hi,
> 
> I wrote in a program:
> 
> #include <ctype.h>
> 
>     if (isalpha(*str))
> 
> And the compiler gave this awful warning:
[... stuff deleted ...]
> Is this normal, or does it have anything to do with the -xtaso_short
> option? I do not have any documentation with exception of the man pages, since
> DEC seems to be economical with documentation when you're under a campus license...

It has _everything_ to do with the -xtaso_short option.   The system
interfaces
are always 64 bits, and the system header files are not protected from
the
effects of the -xtaso_short option.   The Programmers Guide (which you
obviously
don't have) explains all this.  (It also gives a script you can use to
change
the headers on your system) If you change your program to:

#pragma pointer_size (save)
#pragma pointer_size (long)
#include <ctype.h>
#pragma pointer_size (restore)

[...]

It should work as you expect.

-- 
--------------------------------------------------------------------------------
Craig Neth                         ! neth@zk3.dec.com
Digital Equipment Corporation      ! 
110 Spit Brook Road ZKO3-3/Y25     !
Nashua, NH 03062                   ! Opinions expressed herein are my
own.
================================================================================



      reply	other threads:[~1996-07-16  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-08  4:00 C compiler: is this normal??????? Theo Vosse
1996-07-16  4:00 ` Craig Neth [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox