306 | 306 |
$adms_h.="typedef struct s_slist t_slist;\n";
|
307 | 307 |
$adms_h.="typedef t_slist* p_slist;\n";
|
308 | 308 |
$adms_h.="win32_interface FILE *stdadmstdbgimpl;\n";
|
309 | |
$adms_h.="win32_interface FILE *OUT(void);\n";
|
310 | 309 |
$adms_h.="win32_interface FILE *stdadmstdbgimpl;\n";
|
311 | 310 |
$adms_h.="#define stdadmstdbg (stdadmstdbgimpl?stdadmstdbgimpl:stderr)\n";
|
312 | 311 |
$adms_h.="win32_interface int admsmain(const char*xcode,const char*xflag,const char*vacode);\n";
|
|
337 | 336 |
}
|
338 | 337 |
$adms_h.="\n/*-- Miscellaneous routines --*/\n";
|
339 | 338 |
$adms_h.=q@
|
340 | |
win32_interface int BENCOMPATIBILITY;
|
341 | 339 |
win32_interface const double adms_dzero;
|
342 | 340 |
win32_interface double adms_NAN;
|
343 | 341 |
win32_interface p_admst aread (p_admst myadmst);
|
|
737 | 735 |
my$adms_c;
|
738 | 736 |
$adms_c.=$BUILDER;
|
739 | 737 |
$adms_c.="#include \"adms.h\"\n";
|
740 | |
$adms_c.="int BENCOMPATIBILITY=0;\n";
|
741 | 738 |
$adms_c.="const double adms_dzero=0.0;\n";
|
742 | 739 |
$adms_c.="double adms_NAN;\n";
|
743 | 740 |
#enumeration to string
|
|
1393 | 1390 |
p_admst aread (p_admst myadmst)
|
1394 | 1391 |
{
|
1395 | 1392 |
p_admst myadmstread=(myadmst&&myadmst->_pseudo==admse__croix)?(p_admst)((p_attribute)myadmst->_item.p)->_value:myadmst;
|
1396 | |
if(BENCOMPATIBILITY==200 && myadmstread)
|
1397 | |
if(myadmstread->_previous)
|
1398 | |
if(myadmst->_valueto)
|
1399 | |
if(myadmstread->_valueto)
|
1400 | |
if(myadmstread->_valueto==adms_math_valueto_dependency)
|
1401 | |
{
|
1402 | |
if(myadmstread->_previous->_pseudo==admse_variable)
|
1403 | |
{
|
1404 | |
p_variable myvariable=(p_variable)myadmstread->_previous->_item.p;
|
1405 | |
p_variableprototype myvariableprototype=myvariable->_prototype;
|
1406 | |
myadmstread=(myadmst&&myadmst->_pseudo==admse__croix)?(p_admst)((p_attribute)myadmst->_item.p)->_value:myadmst;
|
1407 | |
myadmstread->_item.i=myvariable->_subexpression._math._dependency=myvariableprototype->_dependency;
|
1408 | |
}
|
1409 | |
else if(myadmstread->_previous->_pseudo==admse_math && myadmstread->_previous->_previous->_pseudo==admse_variable)
|
1410 | |
{
|
1411 | |
p_variable myvariable=(p_variable)myadmstread->_previous->_item.p;
|
1412 | |
p_variableprototype myvariableprototype=myvariable->_prototype;
|
1413 | |
myadmstread=(myadmst&&myadmst->_pseudo==admse__croix)?(p_admst)((p_attribute)myadmst->_item.p)->_value:myadmst;
|
1414 | |
myadmstread->_item.i=myvariable->_subexpression._math._dependency=myvariableprototype->_dependency;
|
1415 | |
}
|
1416 | |
}
|
1417 | 1393 |
return myadmstread;
|
1418 | 1394 |
}
|
1419 | 1395 |
int adms_strtol (p_ktransform mytransform,const char* mynumber)
|
|
1930 | 1906 |
win32_interface p_slist globalfileoutputlist;
|
1931 | 1907 |
win32_interface int break_found;
|
1932 | 1908 |
|
|
1909 |
win32_interface FILE *OUT(void);
|
1933 | 1910 |
win32_interface int is_admst (const char* name);
|
1934 | 1911 |
win32_interface int apath_main (int argc,char **argv);
|
1935 | 1912 |
win32_interface void dbxx (p_transform mytransform);
|
|
2807 | 2784 |
char*myname=tsprintf(myadmst,mypath->_text);
|
2808 | 2785 |
p_slist list;
|
2809 | 2786 |
p_adms item=myadmst->_item.p;
|
2810 | |
if(BENCOMPATIBILITY==200 && myadmst && (myadmst->_pseudo==admse_variable))
|
2811 | |
item=(p_adms)((p_variable)myadmst->_item.p)->_prototype;
|
2812 | 2787 |
if(
|
2813 | 2788 |
(myadmst->_pseudo==admse_basicenumeration)
|
2814 | 2789 |
||
|
|
2969 | 2944 |
p_admstvariable mydollar;
|
2970 | 2945 |
p_slist list;
|
2971 | 2946 |
p_adms item=myadmst->_item.p;
|
2972 | |
if(BENCOMPATIBILITY==200 && myadmst && (myadmst->_pseudo==admse_variable))
|
2973 | |
item=(p_adms)((p_variable)myadmst->_item.p)->_prototype;
|
2974 | 2947 |
list=item->_variable;
|
2975 | 2948 |
while(list)
|
2976 | 2949 |
{
|