|
Lines 2166-2176
int main(int ARGC, char *ARGV[]){
Link Here
|
| 2166 |
printf("%s\n","Running ./xcas"); |
2166 |
printf("%s\n","Running ./xcas"); |
| 2167 |
continue; |
2167 |
continue; |
| 2168 |
} |
2168 |
} |
|
|
2169 |
#ifdef HAVE_LIBFLTK |
| 2169 |
if (s=="xcas"){ |
2170 |
if (s=="xcas"){ |
| 2170 |
giac::gen ge; std::string filename; |
2171 |
giac::gen ge; std::string filename; |
| 2171 |
xcas::fltk_view(0,ge,"session.xws",filename,5,contextptr); |
2172 |
xcas::fltk_view(0,ge,"session.xws",filename,5,contextptr); |
| 2172 |
continue; |
2173 |
continue; |
| 2173 |
} |
2174 |
} |
|
|
2175 |
#endif |
| 2174 |
if (s=="giac"){ |
2176 |
if (s=="giac"){ |
| 2175 |
python_compat(python_compat(contextptr)&3,contextptr); |
2177 |
python_compat(python_compat(contextptr)&3,contextptr); |
| 2176 |
printf("%s\n","Switching to giac interpreter"); |
2178 |
printf("%s\n","Switching to giac interpreter"); |
|
Lines 2251-2257
int main(int ARGC, char *ARGV[]){
Link Here
|
| 2251 |
#else |
2253 |
#else |
| 2252 |
start=clock(); |
2254 |
start=clock(); |
| 2253 |
#endif |
2255 |
#endif |
|
|
2256 |
#ifdef HAVE_LIBFLTK |
| 2254 |
xcas::icas_eval(gq,ge,reading_file,filename,contextptr); |
2257 |
xcas::icas_eval(gq,ge,reading_file,filename,contextptr); |
|
|
2258 |
#endif |
| 2255 |
#ifdef __APPLE_ |
2259 |
#ifdef __APPLE_ |
| 2256 |
startc=clock()-startc; |
2260 |
startc=clock()-startc; |
| 2257 |
#endif |
2261 |
#endif |
|
Lines 2265-2273
int main(int ARGC, char *ARGV[]){
Link Here
|
| 2265 |
// 2-d plot? |
2269 |
// 2-d plot? |
| 2266 |
int graph_output=graph_output_type(ge); |
2270 |
int graph_output=graph_output_type(ge); |
| 2267 |
if (reading_file>=2 || graph_output || (giac::ckmatrix(ge,true) &&ge.subtype==giac::_SPREAD__VECT) ){ |
2271 |
if (reading_file>=2 || graph_output || (giac::ckmatrix(ge,true) &&ge.subtype==giac::_SPREAD__VECT) ){ |
|
|
2272 |
#ifdef HAVE_LIBFLTK |
| 2268 |
if (xcas::fltk_view(gq,ge,"",filename,reading_file,contextptr)) |
2273 |
if (xcas::fltk_view(gq,ge,"",filename,reading_file,contextptr)) |
| 2269 |
cout << "Done"; |
2274 |
cout << "Done"; |
| 2270 |
else |
2275 |
else |
|
|
2276 |
#endif |
| 2271 |
cout << "Plot cancelled or unable to plot"; |
2277 |
cout << "Plot cancelled or unable to plot"; |
| 2272 |
} |
2278 |
} |
| 2273 |
else { |
2279 |
else { |