Changeset b7b08c in git for Singular/iplib.cc


Ignore:
Timestamp:
Oct 14, 1999, 4:27:35 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'fc741b6502fd8a97288eaa3eba6e5220f3c3df87')
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/iplib.cc

    re960943 rb7b08c  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.65 1999-09-27 15:32:54 obachman Exp $ */
     4/* $Id: iplib.cc,v 1.66 1999-10-14 14:27:09 obachman Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    274274  if (v!=NULL)
    275275  {
    276     iiCurrArgs=(leftv)Alloc(sizeof(sleftv));
     276    iiCurrArgs=(leftv)AllocSizeOf(sleftv);
    277277    memcpy(iiCurrArgs,v,sizeof(sleftv));
    278278    memset(v,0,sizeof(sleftv));
     
    431431                 break;
    432432    case LANG_C:
    433                  leftv res = (leftv)Alloc0(sizeof(sleftv));
     433                 leftv res = (leftv)Alloc0SizeOf(sleftv);
    434434                 err = (pi->data.o.function)(res, sl);
    435435                 iiRETURNEXPR[myynest+1].Copy(res);
    436                  Free((ADDRESS)res, sizeof(sleftv));
     436                 FreeSizeOf((ADDRESS)res, sleftv);
    437437                 break;
    438438  }
     
    511511    if (!err) Warn("too many arguments for %s",IDID(pn));
    512512    iiCurrArgs->CleanUp();
    513     Free((ADDRESS)iiCurrArgs,sizeof(sleftv));
     513    FreeSizeOf((ADDRESS)iiCurrArgs,sleftv);
    514514    iiCurrArgs=NULL;
    515515  }
     
    11601160    if(lp==NULL)
    11611161    {
    1162       libstackv ls = (libstack *)Alloc0(sizeof(libstack));
     1162      libstackv ls = (libstack *)Alloc0SizeOf(libstack);
    11631163      ls->next = this;
    11641164      ls->libname = mstrdup(libname);
     
    11751175  //FreeL((ADDRESS)ls->libname);
    11761176  library_stack = ls->next;
    1177   Free((ADDRESS)ls, sizeof(libstack));
     1177  FreeSizeOf((ADDRESS)ls, libstack);
    11781178  return(library_stack);
    11791179}
Note: See TracChangeset for help on using the changeset viewer.