diff --git a/gcc/m2/gm2-libs-min/M2RTS.def b/gcc/m2/gm2-libs-min/M2RTS.def --- a/gcc/m2/gm2-libs-min/M2RTS.def +++ b/gcc/m2/gm2-libs-min/M2RTS.def @@ -31,11 +31,17 @@ DEFINITION MODULE M2RTS ; FROM SYSTEM IMPORT ADDRESS ; +TYPE + ArgCVEnvP = PROCEDURE (INTEGER, ADDRESS, ADDRESS) ; (* all these procedures do nothing except satisfy the linker. *) +PROCEDURE RegisterModule (name: ADDRESS; + init, fini: ArgCVEnvP; + dependencies: PROC) ; +PROCEDURE RequestDependant (modulename, dependantmodule: ADDRESS) ; PROCEDURE ExecuteTerminationProcedures ; PROCEDURE ExecuteInitialProcedures ; PROCEDURE HALT ; diff --git a/gcc/m2/gm2-libs-min/M2RTS.mod b/gcc/m2/gm2-libs-min/M2RTS.mod --- a/gcc/m2/gm2-libs-min/M2RTS.mod +++ b/gcc/m2/gm2-libs-min/M2RTS.mod @@ -70,4 +70,10 @@ BEGIN END DeconstructModules ; +PROCEDURE RegisterModule (name: ADDRESS; + init, fini: ArgCVEnvP; + dependencies: PROC) ; +BEGIN +END RegisterModule ; + END M2RTS. diff --git a/libgm2/libm2pim/dtoa.cc b/libgm2/libm2pim/dtoa.cc --- a/libgm2/libm2pim/dtoa.cc +++ b/libgm2/libm2pim/dtoa.cc @@ -136,7 +136,7 @@ dtoa_calcmaxsig (char *p, int ndigits) char *o; int x; - e = index (p, 'E'); + e = strchr (p, 'E'); if (e == NULL) x = 0; else @@ -145,7 +145,7 @@ dtoa_calcmaxsig (char *p, int ndigits) x = atoi (e + 1); } - o = index (p, '.'); + o = strchr (p, '.'); if (o == NULL) return strlen (p) + x; else @@ -168,7 +168,7 @@ dtoa_calcdecimal (char *p, int str_size, int x; int l; - e = index (p, 'E'); + e = strchr (p, 'E'); if (e == NULL) x = 0; else @@ -178,7 +178,7 @@ dtoa_calcdecimal (char *p, int str_size, } l = strlen (p); - o = index (p, '.'); + o = strchr (p, '.'); if (o == NULL) x += strlen (p); else