version 1.49, 2016/03/31 06:41:20 |
version 1.51, 2016/08/24 01:33:53 |
|
|
* 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.48 2015/08/14 13:51:54 fujimoto Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/ctrl.c,v 1.50 2016/04/01 03:04:35 ohara 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; |
|
|
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}, |
#if defined(INTERVAL) |
#if defined(INTERVAL) |
{"zerorewrite",&zerorewrite}, |
{"zerorewrite",&zerorewrite}, |
{"itvplotsize",&Itvplot}, |
{"itvplotsize",&Itvplot}, |
|
|
STRING s; |
STRING s; |
NODE node,p; |
NODE node,p; |
LIST list; |
LIST list; |
|
P f; |
extern Q ox_pari_stream; |
extern Q ox_pari_stream; |
extern int ox_pari_stream_initialized; |
extern int ox_pari_stream_initialized; |
|
extern P ox_pari_starting_function; |
|
|
if ( !arg ) { |
if ( !arg ) { |
*rp = 0; |
*rp = 0; |
|
|
} |
} |
return; |
return; |
} else if ( !strcmp(key,"oxpari_id") ) { |
} else if ( !strcmp(key,"oxpari_id") ) { |
*rp = 0; |
|
if ( argc(arg) == 1 ) { |
if ( argc(arg) == 1 ) { |
if(!ox_pari_stream_initialized) { |
if(!ox_pari_stream_initialized) { |
t=-1; |
t=-1; |
|
|
}else { |
}else { |
t=-1; |
t=-1; |
STOQ(t,*rp); |
STOQ(t,*rp); |
|
} |
|
} |
|
return; |
|
} else if ( !strcmp(key,"oxpari_start") ) { |
|
if ( argc(arg) == 1 ) { |
|
*rp = ox_pari_starting_function; |
|
} else { |
|
f = (Obj)ARG1(arg); |
|
if ( !f || OID(f) == O_P) { |
|
ox_pari_starting_function = f; |
|
*rp = f; |
|
}else { |
|
*rp = 0; |
} |
} |
} |
} |
return; |
return; |