- Timestamp:
- Mar 31, 1998, 12:36:02 PM (26 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- 751138e12946462278cccd137b6f8ae5f426a649
- Parents:
- bc82d60fa171675a0c23a3e2051318500187aa39
- Location:
- factory/ftest
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/ftest/ChangeLog
rbc82d6 r847ebdd 1 Tue Mar 31 12:33:25 MET DST 1998 Jens Schmidt 2 3 * ChangeLog, ftest_io.cc, fbinops.m4: 4 ***** merge from branch `factory-gcd' to main trunk 5 6 Thu Mar 26 09:29:36 1998 Jens Schmidt <schmidt@mathematik.uni-kl.de> 7 8 **************** <<< changes in branch `factory-gcd' **************** 9 10 **************** !!!!! Repository changed !!!!! **************** 11 12 * gcdUniv0.fex, gcdUnivP.fex, gcdUnivPAlpha.fex, insert.fex, 13 runfex, stdUniv0Gcd.in, stdUnivPGcd.in: files moved in 14 repository from `factory/ftest' to `factory/fex' 15 16 **************** !!!!! Repository changed !!!!! **************** 17 18 * stdUniv0Gcd.in, stdUnivPGcd.in: new files 19 20 * gcd.m4 (main): reads optional argument `algorithm' and calls it 21 using `CFPrimitiveGcdUtil::gcd()' 22 (gcdCheck): compares old and new gcd's 23 24 * gcd.m4 (normalizeGcd): new function. Calls added to 25 `gcdCheck()' 26 27 * gcd.m4 (gcdCheck): declared static 28 29 * runfex (printData): new output option `x'. Column width is 30 adjustable (to zero, too) ar runtime. 31 32 * gcdUnivPAlpha.fex: new file 33 34 * gcdUnivP.fex: prefix `univP' removed from all identifiers 35 36 * gcdUnivP.fex: new file 37 38 * ftest_io.cc (ftestGetCanonicalForm): ignores trailing blanks 39 when reading `-' 40 41 * ftest_io.cc (ftestGetCanonicalForm): `<-' as "read from stdin" 42 specifier replaced by `-' 43 44 Wed Mar 25 08:35:01 1998 Jens Schmidt <schmidt@mathematik.uni-kl.de> 45 46 * runfex: option `-t' added 47 48 Tue Mar 24 11:28:50 1998 Jens Schmidt <schmidt@mathematik.uni-kl.de> 49 50 * runfex (usage): new function. Calls added to main program. 51 52 * runfex (printData): uses stdin instead of `alg*' variables to 53 read data from algorithm. `example()' adapted. 54 55 * runfex (runAlgorithm): bug fix 56 57 * runfex (signalHandlerInterrupt, signalHandleQuit): new functions 58 (trap): handles signals better 59 60 * insert.fex: adapted to new `runfex' format 61 62 * gcd.fex: file splitted up in several smaller files 63 * gcdUniv0.fex: new file 64 65 * runfex: major rewrite. Hopefully the last one. 66 67 Mon Mar 23 17:46:57 1998 Jens Schmidt <schmidt@mathematik.uni-kl.de> 68 69 * randomgcd.m4, ranMulGCD.fex: files removed 70 71 * gcd.fex (collection gcd): `-c 50' removed 72 73 * fbinops.m4 (ftestDivideTest, ftestDivTest, ftestModuloTest): new 74 functions 75 (binOpCFSpecArray): new entries added for `div()' and `mod()'. 76 Extra tests for `operator /()' and `operator %()' added. 77 78 **************** >>> changes in branch `factory-gcd' **************** 79 1 80 Mon Mar 23 16:38:41 1998 Jens Schmidt <schmidt@mathematik.uni-kl.de> 2 81 -
factory/ftest/ftest_io.cc
rbc82d6 r847ebdd 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftest_io.cc,v 1.1 1 1998-03-11 16:10:54schmidt Exp $ */2 /* $Id: ftest_io.cc,v 1.12 1998-03-31 10:36:02 schmidt Exp $ */ 3 3 4 4 //{{{ docu … … 34 34 const char * stringF = canFormSpec; 35 35 stringF = ftestSkipBlancs( stringF ); 36 if ( *stringF == '<' ) { 37 CanonicalForm f; 38 39 stringF++; 40 if ( *stringF == '-' ) { 41 // read canonical form from stdin 36 37 // check for a single minus 38 if ( stringF[0] == '-' ) { 39 const char * tokenCursor = ftestSkipBlancs( stringF+1 ); 40 41 if ( ! *tokenCursor ) { 42 CanonicalForm f; 42 43 cin >> f; 43 } else 44 return f; 45 } 46 } 47 48 // get string to read canonical form from 49 if ( *stringF == '$' ) { 50 const char * tokenCursor = ftestSkipBlancs( stringF+1 ); 51 // read canonical form from environment 52 stringF = getenv( tokenCursor ); 53 if ( ! stringF ) 44 54 ftestError( CanFormSpecError, 45 "not a valid canonical form specification `<%s'\n", 46 stringF ); 47 return f; 48 } else { 49 // get string to read canonical form from 50 if ( *stringF == '$' ) { 51 const char * tokenCursor = ftestSkipBlancs( stringF+1 ); 52 // read canonical form from environment 53 stringF = getenv( tokenCursor ); 54 if ( ! stringF ) 55 ftestError( CanFormSpecError, 56 "no environment variable `$%s' set\n", 57 tokenCursor ); 55 "no environment variable `$%s' set\n", 56 tokenCursor ); 57 } 58 59 // create terminated CanonicalForm 60 int i = strlen( stringF ); 61 char * terminatedStringF = new char[i+2]; 62 char * stringCursor = terminatedStringF; 63 while ( *stringF ) { 64 switch ( *stringF ) { 65 case '.': *stringCursor = '*'; break; 66 case '{': *stringCursor = '('; break; 67 case '}': *stringCursor = ')'; break; 68 default: *stringCursor = *stringF; break; 58 69 } 59 60 // create terminated CanonicalForm 61 int i = strlen( stringF ); 62 char * terminatedStringF = new char[i+2]; 63 char * stringCursor = terminatedStringF; 64 while ( *stringF ) { 65 switch ( *stringF ) { 66 case '.': *stringCursor = '*'; break; 67 case '{': *stringCursor = '('; break; 68 case '}': *stringCursor = ')'; break; 69 default: *stringCursor = *stringF; break; 70 } 71 stringF++; stringCursor++; 72 } 73 *stringCursor++ = ';'; 74 *stringCursor = '\0'; 75 76 // read f and return it 77 CanonicalForm f; 78 istrstream( terminatedStringF ) >> f; 79 delete [] terminatedStringF; 80 return f; 81 } 70 stringF++; stringCursor++; 71 } 72 *stringCursor++ = ';'; 73 *stringCursor = '\0'; 74 75 // read f and return it 76 CanonicalForm f; 77 istrstream( terminatedStringF ) >> f; 78 delete [] terminatedStringF; 79 return f; 82 80 } 83 81 //}}}
Note: See TracChangeset
for help on using the changeset viewer.