Axis2/C Coding Conventions

Contents

1. Naming Conventions

1.1 Variables

int count = 0;
char *prefix = NULL;

1.2 Functions

axis2_engine_t * axis2_engine_create(axutil_env_t *environment);

1.3 Structures and User Defined Data Types

typedef struct axis2_endpoint_ref {
    axis2_char_t *address;
} axis2_endpoint_ref_t;

1.4 Macros

#define AXIS2_H
#define AXIS2_ERROR_GET_MESSAGE(error) ((error)->ops->get_message(error))

1.5 Enumerations

typedef enum axis2_status_codes {  
    AXIS2_FAILURE = 0,
    AXIS2_SUCCESS
} axis2_status_codes_t;

2. Indentation and Formatting

3. Comments

4. Function Parameters and Return Value Conventions

5. Include Directives

<standard header files>
<other system headers>
"local header files"