[m-dev.] Tdiff: termination analysis (BIG!)

Fergus Henderson fjh at cs.mu.oz.au
Fri Apr 11 23:12:03 AEST 1997


Christopher Rodd SPEIRS, you wrote:
> 	in my copy of io.m, i have changed io__call_system/2 so that the
> returned status is the return value of the process:
> -       Status = system(Command);
> +       Status = system(Command) >> 8;
> 	Unfortunatly the return value of the system command is not standard,
> so this will not work on all systems.  My question is, should i modify my
> code so that it doesnt need this change to io.m, or should i add this change
> to io.m, with the expectation that it will be improved later to use platform
> independent code?

The ideal solution is to add some code to configure.in to figure out
whether or not the `>> 8' is needed, and change library/io.m to do the
appropriate thing depending on a macro defined in runtime/conf.h.

You should not change io.m unless you change it in a portable way,
e.g. as I just outlined.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list