Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!decvax!decwrl!ucbvax!ulowell.CSNET!RIMBOLD From: RIMBOLD@ulowell.CSNET.UUCP Newsgroups: mod.computers.vax Subject: Important change to VMS C v2.2 with VMS v4.4 Message-ID: <8606111059.AA20022@ucbvax.Berkeley.EDU> Date: Tue, 10-Jun-86 10:31:00 EDT Article-I.D.: ucbvax.8606111059.AA20022 Posted: Tue Jun 10 10:31:00 1986 Date-Received: Wed, 11-Jun-86 19:05:31 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 18 Approved: info-vax@sri-kl.arpa While working on some system stuff, I noticed the following change: You used to be able to create a C program and have the entry point to that program be the first procedure in the program, regardless of whether or not that first procedure was named 'main' or not. That no longer happens. It doesn't complain, but doesn't work either. I tried this trick yesterday and noticed that the argc and argv had no relation to reality when I put them into a first procedure as so ' diskuse(argc, argv) '. As soon as I changed the name of the first procedure to main, as so 'main(argc, argv) '. It worked fine. I guess DEC is getting around to making their C a little (very little) more standard. Oh, I almost forgot. The optimizer now works as well. No more garbage about 'Submit an SPR'. 'Rob ulowell!rimbold rimbold@ulowell.CSNET