version 1.5, 2013/02/20 05:56:16 |
version 1.6, 2013/02/21 07:30:56 |
|
|
/* |
/* |
$OpenXM: OpenXM/src/hgm/mh/src/wmain.c,v 1.4 2013/02/20 05:20:49 takayama Exp $ |
$OpenXM: OpenXM/src/hgm/mh/src/wmain.c,v 1.5 2013/02/20 05:56:16 takayama Exp $ |
License: LGPL |
License: LGPL |
*/ |
*/ |
#include <stdio.h> |
#include <stdio.h> |
Line 38 static int setParamTest(void); |
|
Line 38 static int setParamTest(void); |
|
static int setParamDefault(void); |
static int setParamDefault(void); |
static int setParam(char *fname); |
static int setParam(char *fname); |
static int showParam(void); |
static int showParam(void); |
|
static int next(struct SFILE *fp,char *s, char *msg); |
|
|
/* #define DEBUG */ |
/* #define DEBUG */ |
#ifdef DEBUG |
#ifdef DEBUG |
Line 63 static mypower(int x,int n) { |
|
Line 64 static mypower(int x,int n) { |
|
} |
} |
#ifdef STANDALONE |
#ifdef STANDALONE |
main(int argc,char *argv[]) { |
main(int argc,char *argv[]) { |
mh_exit(0x7fffffff); /* standalone mode */ |
mh_exit(MH_RESET_EXIT); /* standalone mode */ |
/* mh_main(argc,argv); |
/* mh_main(argc,argv); |
mh_freeWorkArea(); */ |
mh_freeWorkArea(); */ |
mh_main(argc,argv); |
mh_main(argc,argv); |
Line 201 static setParamDefault() { |
|
Line 202 static setParamDefault() { |
|
Xng = 10.0; |
Xng = 10.0; |
} |
} |
|
|
next(struct SFILE *sfp,char *s,char *msg) { |
static next(struct SFILE *sfp,char *s,char *msg) { |
s[0] = '%'; |
s[0] = '%'; |
while (s[0] == '%') { |
while (s[0] == '%') { |
if (!mh_fgets(s,SMAX,sfp)) { |
if (!mh_fgets(s,SMAX,sfp)) { |