Everhart, Glenn From: levitte@lp.se Sent: Thursday, November 12, 1998 11:22 AM To: Info-VAX@Mvb.Saic.Com Subject: Re: GNU Emacs and reading mail In article Steve Russell writes: > cc/decc/version nl: DEC C V5.5-002 on OpenVMS Alpha V7.1-1H1 and a summary of the problem is: #define MAIL$_NOMOREMSG 8290386 /* in some header file somewhere */ long status; /* in the actual c program */ status = (a function that returns a long); if (status == MAIL$_NOMOREMSG) /* never ever gets here, replaced with: */ if ((abs(status - MAIL$_NOMOREMSG)) < 1) /* this works correctly. */ Thanks for that error report. (please, folks, I do not read comp.os.vms too often, things like this should (also) be sent to gnu-emacs-bugs@vms.gnu.org. But, to comment this, on newer DEC C/VMS versions, the correct status macro (MAIL$_NOMOREMSG) is defined in MAILMSGDEF.H, and it does have the value 8290386. However, there is also MAIL$_NOMOREREC, which has another value, 8314792. So, I wonder if you've tried to compile VMSGETMAIL with /DEBUG and actually checked what status contains on return from that function call? I'd very much like to see the result. -- NEWBIE! read and heed the Guidelines on Posting: http://richard.levitte.org/docs/post_hlp.html --- R Levitte, Levitte Programming; Spannv. 38, I; S-168 35 Bromma; SWEDEN Tel: +46-8-26 52 47; Cell: +46-708-20 09 64; Fax: +46-708-20 06 13 PGP key fingerprint = 35 3E 6C 9E 8C 97 85 24 BD 9F D1 9E 8F 75 23 6B http://richard.levitte.org/pubkey2.asc for my public key. levitte@lp.se "price, performance, quality. Choose any two you like"