Changeset 6ae4f5 in git for Singular/lists.cc


Ignore:
Timestamp:
Apr 9, 1997, 2:20:17 PM (27 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
feaddd38f9cf78a784df825347f9f83cbb667a40
Parents:
e2f1c7b90d7253794bed6c9fcd2adf63ddae5124
Message:
* hannes: - corrected scanner.l: parsing of strings in blocks:
            if (1) { write("","}"); }
          - corrected ipassign.cc: assignment of "dummy" types: DEF, NONE
          - corrected sleftv::Print(_), initialisation of _
          - added conversion int->def
          - added CopyD(DEF)
          - in insert(..): object should not be of type NONE (lists.cc:lInsert0)
          - added int*intvec, int*intmat to iparith.cc


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

Legend:

Unmodified
Added
Removed
  • Singular/lists.cc

    re2f1c7 r6ae4f5  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: lists.cc,v 1.3 1997-04-02 15:07:20 Singular Exp $ */
     4/* $Id: lists.cc,v 1.4 1997-04-09 12:19:55 Singular Exp $ */
    55/*
    66* ABSTRACT: handling of the list type
     
    7070lists lInsert0(lists ul, leftv v, int pos)
    7171{
     72  if ((pos<0)||(v->rtyp==NONE))
     73    return NULL;
    7274  lists l=(lists) Alloc(sizeof(slists));
    73   if (pos<0) return NULL;
    7475  l->Init(max(ul->nr+2,pos+1));
    7576  int i,j;
     
    99100  lists ul=(lists)u->CopyD();
    100101  res->data=(char *)lInsert0(ul,v,0);
    101   return FALSE;
     102  return (res->data==NULL);
    102103}
    103104
     
    109110  lists ul=(lists)u->CopyD();
    110111  res->data=(char *)lInsert0(ul,v,(int)w->Data());
    111   return FALSE;
     112  return (res->data==NULL);
    112113}
    113114
     
    119120  lists ul=(lists)u->CopyD();
    120121  res->data=(char *)lInsert0(ul,v,ul->nr+1);
    121   return FALSE;
     122  return (res->data==NULL);
    122123}
    123124
Note: See TracChangeset for help on using the changeset viewer.