IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 2, 2005, 11:32:06 AM (21 years ago)
Author:
drobbin
Message:

made requested changes including using file descriptors in psTrace

Location:
trunk/psLib/src/mathtypes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r4920 r4944  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.79 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-08-31 02:07:11 $
     11 *  @version $Revision: 1.80 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2005-09-02 21:32:06 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    473473}
    474474
    475 bool p_psImagePrint (FILE *f, psImage *a, char *name)
    476 {
    477 
     475bool p_psImagePrint (int fd, psImage *a, char *name)
     476{
     477    FILE *f;
     478    f = fdopen(fd, "a+");
    478479    fprintf (f, "matrix: %s\n", name);
    479480
     
    485486    }
    486487    fprintf (f, "\n");
     488    fclose(f);
    487489    return (true);
    488490}
  • trunk/psLib/src/mathtypes/psImage.h

    r4920 r4944  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-08-31 02:07:11 $
     13 *  @version $Revision: 1.66 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-02 21:32:06 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    239239 */
    240240bool p_psImagePrint(
    241     FILE *f,                           ///< Destination stream
     241    int fd,                            ///< Destination file descriptor
    242242    psImage *a,                        ///< image to print
    243243    char *name                         ///< name of the image (for title)
  • trunk/psLib/src/mathtypes/psVector.c

    r4898 r4944  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.50 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2005-08-30 01:14:13 $
     11*  @version $Revision: 1.51 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2005-09-02 21:32:06 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    599599}
    600600
    601 bool p_psVectorPrint (FILE *f,
     601bool p_psVectorPrint (int fd,
    602602                      psVector *a,
    603603                      char *name)
    604604{
    605 
     605    FILE *f;
     606    f = fdopen(fd, "a+");
    606607    fprintf (f, "vector: %s\n", name);
    607608
     
    610611    }
    611612    fprintf (f, "\n");
     613    fclose(f);
    612614    return (true);
    613615}
  • trunk/psLib/src/mathtypes/psVector.h

    r4898 r4944  
    1111 *  @author Ross Harman, MHPCC
    1212 *
    13  *  @version $Revision: 1.42 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2005-08-30 01:14:13 $
     13 *  @version $Revision: 1.43 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2005-09-02 21:32:06 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    192192 */
    193193bool p_psVectorPrint (
    194     FILE *f,                           ///< output stream
     194    int fd,                            ///< output file descriptor
    195195    psVector *a,                       ///< vector to print
    196196    char *name                         ///< name of vector (for title)
Note: See TracChangeset for help on using the changeset viewer.