From 0425aadc78680e53000fd0108b540d6eca048516 Mon Sep 17 00:00:00 2001 From: gmcdonald Date: Sat, 13 Feb 2010 01:32:03 +0000 Subject: Moving axis svn, part of TLP move INFRA-2441 git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@909681 13f79535-47bb-0310-9956-ffa450edef68 --- xdocs/coding_conventions.html | 130 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 xdocs/coding_conventions.html (limited to 'xdocs/coding_conventions.html') diff --git a/xdocs/coding_conventions.html b/xdocs/coding_conventions.html new file mode 100644 index 0000000..0015b1a --- /dev/null +++ b/xdocs/coding_conventions.html @@ -0,0 +1,130 @@ +
axis2_ prefix.axis2_int count = 0; +char *prefix = NULL; +
axis2_
+ except for members of a struct.axis2_engine_t * axis2_engine_create(axutil_env_t *environment); +
typedef struct axis2_endpoint_ref {
+ axis2_char_t *address;
+} axis2_endpoint_ref_t;
+#define AXIS2_H +#define AXIS2_ERROR_GET_MESSAGE(error) ((error)->ops->get_message(error)) + +
typedef enum axis2_status_codes {
+ AXIS2_FAILURE = 0,
+ AXIS2_SUCCESS
+} axis2_status_codes_t;
+ int foo()
+ {
+ if (is_bar)
+ {
+ bar();
+ return 1;
+ }
+ else
+ return 0;
+ }
+
+ if (is_foo(a, b)) + bar(a, b); ++
+
if (foo)+ and NOT +
if (foo != NULL)+
if (foo == 7)+ and NOT +
if (7 == foo)+
axutil_env_t struct as the first parameter. If the
+ function is tightly bound to a struct, the second parameter is a pointer to
+ an instance of that struct.AXIS2_FAILURE status code on error whenever possible, or
+ return some other defined error value (in case of returning a struct
+ perhaps). A relevant error code must also be set in the environment's error
+ struct.<standard header files> +<other system headers> +"local header files" + + + +