Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!dcl-cs!gdt!ccsmm From: ccsmm@bath.ac.uk (Martin Maclaren) Newsgroups: comp.sys.apollo Subject: Re: gpr calling conventions (was: Re: bitmap and image conversion Message-ID: <1990Apr10.174544.6099@bath.ac.uk> Date: 10 Apr 90 17:45:44 GMT References: <900409.22024335.090386@CMR.CP6> Organization: University of Bath, England Lines: 29 GELINASJ@CMR001.BITNET writes: > The calling conventions have changed -- for the better, I think-- >at SR10 to reflect the wider use of the ANSI C compiler. Since the >"status" parameter must be set by GPR, a pointer to it must be passed >in C. This does not explain why "&status" was not needed before... >Maybe you can explain that if you know Pascal --hum, hum...-- the >APOLLO Pascal that was used for a large part of the AEGIS software. > At SR9, the ..._$... system calls were declared as std_$call in the /sys/ins/....ins.c files. This told the compiler that parameters should be passed by reference to these calls - i.e. cc would no doubt add the necessary &'s Yes, SR10's way looks better - people porting large system call code to SR10 must have had great fun :-) Sorry about my previous message, I was using Pnews which was obviously not set up to handle the way I had things. Also, could somebody tell me the original author of bgc.pas - or could the author get in touch? (I lost the original message.) Should software be posted in this group? I know most of the stuff posted here has been pretty small, but then the old stuff is not readily available from archive sites which have comp.sources.??? etc. Martin