Changeset b7b08c in git for Singular/ipassign.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/ipassign.cc

    re960943 rb7b08c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.49 1999-09-17 11:42:24 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.50 1999-10-14 14:27:07 obachman Exp $ */
    55
    66/*
     
    348348  if(a->rtyp==STRING_CMD)
    349349  {
    350     res->data = (void *)Alloc0(sizeof(procinfo));
     350    res->data = (void *)Alloc0SizeOf(procinfo);
    351351    ((procinfo *)(res->data))->language=LANG_NONE;
    352352    iiInitSingularProcinfo((procinfo *)res->data,"",res->name,0,0);
     
    408408    if (l == NULL)
    409409    {
    410       l = (si_link) Alloc0(sizeof(sip_link));
     410      l = (si_link) Alloc0SizeOf(sip_link);
    411411      res->data = (void *) l;
    412412    }
     
    415415  else if (a->Typ() == LINK_CMD)
    416416  {
    417     if (l != NULL) Free(l, sizeof(sip_link));
     417    if (l != NULL) FreeSizeOf(l, sip_link);
    418418    res->data = slCopy((si_link)a->Data());
    419419    return FALSE;
     
    463463  ring qrr=rCopy(currRing);
    464464  memcpy4(qr,qrr,sizeof(ip_sring));
    465   Free((ADDRESS)qrr,sizeof(ip_sring));
     465  FreeSizeOf((ADDRESS)qrr,ip_sring);
    466466  if (qr->qideal!=NULL) idDelete(&qr->qideal);
    467467  qr->qideal = (ideal)a->CopyD(IDEAL_CMD);
     
    634634  {
    635635    int ri;
    636     leftv rn = (leftv)Alloc0(sizeof(sleftv));
     636    leftv rn = (leftv)Alloc0SizeOf(sleftv);
    637637    BOOLEAN failed=FALSE;
    638638    i=0;
     
    650650        // everything done, clean up temp. variables
    651651        rn->CleanUp();
    652         Free((ADDRESS)rn,sizeof(sleftv));
     652        FreeSizeOf((ADDRESS)rn,sleftv);
    653653        if (failed)
    654654        {
     
    719719  {
    720720    int ri;
    721     leftv rn = (leftv)Alloc0(sizeof(sleftv));
     721    leftv rn = (leftv)Alloc0SizeOf(sleftv);
    722722    BOOLEAN failed=FALSE;
    723723    i=0;
     
    732732        // everything done, clean up temp. variables
    733733        rn->CleanUp();
    734         Free((ADDRESS)rn,sizeof(sleftv));
     734        FreeSizeOf((ADDRESS)rn,sleftv);
    735735        if (failed)
    736736        {
     
    837837{
    838838  int sl = r->listLength();
    839   lists L=(lists)Alloc(sizeof(slists));
     839  lists L=(lists)AllocSizeOf(slists);
    840840  lists oldL;
    841841  leftv h=NULL,o_r=r;
     
    12331233       {
    12341234         h=l->e->next;
    1235          Free((ADDRESS)l->e,sizeof(*(l->e)));
     1235         FreeSizeOf((ADDRESS)l->e,sSubexpr);
    12361236         l->e=h;
    12371237       }
     
    13181318        {
    13191319          h=l->e->next;
    1320           Free((ADDRESS)l->e,sizeof(*(l->e)));
     1320          FreeSizeOf((ADDRESS)l->e,sSubexpr);
    13211321          l->e=h;
    13221322        }
Note: See TracChangeset for help on using the changeset viewer.