Changeset 2856 in Sophya for trunk/SophyaLib/SysTools
- Timestamp:
- Nov 28, 2005, 7:24:33 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/SysTools/commander.cc
r2796 r2856 847 847 if ( (kw == "for") || (kw == "foreach") || (kw == "forinfile") ) felevel++; 848 848 else if (kw == "end") felevel--; 849 850 int rcbex = 0; 849 851 if (felevel == 0) { // Il faut executer le bloc 850 852 CommanderBloc* curb = CmdBlks.top(); … … 866 868 list<char> xtx; 867 869 TestsStack.push(xtx); 868 curb->Execute();870 rcbex = curb->Execute(); 869 871 // And CommanderBloc and TestResult from the corresponding stacks 870 872 PopStack(false); … … 875 877 } 876 878 else CmdBlks.top()->AddLine(s, kw); 877 _xstatus = 0;878 return( 0);879 _xstatus = rcbex; 880 return(rcbex); 879 881 } 880 882 else if (kw == "end") { … … 1946 1948 int Commander::ExecFile(string& file, vector<string>& args) 1947 1949 { 1948 char line_buff[ 512];1950 char line_buff[1024]; 1949 1951 FILE *fip; 1950 1952 int rcc = 0; … … 1974 1976 bool ohv = histon; 1975 1977 histon = false; 1976 while (fgets(line_buff, 511,fip) != NULL)1978 while (fgets(line_buff,1023,fip) != NULL) 1977 1979 { 1978 1980 if (trace) ShowMessage(line_buff, _MAGENTA_);
Note:
See TracChangeset
for help on using the changeset viewer.