00001
00002
00003
00004 #include <math.h>
00005 #include <stdio.h>
00006 #include "machine.h"
00007 #include "TCL_Global.h"
00008 #include "tksynchro.h"
00009
00010 void C2F(tksynchro)( int *l)
00011 {
00012 char str[128];
00013
00014 if (TK_Started)
00015 {
00016 int RET;
00017
00018 if(TCLinterp != NULL)
00019 {
00020 RET = Tcl_Eval(TCLinterp,"set isscipadinterp [interp exists scipad]");
00021 if (RET==TCL_ERROR)
00022 {
00023 Scierror(999,"Error : tksynchro %s \r\n",TCLinterp->result);
00024 }
00025 if(strcmp((char*) Tcl_GetVar(TCLinterp,"isscipadinterp", TCL_GLOBAL_ONLY),"1")==0)
00026 {
00027 sprintf(str,"scipad eval {set sciprompt %d}",*l);
00028 RET=Tcl_Eval(TCLinterp,str);
00029
00030 if (RET==TCL_ERROR)
00031 {
00032 Scierror(999,"Error : tksynchro %s \r\n",TCLinterp->result);
00033 }
00034 }
00035 }
00036 }
00037 }
00038