Changeset ddf3809 in git


Ignore:
Timestamp:
Sep 29, 1997, 3:10:31 PM (27 years ago)
Author:
Jens Schmidt <schmidt@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
23dfc9451ec05973b0a8996e74349ea9a69fc4dd
Parents:
3abd3ce89c94f6fdff0cd6eb4861219bbe9e2283
Message:
	* ftest_io.cc (ftestPrintResult( .., CF ), ftestPrintResult( ..,
	  int )): use new output format now

	* ftest_io.cc (ftestPrintResult( .., CF ), ftestPrintResult( ..,
	  int )): functions ftestPrintCanonicalForm() and ftestPrintInt()
	  renamed to ftestPrintResult.  All callers changed.  Decarations
	  adapted.


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

Legend:

Unmodified
Added
Removed
  • factory/ftest/ftest_io.cc

    r3abd3c rddf3809  
    11/* emacs edit mode for this file is -*- C++ -*- */
    2 /* $Id: ftest_io.cc,v 1.1 1997-09-24 07:29:17 schmidt Exp $ */
     2/* $Id: ftest_io.cc,v 1.2 1997-09-29 13:10:31 schmidt Exp $ */
    33
    44//{{{ docu
     
    8585//}}}
    8686
    87 //{{{ void ftestPrintCanonicalForm ( const char * resultName, const CanonicalForm & result )
     87//{{{ void ftestPrintResult ( const char * resultName, const CanonicalForm & result )
    8888//{{{ docu
    8989//
    90 // ftestPrintCanonicalForm() - print a canonical form.
     90// ftestPrintResult() - print a canonical form.
    9191//
    9292//}}}
    9393void
    94 ftestPrintCanonicalForm ( const char * resultName, const CanonicalForm & result )
     94ftestPrintResult ( const char * resultName, const CanonicalForm & result )
    9595{
    9696    if ( ftestPrintResultFlag ) {
    97         ftestPrint( "result: %s\n", 0, resultName );
     97        ftestPrint( "result: %s\n", "@@%s\n", resultName );
    9898        cout << result << endl;
    99     }
     99    } else if ( ! ftestPrintFlag )
     100        cout << result << endl;
    100101}
    101102//}}}
    102103
    103 //{{{ void ftestPrintInt ( const char * resultName, const int result )
     104//{{{ void ftestPrintResult ( const char * resultName, const int result )
    104105//{{{ docu
    105106//
    106 // ftestPrintInt() - print an integer.
     107// ftestPrintResult() - print an integer.
    107108//
    108109//}}}
    109110void
    110 ftestPrintInt ( const char * resultName, const int result )
     111ftestPrintResult ( const char * resultName, const int result )
    111112{
    112113    if ( ftestPrintResultFlag ) {
    113         ftestPrint( "result: %s\n", 0, resultName );
     114        ftestPrint( "result: %s\n", "@@%s\n", resultName );
    114115        cout << result << endl;
    115     }
     116    } else if ( ! ftestPrintFlag )
     117        cout << result << endl;
    116118}
    117119//}}}
Note: See TracChangeset for help on using the changeset viewer.