Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!david.megginson From: david.megginson@canremote.uucp (DAVID MEGGINSON) Newsgroups: comp.sys.atari.st Subject: Re: Calling callgulam from TC Message-ID: <90030820221503@masnet.uucp> Date: 5 Mar 90 15:49:00 GMT Organization: Canada Remote Systems Limited, Mississauga, ON, Canada Lines: 17 > your example is correct. the reason it does'nt work from >Turbo C is that Turbo C passed the arguements in registers by >default, while gulam is expecting them to be on the stack (like the >normal C stack frame conventions). (is there a option in TC to do >this??) The cdecl keyword in Turbo C forces arguments to be passed on the stack rather than in the registers. ie: int cdecl (*_shell_p)( char * cmd ); If you could pass this on to the net, I'd appreciate it. David Megginson, Centre for Medieval Studies BITNET: meggin@vm.epas.utoronto.ca --- * Via ProDoor 3.1R