/[ascend]/trunk/test/redirectStdStreams.h
ViewVC logotype

Diff of /trunk/test/redirectStdStreams.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 606 by jds, Mon Nov 14 02:37:20 2005 UTC revision 607 by johnpye, Tue May 16 04:19:20 2006 UTC
# Line 1  Line 1 
1  /*  /*  ASCEND modelling environment
2   *  Standard stream redirection for ASCEND unit tests      Copyright (C) 2005 Jerry St.Clair
3   *      Copyright (C) 2006 Carnegie Mellon University
4   *  Copyright (C) 2005 Jerry St.Clair  
5   *      This program is free software; you can redistribute it and/or modify
6   *  This file is part of the Ascend Environment.      it under the terms of the GNU General Public License as published by
7   *      the Free Software Foundation; either version 2, or (at your option)
8   *  The Ascend Environment is free software; you can redistribute it      any later version.
9   *  and/or modify it under the terms of the GNU General Public License as  
10   *  published by the Free Software Foundation; either version 2 of the      This program is distributed in the hope that it will be useful,
11   *  License, or (at your option) any later version.      but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13   *  The Ascend Environment is distributed in hope that it will be useful,      GNU General Public License for more details.
14   *  but WITHOUT ANY WARRANTY; without even the implied warranty of  
15   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU      You should have received a copy of the GNU General Public License
16   *  General Public License for more details.      along with this program; if not, write to the Free Software
17   *      Foundation, Inc., 59 Temple Place - Suite 330,
18   *  You should have received a copy of the GNU General Public License      Boston, MA 02111-1307, USA.
19   *  along with the program; if not, write to the Free Software Foundation,  *//**
20   *  Inc., 675 Mass Ave, Cambridge, MA 02139 USA.  Check the file named      @file
21   *  COPYING.      Centralized redirection of standard streams to file.
22   */  
23        Many ASCEND routines print messages.  In a testing context, it
24  /** @file      is usually preferable to have output redirected to a file.  This
25   *  Centralized redirection of standard streams to file.      module provides a centralized location for this code (which may
26   *  Many ASCEND routines print messages.  In a testing context, it      end up somewhat platform-dependent).
27   *  is usually preferable to have output redirected to a file.  This  
28   *  module provides a centralized location for this code (which may      Requires:
29   *  end up somewhat platform-dependent).      #include <stdio.h>
30   *  <pre>      #include "utilities/ascConfig.h"
31   *  Requires:     #include <stdio.h>  */
  *                #include "utilities/ascConfig.h"  
  *  
  */  
32    
33  #ifndef REDIRECTSTDSTREAMS_H_SEEN  #ifndef REDIRECTSTDSTREAMS_H_SEEN
34  #define REDIRECTSTDSTREAMS_H_SEEN  #define REDIRECTSTDSTREAMS_H_SEEN
# Line 69  FILE *reset_stdin(void); Line 66  FILE *reset_stdin(void);
66   *  Restores stdin to the console.   *  Restores stdin to the console.
67   *  This function closes the redirection file (if any) and   *  This function closes the redirection file (if any) and
68   *  restores stdin to console output.  It returns a pointer   *  restores stdin to console output.  It returns a pointer
69   *  to the new stdin stream.  Returns NULL if stdin could not   *  to the new stdin stream.  Returns NULL if stdin could not
70   *  be reset.   *  be reset.
71   */   */
72    

Legend:
Removed from v.606  
changed lines
  Added in v.607

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22