From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,72307b873fdffce6 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,72307b873fdffce6 X-Google-Attributes: gid1164f8,public From: dan@bristol.com (J. Daniel Smith) Subject: Re: errno.h problems in DEC 'C' Date: 1995/08/02 Message-ID: #1/1 X-Deja-AN: 107424151 sender: usenet@bristol.com (USENET News System) references: <3vo921$n4a@pheidippides.axion.bt.co.uk> organization: Bristol Technology Inc. newsgroups: comp.sys.dec,comp.lang.c In <3vo921$n4a@pheidippides.axion.bt.co.uk> thomasgd@boat.bt.com (Greg Thomas) writes: >however, hit a problem with the include file. It #defines it to be >(*cma$tis_errno_get_addr()). The trouble is, we have number of structures that the compiler is allowed to do this, ANSI 4.1.3. >I feel that the DEC 'C' errno.h does not have correct behaviour in it. Is the >DEC 'C' compiler in error (my K&R 2nd Ed does refer to errno as an integer, >but that's all), or am I not allowed to do this? you'll hardly ever find ANSI C problems with the DEC C compiler, if it complains chances are excellent your code is at fault. Dan -- --------------------- message is author's opinion only -------------------- J. Daniel Smith http://www.bristol.com/~dan Bristol Technology Inc. +1 203 438 6969, 438-5013 (FAX) Ridgefield, Connecticut (USA) {info,jobs}@bristol.com