Changeset b7b08c in git for Singular/subexpr.cc


Ignore:
Timestamp:
Oct 14, 1999, 4:27:35 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
548777d246af408b77296a71c16c980b2cef5b35
Parents:
e960943ba1dcfcb333014a2aee474750e8fafe10
Message:
* us short exponent vectors in divisbility tests
* AllocSizeOf
* garbage collection
* scanner/gmp: allow .0 and 1. input of reals


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

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    re960943 rb7b08c  
    55* ABSTRACT: handling of leftv
    66*/
    7 /* $Id: subexpr.cc,v 1.53 1999-09-17 11:42:25 Singular Exp $ */
     7/* $Id: subexpr.cc,v 1.54 1999-10-14 14:27:32 obachman Exp $ */
    88
    99#include <stdlib.h>
     
    331331        if (cmd->arg2.rtyp!=0) cmd->arg2.CleanUp();
    332332        if (cmd->arg3.rtyp!=0) cmd->arg3.CleanUp();
    333         Free((ADDRESS)data,sizeof(ip_command));
     333        FreeSizeOf((ADDRESS)data,ip_command);
    334334        break;
    335335      }
     
    419419  {
    420420    h=e->next;
    421     Free((ADDRESS)e,sizeof(*e));
     421    FreeSizeOf((ADDRESS)e,sSubexpr);
    422422    e=h;
    423423  }
     
    432432      next->next=NULL;
    433433      next->CleanUp();
    434       Free((ADDRESS)next,sizeof(sleftv));
     434      FreeSizeOf((ADDRESS)next,sleftv);
    435435      next=tmp_n;
    436436    } while (next!=NULL);
     
    600600    if (source->next!=NULL)
    601601    {
    602       next=(leftv)Alloc(sizeof(sleftv));
     602      next=(leftv)AllocSizeOf(sleftv);
    603603      next->Copy(source->next);
    604604    }
     
    972972  }
    973973  return Typ();
     974}
     975
     976void sleftv::SetData(void* what)
     977{
     978  if (rtyp == IDHDL)
     979  {
     980    (void*) IDDATA((idhdl)data) = what;
     981  }
     982  else
     983  {
     984    data = what;
     985  }
    974986}
    975987
Note: See TracChangeset for help on using the changeset viewer.