Changeset 32e9cd7 in git
- Timestamp:
- Mar 27, 1997, 11:07:37 AM (27 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 718e6708f6fe269520bf488fb0857b6590fd9cc5
- Parents:
- 66d043aa17d40ba553e4a049d7b3b00c55d6ce4a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/int_poly.cc
r66d043 r32e9cd7 1 1 // emacs edit mode for this file is -*- C++ -*- 2 // $Id: int_poly.cc,v 1. 1 1996-05-23 09:33:05 stobbeExp $2 // $Id: int_poly.cc,v 1.2 1997-03-27 10:07:37 schmidt Exp $ 3 3 4 4 /* 5 5 $Log: not supported by cvs2svn $ 6 Revision 1.1 1996/05/23 09:33:05 stobbe 7 "modulocoeff: Bug fix, invert is now handled as it should be. 8 " 9 6 10 // Revision 1.0 1996/05/17 10:59:46 stobbe 7 11 // Initial revision … … 9 13 */ 10 14 15 #ifndef NOSTREAMIO 11 16 #include <string.h> 12 17 #include <strstream.h> 18 #endif /* NOSTREAMIO */ 13 19 14 20 #include "assert.h" 21 15 22 #include "cf_defs.h" 23 16 24 #include "cf_factory.h" 17 25 #include "int_cf.h" … … 43 51 InternalPoly::InternalPoly( const InternalPoly& ) 44 52 { 45 cerr << "ups there is something wrong in your code" << endl;46 }; 53 ASSERT( 0, "ups there is something wrong in your code" ); 54 }; 47 55 48 56 InternalPoly::~InternalPoly() … … 134 142 } 135 143 144 #ifndef NOSTREAMIO 136 145 void 137 146 InternalPoly::print(ostream &aStream, char * aString ) 138 147 { 139 if ( ! firstTerm ) 148 if ( ! firstTerm ) 140 149 aStream << 0 << aString; 141 150 else { … … 176 185 } 177 186 } 187 #endif /* NOSTREAMIO */ 178 188 179 189 InternalCF* … … 990 1000 InternalPoly::copyTermList ( termList aTermList, termList& theLastTerm, bool negate ) 991 1001 { 992 if ( aTermList == 0 ) 1002 if ( aTermList == 0 ) 993 1003 return 0; 994 1004 else if ( negate ) { … … 1029 1039 InternalPoly::deepCopyTermList ( termList aTermList, termList& theLastTerm ) 1030 1040 { 1031 if ( aTermList == 0 ) 1041 if ( aTermList == 0 ) 1032 1042 return 0; 1033 1043 else { … … 1112 1122 predCursor = theList; 1113 1123 } 1114 else 1124 else 1115 1125 if ( predCursor ) { 1116 1126 predCursor->next = new term( theCursor, aCursor->coeff, aCursor->exp ); … … 1122 1132 } 1123 1133 aCursor = aCursor->next; 1124 } 1134 } 1125 1135 else { 1126 1136 predCursor = theCursor;
Note: See TracChangeset
for help on using the changeset viewer.