[GRASS-SVN] r52130 - grass/trunk/include/iostream
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jun 18 22:23:26 PDT 2012
Author: glynn
Date: 2012-06-18 22:23:25 -0700 (Mon, 18 Jun 2012)
New Revision: 52130
Modified:
grass/trunk/include/iostream/ami_stream.h
Log:
Fix compilation errors (bug #1676)
Modified: grass/trunk/include/iostream/ami_stream.h
===================================================================
--- grass/trunk/include/iostream/ami_stream.h 2012-06-19 03:56:20 UTC (rev 52129)
+++ grass/trunk/include/iostream/ami_stream.h 2012-06-19 05:23:25 UTC (rev 52130)
@@ -162,7 +162,7 @@
AMI_STREAM();
// An AMI stream based on a specific path name.
- AMI_STREAM(const char *path_name, AMI_stream_type st);
+ AMI_STREAM(const char *path_name, AMI_stream_type st = AMI_READ_WRITE_STREAM);
// convenience function with split path_name
//AMI_STREAM(const char *dir_name, const char *file_name, AMI_stream_type st);
@@ -178,7 +178,7 @@
// Read and write elements.
AMI_err read_item(T **elt);
AMI_err write_item(const T &elt);
- AMI_err read_array(T *data, off_t len, off_t *lenp);
+ AMI_err read_array(T *data, off_t len, off_t *lenp=NULL);
AMI_err write_array(const T *data, off_t len);
// Return the number of items in the stream.
@@ -193,8 +193,7 @@
// Query memory usage
static AMI_err main_memory_usage(size_t *usage,
- //MM_stream_usage usage_type= MM_STREAM_USAGE_OVERHEAD);
- MM_stream_usage usage_type);
+ MM_stream_usage usage_type= MM_STREAM_USAGE_OVERHEAD);
void persist(persistence p);
@@ -270,8 +269,7 @@
/**********************************************************************/
// An AMI stream based on a specific path name.
template<class T>
-AMI_STREAM<T>::AMI_STREAM(const char *path_name,
- AMI_stream_type st = AMI_READ_WRITE_STREAM) {
+AMI_STREAM<T>::AMI_STREAM(const char *path_name, AMI_stream_type st) {
access_mode = st;
@@ -488,8 +486,7 @@
// Query memory usage
template<class T>
AMI_err
-AMI_STREAM<T>::main_memory_usage(size_t *usage,
- MM_stream_usage usage_type= MM_STREAM_USAGE_OVERHEAD) {
+AMI_STREAM<T>::main_memory_usage(size_t *usage, MM_stream_usage usage_type) {
switch (usage_type) {
case MM_STREAM_USAGE_OVERHEAD:
@@ -568,7 +565,7 @@
/**********************************************************************/
template<class T>
-AMI_err AMI_STREAM<T>::read_array(T *data, off_t len, off_t *lenp=NULL) {
+AMI_err AMI_STREAM<T>::read_array(T *data, off_t len, off_t *lenp) {
size_t nobj;
assert(fp);
More information about the grass-commit
mailing list