Ignore:
Timestamp:
Mar 1, 2007 11:24:02 AM (17 years ago)
Author:
dkearney
Message:

adjusted core makefile to not remove setup.py when doing a make clean
adjusted putFile and putData commands and flags in matlab, octave,fortran,perl
changed the RPLIB_[TEXT,BINARY] flags to RPLIB_COMPRESS and RPLIB_NO_COMPRESS flags
adjusted the c-example for compress to incorporate newly named flags.
adjusted rappture library header to find rappture buffer header files in rappture2 directory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fortran/RpLibraryFInterface.cc

    r591 r597  
    688688    std::string inPath = "";
    689689    RpLibrary* lib = NULL;
    690 
    691     inPath = null_terminate_str(path,path_len);
    692 
    693     if ((handle) && (*handle != 0)) {
    694         lib = getObject_Lib(*handle);
    695 
    696         if (lib) {
    697             lib->putData(inPath,bytes,*nbytes,*append);
     690    int bufferSize = 0;
     691
     692    inPath = null_terminate_str(path,path_len);
     693
     694    if (*nbytes < bytes_len) {
     695        bufferSize = *nbytes;
     696    }
     697    else {
     698        bufferSize = bytes_len;
     699    }
     700
     701    if ((handle) && (*handle != 0)) {
     702        lib = getObject_Lib(*handle);
     703
     704        if (lib) {
     705            lib->putData(inPath,bytes,bufferSize,*append);
    698706        }
    699707    }
     
    712720                        char* path,
    713721                        char* fileName,
    714                         int* fileType,
     722                        int* compress,
    715723                        int* append,
    716724                        int path_len,
     
    729737
    730738        if (lib) {
    731             lib->putFile(inPath,inFileName,*fileType,*append);
     739            lib->putFile(inPath,inFileName,*compress,*append);
    732740        }
    733741    }
Note: See TracChangeset for help on using the changeset viewer.