Overview
Comment:Fixed thinko: brackets don't need need to be escaped in C strings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 50b395aeaf108f397ed5725c30a86e6614e1bf2960816271463c68573fa9961b
User & Date: geraint@users.sourceforge.net on 2002-12-19 17:01:41
Other Links: branch diff | manifest | tags
Context
2002-12-19
19:37:40
Added ps rep: "mtt sys cxxsim ps odes[o]"
"mtt sys cxxsim view" now uses ps
"mtt sys cxxsim gnuplot" now invokes gnuplot viewer
check-in: 53685ef655 user: geraint@users.sourceforge.net tags: origin/master, trunk
17:01:41
Fixed thinko: brackets don't need need to be escaped in C strings. check-in: 50b395aeaf user: geraint@users.sourceforge.net tags: origin/master, trunk
16:48:21
Initial files for gino - see README check-in: b196a153f6 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/rep/cxxsim.cc from [b135fb8c74] to [5e41fc125d].

209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
	    s += c;
	  }
	  file >> c;
	}
      }
      
      // fix vector references
      t = "MTTu\(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mttu[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTx\(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mttx[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTdX\(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 6, "mttdx[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTy\(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mtty[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      
      // strip newlines







|





|





|





|







209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
	    s += c;
	  }
	  file >> c;
	}
      }
      
      // fix vector references
      t = "MTTu(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mttu[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTx(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mttx[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTdX(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 6, "mttdx[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      t = "MTTy(";
      while ((i = s.find(t)) < s.length()){
	s.replace(i, 5, "mtty[");
	i += s.substr(i, s.length()).find(",1)");
	s.replace(i, 3, "]");
      }
      
      // strip newlines


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]