Ignore:
Timestamp:
Aug 24, 2011 7:01:44 PM (11 years ago)
Author:
dkearney
Message:

adding a getFile function for rappture library and fortran bindings so fortran users no longer need to know the length of a string a user provides them as input, before compile time. they can now just dump the string into a file, and read the file as they are probably already used to doing. also fixed a bug in teh Rappture::Buffer dump function where it would correctly open a file pointer, but failed the check to see if the file pointer was opened.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpLibraryFStubs.c

    r1018 r2408  
    340340}
    341341
     342int rp_lib_get_file_ (  int* handle,
     343                        char* path,
     344                        char* fileName,
     345                        int path_len,
     346                        int fileName_len) {
     347
     348    return rp_lib_get_file(handle,path,fileName,path_len,fileName_len);
     349}
     350
     351int rp_lib_get_file__ ( int* handle,
     352                        char* path,
     353                        char* fileName,
     354                        int path_len,
     355                        int fileName_len) {
     356
     357    return rp_lib_get_file(handle,path,fileName,path_len,fileName_len);
     358}
     359
     360int RP_LIB_GET_FILE (   int* handle,
     361                        char* path,
     362                        char* fileName,
     363                        int path_len,
     364                        int fileName_len) {
     365
     366    return rp_lib_get_file(handle,path,fileName,path_len,fileName_len);
     367}
     368
    342369void
    343370rp_lib_put_str_ (       int* handle,
     
    353380
    354381void
    355 rp_lib_put_str__ (       int* handle,
     382rp_lib_put_str__ (      int* handle,
    356383                        char* path,
    357384                        char* value,
Note: See TracChangeset for help on using the changeset viewer.