version 1.50, 2016/04/01 03:04:35 |
version 1.55, 2017/09/04 02:10:33 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/ctrl.c,v 1.49 2016/03/31 06:41:20 ohara Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/ctrl.c,v 1.54 2017/09/04 01:57:53 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "parse.h" |
#include "parse.h" |
Line 112 extern int diag_period; |
|
Line 112 extern int diag_period; |
|
extern int weight_check; |
extern int weight_check; |
extern char **ASIRLOADPATH; |
extern char **ASIRLOADPATH; |
extern int ASIRLOADPATH_LEN; |
extern int ASIRLOADPATH_LEN; |
|
extern int No_ox_reset; |
|
extern int plot_by_bigfloat; |
|
extern int debug_plot; |
|
|
static struct { |
static struct { |
char *key; |
char *key; |
|
|
{"no_debug_on_error",&no_debug_on_error}, |
{"no_debug_on_error",&no_debug_on_error}, |
{"diag_period",&diag_period}, |
{"diag_period",&diag_period}, |
{"weight_check",&weight_check}, |
{"weight_check",&weight_check}, |
|
{"no_ox_reset",&No_ox_reset}, |
|
{"fake_ox_reset",&No_ox_reset}, |
|
#if defined(DO_PLOT) |
|
{"plot_by_bigfloat",&plot_by_bigfloat}, |
|
{"debug_plot",&debug_plot}, |
|
#endif |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
{"zerorewrite",&zerorewrite}, |
{"zerorewrite",&zerorewrite}, |
{"itvplotsize",&Itvplot}, |
{"itvplotsize",&Itvplot}, |
|
|
{0,0}, |
{0,0}, |
}; |
}; |
|
|
void Pctrl(arg,rp) |
void Pctrl(NODE arg,Q *rp) |
NODE arg; |
|
Q *rp; |
|
{ |
{ |
int t,i,n; |
int t,i,n; |
int nm,dv; |
int nm,dv; |
|
|
MKNODE(node,s,p); |
MKNODE(node,s,p); |
} |
} |
MKLIST(list,node); |
MKLIST(list,node); |
*rp = list; |
*rp = (Q)list; |
} |
} |
} else { |
} else { |
list = (LIST)ARG1(arg); |
list = (LIST)ARG1(arg); |
|
|
return; |
return; |
} else if ( !strcmp(key,"oxpari_start") ) { |
} else if ( !strcmp(key,"oxpari_start") ) { |
if ( argc(arg) == 1 ) { |
if ( argc(arg) == 1 ) { |
*rp = ox_pari_starting_function; |
*rp = (Q)ox_pari_starting_function; |
} else { |
} else { |
f = (Obj)ARG1(arg); |
f = (P)ARG1(arg); |
if ( !f || OID(f) == O_P) { |
if ( !f || OID(f) == O_P) { |
ox_pari_starting_function = f; |
ox_pari_starting_function = f; |
*rp = f; |
*rp = (Q)f; |
}else { |
}else { |
*rp = 0; |
*rp = 0; |
} |
} |