Changeset 597 for trunk/src/fortran/RpLibraryFInterface.cc
- Timestamp:
- Mar 1, 2007 11:24:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fortran/RpLibraryFInterface.cc
r591 r597 688 688 std::string inPath = ""; 689 689 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); 698 706 } 699 707 } … … 712 720 char* path, 713 721 char* fileName, 714 int* fileType,722 int* compress, 715 723 int* append, 716 724 int path_len, … … 729 737 730 738 if (lib) { 731 lib->putFile(inPath,inFileName,* fileType,*append);739 lib->putFile(inPath,inFileName,*compress,*append); 732 740 } 733 741 }
Note: See TracChangeset
for help on using the changeset viewer.