Changeset ee8cdb in git for Singular/ipshell.cc


Ignore:
Timestamp:
Jan 30, 2017, 4:49:22 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
7b4ca1ff3d1b3fda428fb520644afc4fd4ce71d3
Parents:
7fcc5b108e080c630a6e6190bdcccc10fca68ccd
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-01-30 16:49:22+01:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2017-01-30 17:07:14+01:00
Message:
fix: branchTo can return results (via _)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    r7fcc5b1 ree8cdb  
    12511251    si_opt_2=save2;
    12521252    // now save the return-expr.
    1253     memcpy(res,&iiRETURNEXPR,sizeof(sleftv));
     1253    sLastPrinted.CleanUp(currRing);
     1254    memcpy(&sLastPrinted,&iiRETURNEXPR,sizeof(sleftv));
    12541255    iiRETURNEXPR.Init();
    12551256    // warning about args.:
     
    12711272    killlocals(myynest);
    12721273    // - return
    1273     newBuffer(omStrDup("\n;return();\n"),BT_execute);
     1274    newBuffer(omStrDup("\n;return(_);\n"),BT_execute);
    12741275    return (err!=0);
    12751276  }
Note: See TracChangeset for help on using the changeset viewer.