From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9f43e14136d452b6 X-Google-Attributes: gid1164f8,public From: Craig Neth Subject: Re: C compiler: is this normal??????? Date: 1996/07/16 Message-ID: <31EBAB91.446B@zk3.dec.com>#1/1 X-Deja-AN: 169232593 references: <4rr492$mtn@highway.leidenuniv.nl> content-type: text/plain; charset=us-ascii organization: CTG mime-version: 1.0 newsgroups: comp.sys.dec x-mailer: Mozilla 3.0b5aGold (X11; I; OSF1 V4.0 alpha) Theo Vosse wrote: > > Hi, > > I wrote in a program: > > #include > > 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 #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. ================================================================================