=================================================================== RCS file: /home/cvs/OpenXM/src/hgm/mh/src/wmain.c,v retrieving revision 1.4 retrieving revision 1.10 diff -u -p -r1.4 -r1.10 --- OpenXM/src/hgm/mh/src/wmain.c 2013/02/20 05:20:49 1.4 +++ OpenXM/src/hgm/mh/src/wmain.c 2013/03/07 03:00:43 1.10 @@ -1,7 +1,7 @@ /* -$OpenXM: OpenXM/src/hgm/mh/src/wmain.c,v 1.3 2013/02/20 01:06:38 takayama Exp $ -License: LGPL - */ + $OpenXM: OpenXM/src/hgm/mh/src/wmain.c,v 1.9 2013/03/05 05:26:07 takayama Exp $ + License: LGPL +*/ #include #include #include @@ -38,6 +38,7 @@ static int setParamTest(void); static int setParamDefault(void); static int setParam(char *fname); static int showParam(void); +static int next(struct SFILE *fp,char *s, char *msg); /* #define DEBUG */ #ifdef DEBUG @@ -55,28 +56,17 @@ void mh_freeWorkArea(void) { mh_rf(0.0, NULL, 0, NULL, 0); MH_deallocate=0; /* switch to the normal mode. */ } -void *mh_malloc(int s) { - void *p; - p = (void*)malloc(s); - if (p == NULL) { - fprintf(stderr,"No memory.\n"); mh_exit(-1); - } - return(p); -} -mh_free(void *p) { - free(p); - return(0); -} -static mypower(int x,int n) { +static int mypower(int x,int n) { int a,i; a = 1; for (i=0; i