~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to tests/demos/dialogs.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
258
258
 
259
259
function str=readline()
260
260
// Copyright INRIA
261
 
comm='/'+'/'
 
261
  global LineCount
 
262
  LineCount=LineCount+1
 
263
comm='//'
262
264
blank=' '
263
265
while %t do
264
266
  rep=read(%IO(1),1,1,'(a)')
265
267
  k=strindex(rep,comm)
266
268
  if k<>[] then
267
269
    k=k(1)
268
 
    if part(rep,1:k)<>part(blank,1:k) then 
 
270
    if k>1&part(rep,1:k)<>part(blank,1:k) then 
269
271
      str=stripblanks(part(rep,1:k-1))
270
272
      com=part(rep,k+1:length(rep))
271
273
      if part(str,1:3)=='-->' then