| version 1.52, 2016/08/26 04:56:07 |
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.51 2016/08/24 01:33:53 noro 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 113 extern int weight_check; |
|
| Line 113 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 No_ox_reset; |
| |
extern int plot_by_bigfloat; |
| |
extern int debug_plot; |
| |
|
| static struct { |
static struct { |
| char *key; |
char *key; |
|
|
| {"weight_check",&weight_check}, |
{"weight_check",&weight_check}, |
| {"no_ox_reset",&No_ox_reset}, |
{"no_ox_reset",&No_ox_reset}, |
| {"fake_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; |
| } |
} |