Changeset 5d466e in git


Ignore:
Timestamp:
Jun 6, 2006, 7:17:06 PM (17 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
54e84caff739c3553691638a0b6127d496e50d1f
Parents:
aaa39a5f3bfb59db4dc34d109d40f75d267a1ff9
Message:
*hannes: fastmap(map)


git-svn-id: file:///usr/local/Singular/svn/trunk@9181 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipshell.cc

    raaa39a5 r5d466e  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipshell.cc,v 1.136 2006-02-02 10:11:18 Singular Exp $ */
     4/* $Id: ipshell.cc,v 1.137 2006-06-06 17:17:06 Singular Exp $ */
    55/*
    66* ABSTRACT:
     
    726726    else if ((w=IDRING(r)->idroot->get(what,myynest))!=NULL)
    727727    {
     728      char *save_r=NULL;
    728729      v=(leftv)omAlloc0Bin(sleftv_bin);
    729730      sleftv tmpW;
    730731      memset(&tmpW,0,sizeof(sleftv));
    731732      tmpW.rtyp=IDTYP(w);
     733      if (tmpW.rtyp==MAP_CMD)
     734      {
     735        tmpW.rtyp=IDEAL_CMD;
     736        save_r=IDMAP(w)->preimage;
     737        IDMAP(w)->preimage=0;
     738      }
    732739      tmpW.data=IDDATA(w);
    733740      #ifdef FAST_MAP
     
    747754        Werror("cannot map %s(%d)",Tok2Cmdname(w->typ),w->typ);
    748755        omFreeBin((ADDRESS)v, sleftv_bin);
     756        if (save_r!=NULL) IDMAP(w)->preimage=save_r;
    749757        return NULL;
     758      }
     759      if (save_r!=NULL)
     760      {
     761        IDMAP(w)->preimage=save_r;
     762        IDMAP((idhdl)v)->preimage=omStrDup(save_r);
     763        v->rtyp=MAP_CMD;
    750764      }
    751765      return v;
Note: See TracChangeset for help on using the changeset viewer.