Changeset 752a5a in git for Singular/iplib.cc


Ignore:
Timestamp:
Sep 22, 1999, 4:49:37 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
560432aa8601a1f4136751b1d867f6c21d03d06e
Parents:
acd64363f3a94a76f781aa7beb80a6853c595eba
Message:
* inserted some assumes


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

Legend:

Unmodified
Added
Removed
  • Singular/iplib.cc

    racd643 r752a5a  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iplib.cc,v 1.61 1999-09-22 14:42:33 Singular Exp $ */
     4/* $Id: iplib.cc,v 1.62 1999-09-22 14:49:37 obachman Exp $ */
    55/*
    66* ABSTRACT: interpreter: LIB and help
     
    197197    *e=ct;
    198198    argstr=iiProcArgs(e,TRUE);
     199
     200    assume(pi->data.s.body_end > pi->data.s.body_start);
     201
    199202    procbuflen = pi->data.s.body_end - pi->data.s.body_start;
    200203    pi->data.s.body = (char *)AllocL( strlen(argstr)+procbuflen+15+
     
    202205    //Print("Body=%ld-%ld=%d\n", pi->data.s.body_end,
    203206    //    pi->data.s.body_start, procbuflen);
    204     if (pi->data.s.body==NULL)
    205     {
    206       Werror( "unable to allocate proc buffer `%s`", pi->procname );
    207       return NULL;
    208     }
     207    assume(pi->data.s.body != NULL);
    209208    fseek(fp, pi->data.s.body_start, SEEK_SET);
    210209    strcpy(pi->data.s.body,argstr);
Note: See TracChangeset for help on using the changeset viewer.