You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2005/10/14 04:37:41 UTC
svn commit: r320978 - in /webservices/axis2/trunk/c: include/axis2_stream.h
modules/util/src/axis2_stream.c
Author: samisa
Date: Thu Oct 13 19:37:36 2005
New Revision: 320978
URL: http://svn.apache.org/viewcvs?rev=320978&view=rev
Log:
Made it compilable with -O2 options
Modified:
webservices/axis2/trunk/c/include/axis2_stream.h
webservices/axis2/trunk/c/modules/util/src/axis2_stream.c
Modified: webservices/axis2/trunk/c/include/axis2_stream.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_stream.h?rev=320978&r1=320977&r2=320978&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_stream.h (original)
+++ webservices/axis2/trunk/c/include/axis2_stream.h Thu Oct 13 19:37:36 2005
@@ -3,7 +3,7 @@
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * You may obtain count copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@@ -23,8 +23,8 @@
struct axis2_stream_ops;
typedef struct axis2_stream_ops {
- int (*read)(void *buffer, size_t count);
- int (*write)(const void *buffer, size_t count);
+ int (*axis2_stream_read)(void *buffer, size_t count);
+ int (*axis2_stream_write)(const void *buffer, size_t count);
} axis2_stream_ops_t;
typedef struct axis2_stream {
@@ -33,7 +33,7 @@
axis2_stream_t *axis2_stream_create(axis2_allocator_t* allocator, axis2_stream_ops_t* operations);
-#define axis2_stream_read(stream, a, b) ((stream)->ops->read(a, b))
-#define axis2_stream_write(stream, a, b) ((stream)->ops->write(a, b))
+#define axis2_stream_read(stream, buffer, count) ((stream)->ops->axis2_stream_read(buffer, count))
+#define axis2_stream_write(stream, buffer, count) ((stream)->ops->axis2_stream_write(buffer, count))
#endif /* AXIS2_STREAM_H */
Modified: webservices/axis2/trunk/c/modules/util/src/axis2_stream.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/util/src/axis2_stream.c?rev=320978&r1=320977&r2=320978&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/util/src/axis2_stream.c (original)
+++ webservices/axis2/trunk/c/modules/util/src/axis2_stream.c Thu Oct 13 19:37:36 2005
@@ -41,8 +41,8 @@
return NULL;
}
- stream->ops->read = axis2_stream_ops_read;
- stream->ops->write = axis2_stream_ops_write;
+ stream->ops->axis2_stream_read = axis2_stream_ops_read;
+ stream->ops->axis2_stream_write = axis2_stream_ops_write;
}
return stream;