/[escript]/trunk/escriptcore/src/EscriptParams.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/EscriptParams.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2142 by jfenwick, Tue Dec 9 06:22:57 2008 UTC revision 2146 by jfenwick, Wed Dec 10 02:59:46 2008 UTC
# Line 25  EscriptParams escriptParams;       // externe Line 25  EscriptParams escriptParams;       // externe
25  EscriptParams::EscriptParams()  EscriptParams::EscriptParams()
26  {  {
27     too_many_lines=80;     too_many_lines=80;
28       autolazy=0;
29  }  }
30    
31  int  int
# Line 34  EscriptParams::getInt(const char* name, Line 35  EscriptParams::getInt(const char* name,
35     {     {
36      return too_many_lines;      return too_many_lines;
37     }     }
38       if (!strcmp(name,"AUTOLAZY"))
39       {
40        return autolazy;
41       }
42     return sentinel;     return sentinel;
43  }  }
44        
# Line 44  EscriptParams::setInt(const char* name, Line 49  EscriptParams::setInt(const char* name,
49     {     {
50      too_many_lines=value;      too_many_lines=value;
51     }     }
52       if (!strcmp(name,"AUTOLAZY"))
53       {
54        autolazy=!(value==0);   // set to 1 or zero
55       }
56  }  }
57    
58  void  void
# Line 65  listEscriptParams() Line 74  listEscriptParams()
74     using namespace boost::python;     using namespace boost::python;
75     boost::python::list l;     boost::python::list l;
76     l.append(make_tuple("TOO_MANY_LINES","Maximum number of lines to output when printing data before printing a summary instead."));     l.append(make_tuple("TOO_MANY_LINES","Maximum number of lines to output when printing data before printing a summary instead."));
77       l.append(make_tuple("AUTOLAZY","{0,1} Operations involving Expanded Data will create lazy results."));
78     return l;     return l;
79  }  }
80    

Legend:
Removed from v.2142  
changed lines
  Added in v.2146

  ViewVC Help
Powered by ViewVC 1.1.26