Changeset 2944 in Sophya for trunk/SophyaPI/PIext
- Timestamp:
- Apr 26, 2006, 5:47:13 PM (19 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/basexecut.cc
r2933 r2944 109 109 tokens.erase(tokens.begin()); 110 110 fuf(tokens); 111 return(0); 111 112 } 112 113 catch ( PThrowable & exc ) { … … 114 115 << (string)typeid(exc).name() << " Msg= " 115 116 << exc.Msg() << endl; 116 cout << endl;117 return(-77); 117 118 } 118 119 catch ( ... ) { 119 120 cerr << "\n PIABaseExecutor: Call / Catched Exception ... " 120 121 << endl; 121 cout << endl;122 return(-79); 122 123 } 123 124 #endif -
trunk/SophyaPI/PIext/cxxexecutor.cc
r2762 r2944 158 158 ZSync zs(mutx_cxxe); zs.NOp(); 159 159 160 r c = ExecuteCXX(toks); if(rc) return(1);160 return ( ExecuteCXX(toks) ); 161 161 162 162 } else if(kw == "c++execfrf") { … … 172 172 else rc = FillUserFctFrF(); 173 173 if(rc) return(1); 174 rc = CrFile(); if(rc) return(1); 175 rc = Compile(); if(rc) return(1); 176 rc = Link(); if(rc) return(1); 177 rc = Call(); if(rc) return(1); 174 rc = CrFile(); if(rc) return(rc); 175 rc = Compile(); if(rc) return(rc); 176 rc = Link(); if(rc) return(rc); 177 rc = Call(); 178 return(rc); 178 179 179 180 } else if(kw == "c++args") { … … 190 191 ZSync zs(mutx_cxxe); zs.NOp(); 191 192 192 rc = FillUserCode(toks,2); if(rc) return(1); 193 rc = FillUserFctFrS(); if(rc) return(1); 194 rc = CrFile(tokens[0],tokens[1]); if(rc) return(1); 193 rc = FillUserCode(toks,2); if(rc) return(rc); 194 rc = FillUserFctFrS(); if(rc) return(rc); 195 rc = CrFile(tokens[0],tokens[1]); 196 return(1); 195 197 196 198 } else if(kw == "c++createfrf") { … … 206 208 else rc = FillUserFctFrF(tokens[3]); 207 209 if(rc) return(1); 208 rc = CrFile(tokens[0],tokens[1]); if(rc) return(1); 210 rc = CrFile(tokens[0],tokens[1]); 211 return rc; 209 212 210 213 } else if(kw == "c++compile") { … … 214 217 if(tokens.size()>=1) rc = Compile(tokens[0]); 215 218 else rc = Compile(); 216 if(rc) return(1);219 return(rc); 217 220 218 221 } else if(kw == "c++link") { … … 223 226 else if(tokens.size()>=1) rc = Link(tokens[0]); 224 227 else rc = Link(); 225 if(rc) return(1);228 return(rc); 226 229 227 230 } else if(kw == "c++include") { … … 295 298 { 296 299 int rc=0; 297 rc = FillUserCode(usercode,0); if(rc) return( 1);298 rc = FillUserFctFrS(userfct); if(rc) return( 1);299 rc = CrFile(); if(rc) return( 1);300 rc = Compile(); if(rc) return( 1);301 rc = Link(); if(rc) return( 1);302 rc = Call(); if(rc) return( 1);300 rc = FillUserCode(usercode,0); if(rc) return(rc); 301 rc = FillUserFctFrS(userfct); if(rc) return(rc); 302 rc = CrFile(); if(rc) return(rc); 303 rc = Compile(); if(rc) return(rc); 304 rc = Link(); if(rc) return(rc); 305 rc = Call(); if(rc) return(rc); 303 306 return 0; 304 307 } … … 726 729 if(mPrtLevel>1) cout<<"Link from "<<libname<<" for function "<<func 727 730 <<" (rc="<<rc<<")"<<endl; 728 return 0;731 return rc; 729 732 } 730 733 … … 742 745 if(mCallArgs.size()>0) 743 746 for(uint_4 i=0;i<mCallArgs.size();i++) arg.push_back(mCallArgs[i]); 744 mpiac->ExecuteCommand(key,arg,toks); 745 return 0; 747 return ( mpiac->ExecuteCommand(key,arg,toks) ); 746 748 } 747 749 -
trunk/SophyaPI/PIext/pistdimgapp.cc
r2904 r2944 93 93 94 94 /* --Methode-- */ 95 PIStdImgApp::PIStdImgApp( int narg, char* arg[])96 : PIApplication(420, 320, narg, arg) , resusg(ResourceUsage::RU_All)95 PIStdImgApp::PIStdImgApp(bool fgsmall, int narg, char* arg[]) 96 : PIApplication(420, (fgsmall)?320:220, narg, arg) , resusg(ResourceUsage::RU_All) 97 97 { 98 98 … … 186 186 int msx = 420+mFgScSz*60; 187 187 int msy = 320+mFgScSz*40; 188 int sfgsz = mFgScSz; 189 if (fgsmall) { // Flag petite taille de fenetre 190 if (mFgScSz > 1) mFgScSz = 1; 191 msx = 420+mFgScSz*40; 192 msy = 220+mFgScSz*20; 193 } 188 194 MainWin()->SetSize(msx, msy); 189 195 … … 252 258 redirecout = false; 253 259 // RedirectStdOutErr(true); pas par defaut 260 261 mFgScSz = sfgsz; 254 262 255 263 mObjMgr = new NamedObjMgr(true); … … 1693 1701 PeidaConfigureSignalhandling(fgfpe, fgsegv, true, true); 1694 1702 #else 1695 SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true); 1703 // On active aussi SIGUSR1 pour stopthr 1704 SophyaConfigureSignalhandling(fgfpe, fgsegv, true, true, true); 1696 1705 #endif 1697 1706 m[5]->SetStateMsg(10603, fgfpe); -
trunk/SophyaPI/PIext/pistdimgapp.h
r2800 r2944 46 46 class PIStdImgApp : public PIApplication { 47 47 public: 48 PIStdImgApp( int narg=0, char* arg[]=NULL);48 PIStdImgApp(bool fgsmall=false, int narg=0, char* arg[]=NULL); 49 49 ~PIStdImgApp(); 50 50
Note:
See TracChangeset
for help on using the changeset viewer.