Rev 78511 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
Modified filessrc/include/R_ext/Connections.hsrc/include/Rconnections.hsrc/library/utils/src/io.csrc/main/connections.csrc/main/dounzip.csrc/main/scan.csrc/modules/internet/internet.csrc/modules/internet/libcurl.csrc/modules/internet/sockconn.cChanges* Created a new struct RConnData which is defined insrc/include/Rconnections.h. Shifted most of the data fields in theRconn struct to this.* Added extractor functions R_connectionDescription andR_connectionClass to give read-only access description and classstrings.* Created a constructor new_connection for private use to simplifymemory allocation and release. This is now used by all of the internalconstructors with the exception of socket connections insrc/modules/internet/sockconn.c. These connections modify theirdescription string and allocate a longer character array to hold themodified name.TestingTested on Linux with the following packagesarchive https://github.com/jimhester/archivecurl https://cran.r-project.org/package=curlBoth have checks on the connections API number which need to be modifiedas I have bumped R_CONNECTIONS_VERSION to 2. The test suite for archivealso need updating for stringsAsFactors=FALSE.The iotools makes no assumptions about the RConn struct as far as I can see.Needs testing on Windows and Solaris.