Author: pini Date: Fri Oct 19 01:47:23 2007 New Revision: 586331 URL: http://svn.apache.org/viewvc?rev=586331&view=rev Log: Removed junk characters
Modified: webservices/axis2/trunk/c/guththila/include/guththila_attribute.h webservices/axis2/trunk/c/guththila/include/guththila_error.h webservices/axis2/trunk/c/guththila/include/guththila_namespace.h webservices/axis2/trunk/c/guththila/include/guththila_reader.h webservices/axis2/trunk/c/guththila/include/guththila_stack.h Modified: webservices/axis2/trunk/c/guththila/include/guththila_attribute.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_attribute.h?rev=586331&r1=586330&r2=586331&view=diff ============================================================================== --- webservices/axis2/trunk/c/guththila/include/guththila_attribute.h (original) +++ webservices/axis2/trunk/c/guththila/include/guththila_attribute.h Fri Oct 19 01:47:23 2007 @@ -21,11 +21,11 @@ #include <guththila_defines.h> #include <guththila_token.h> #include <axutil_utils.h> - EXTERN_C_START() +EXTERN_C_START() #ifndef GUTHTHILA_ATTR_DEF_SIZE #define GUTHTHILA_ATTR_DEF_SIZE 16 -#endif /* */ - typedef struct guththila_attr_s +#endif /* */ +typedef struct guththila_attr_s { guththila_token_t * @@ -36,10 +36,10 @@ guththila_token_t * val; - + } guththila_attr_t; - typedef struct guththila_attr_list_s +typedef struct guththila_attr_list_s { guththila_attr_t * @@ -47,35 +47,35 @@ guththila_stack_t fr_stack; - int + int size; - int + int capacity; - + } guththila_attr_list_t; - guththila_attr_list_t * +guththila_attr_list_t * GUTHTHILA_CALL guththila_attr_list_create(const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_attr_list_init( guththila_attr_list_t * at_list, const axutil_env_t * env); - guththila_attr_t * +guththila_attr_t * GUTHTHILA_CALL guththila_attr_list_get(guththila_attr_list_t * at_list, const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_attr_list_release( guththila_attr_list_t * at_list, guththila_attr_t * attr, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL msuila_attr_list_free_data( guththila_attr_list_t * at_list, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL guththila_attr_list_free( guththila_attr_list_t * at_list, const axutil_env_t * env); - EXTERN_C_END() -#endif /* */ +EXTERN_C_END() +#endif /* */ Modified: webservices/axis2/trunk/c/guththila/include/guththila_error.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_error.h?rev=586331&r1=586330&r2=586331&view=diff ============================================================================== --- webservices/axis2/trunk/c/guththila/include/guththila_error.h (original) +++ webservices/axis2/trunk/c/guththila/include/guththila_error.h Fri Oct 19 01:47:23 2007 @@ -19,78 +19,78 @@ #ifndef GUTHTHILA_ERROR_H #define GUTHTHILA_ERROR_H - EXTERN_C_START() typedef enum guththila_error_l +EXTERN_C_START() typedef enum guththila_error_l { GUTHTHILA_VALIDITY_ERROR, GUTHTHILA_VALIDITY_WARNING, GUTHTHILA_PARSER_ERROR, GUTHTHILA_PARSER_WARNING, } guththila_error_level; - enum guththila_error_codes +enum guththila_error_codes { GUTHTHILA_ERROR_NONE = - 0, GUTHTHILA_ERROR_NO_MEMORY, - GUTHTHILA_ERROR_INVALID_NULL_PARAMETER, - GUTHTHILA_ERROR_INVALID_ITERATOR_STATE, - GUTHTHILA_ERROR_INVALID_NODE_TYPE, - GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT, - GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM, - GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NOT_DECLARED, - GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_element_t_GUTHTHILA_stack_t_EMPTY, - GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE, - GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT, - GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA, - GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_ENTITY_REF_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_XML_VERSION, - GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL, - GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_PREFIX, - GUTHTHILA_STREAM_WRITER_ERROR_OUT_OF_MEMORY, - GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND, - GUTHTHILA_STREAM_READER_ERROR_OUT_OF_MEMORY, - GUTHTHILA_ERROR_INVALID_ENCODING_DECLARATION, - GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF, - GUTHTHILA_ERROR_UNEXPECTED_EOF, - GUTHTHILA_ERROR_PROCESS_EQUAL, - GUTHTHILA_ERROR_INCORRECT_VERSION_INFO, - GUTHTHILA_ERROR_INCORRECT_XML_DECLARATION, - GUTHTHILA_ERROR_VERSION_INFO_NOT_FOUND, - GUTHTHILA_ERROR_ENCODING_DECLARATION_ERROR, - GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES, - GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO, - GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE, - GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION, - GUTHTHILA_ERROR_INVALID_NAME_STARTING_CHARACTER, - GUTHTHILA_ERROR_QUOTES_NOT_FOUND_BEFORE_ATTRIBUTE_VALUE, - GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED, - GUTHTHILA_ERROR_END_TAG_NOT_CLOSED, - GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT, - GUTHTHILA_ERROR_TOKENIZE_ERROR, - GUTHTHILA_ERROR_INVALID_TOKEN_TYPE, - GUTHTHILA_ERROR_NULL_ATTRIBUTE_NAME, - GUTHTHILA_ERROR_NULL_ATTRIBUTE_VALUE, - GUTHTHILA_ERROR_NULL_ATTRIBUTE_PREFIX, - GUTHTHILA_ERROR_REQUESTED_NUMBER_GREATER_THAN_STACK_SIZE, - GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS, - GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX, - GUTHTHILA_WRITER_ERROR_EMPTY_WRITER, - GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS, - GUTHTHILA_WRITER_ERROR_INVALID_BUFFER, - GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME, - GUTHTHILA_WRITER_ERROR_XML_STRING_IN_NAME, - GUTHTHILA_WRITER_ERROR_EXCESS_HYPENS_IN_COMMENT, - GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_ATTRIBUTE, - GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI, - GUTHTHILA_WRITER_ERROR_SAME_ATTRIBUTE_REPEAT, - GUTHTHILA_ERROR_ATTRIBUTE_FREE + 0, GUTHTHILA_ERROR_NO_MEMORY, + GUTHTHILA_ERROR_INVALID_NULL_PARAMETER, + GUTHTHILA_ERROR_INVALID_ITERATOR_STATE, + GUTHTHILA_ERROR_INVALID_NODE_TYPE, + GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT, + GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM, + GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NOT_DECLARED, + GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_element_t_GUTHTHILA_stack_t_EMPTY, + GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE, + GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT, + GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA, + GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_ENTITY_REF_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_XML_VERSION, + GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL, + GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_PREFIX, + GUTHTHILA_STREAM_WRITER_ERROR_OUT_OF_MEMORY, + GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND, + GUTHTHILA_STREAM_READER_ERROR_OUT_OF_MEMORY, + GUTHTHILA_ERROR_INVALID_ENCODING_DECLARATION, + GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF, + GUTHTHILA_ERROR_UNEXPECTED_EOF, + GUTHTHILA_ERROR_PROCESS_EQUAL, + GUTHTHILA_ERROR_INCORRECT_VERSION_INFO, + GUTHTHILA_ERROR_INCORRECT_XML_DECLARATION, + GUTHTHILA_ERROR_VERSION_INFO_NOT_FOUND, + GUTHTHILA_ERROR_ENCODING_DECLARATION_ERROR, + GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES, + GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO, + GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE, + GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION, + GUTHTHILA_ERROR_INVALID_NAME_STARTING_CHARACTER, + GUTHTHILA_ERROR_QUOTES_NOT_FOUND_BEFORE_ATTRIBUTE_VALUE, + GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED, + GUTHTHILA_ERROR_END_TAG_NOT_CLOSED, + GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT, + GUTHTHILA_ERROR_TOKENIZE_ERROR, + GUTHTHILA_ERROR_INVALID_TOKEN_TYPE, + GUTHTHILA_ERROR_NULL_ATTRIBUTE_NAME, + GUTHTHILA_ERROR_NULL_ATTRIBUTE_VALUE, + GUTHTHILA_ERROR_NULL_ATTRIBUTE_PREFIX, + GUTHTHILA_ERROR_REQUESTED_NUMBER_GREATER_THAN_STACK_SIZE, + GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS, + GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX, + GUTHTHILA_WRITER_ERROR_EMPTY_WRITER, + GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS, + GUTHTHILA_WRITER_ERROR_INVALID_BUFFER, + GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME, + GUTHTHILA_WRITER_ERROR_XML_STRING_IN_NAME, + GUTHTHILA_WRITER_ERROR_EXCESS_HYPENS_IN_COMMENT, + GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_ATTRIBUTE, + GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI, + GUTHTHILA_WRITER_ERROR_SAME_ATTRIBUTE_REPEAT, + GUTHTHILA_ERROR_ATTRIBUTE_FREE }; - EXTERN_C_END() -#endif /* */ +EXTERN_C_END() +#endif /* */ Modified: webservices/axis2/trunk/c/guththila/include/guththila_namespace.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_namespace.h?rev=586331&r1=586330&r2=586331&view=diff ============================================================================== --- webservices/axis2/trunk/c/guththila/include/guththila_namespace.h (original) +++ webservices/axis2/trunk/c/guththila/include/guththila_namespace.h Fri Oct 19 01:47:23 2007 @@ -21,11 +21,11 @@ #include <guththila_defines.h> #include <guththila_token.h> #include <axutil_utils.h> - EXTERN_C_START() +EXTERN_C_START() #ifndef GUTHTHILA_NAMESPACE_DEF_SIZE #define GUTHTHILA_NAMESPACE_DEF_SIZE 4 -#endif /* */ - typedef struct guththila_namespace_s +#endif /* */ +typedef struct guththila_namespace_s { guththila_token_t * @@ -33,10 +33,10 @@ guththila_token_t * uri; - + } guththila_namespace_t; - typedef struct guththila_namespace_list_s +typedef struct guththila_namespace_list_s { guththila_namespace_t * @@ -44,36 +44,36 @@ guththila_stack_t fr_stack; - int + int size; - int + int capacity; - + } guththila_namespace_list_t; - guththila_namespace_list_t * +guththila_namespace_list_t * GUTHTHILA_CALL guththila_namespace_list_create(const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_namespace_list_init( guththila_namespace_list_t * at_list, const axutil_env_t * env); - guththila_namespace_t * +guththila_namespace_t * GUTHTHILA_CALL guththila_namespace_list_get(guththila_namespace_list_t * at_list, const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_namespace_list_release( guththila_namespace_list_t * at_list, guththila_namespace_t * namesp, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL msuila_namespace_list_free_data( guththila_namespace_list_t * at_list, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL guththila_namespace_list_free( guththila_namespace_list_t * at_list, const axutil_env_t * env); - EXTERN_C_END() -#endif /* */ +EXTERN_C_END() +#endif /* */ Modified: webservices/axis2/trunk/c/guththila/include/guththila_reader.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_reader.h?rev=586331&r1=586330&r2=586331&view=diff ============================================================================== --- webservices/axis2/trunk/c/guththila/include/guththila_reader.h (original) +++ webservices/axis2/trunk/c/guththila/include/guththila_reader.h Fri Oct 19 01:47:23 2007 @@ -21,63 +21,63 @@ #include <stdio.h> #include <guththila_defines.h> #include <axutil_utils.h> - EXTERN_C_START() typedef int( +EXTERN_C_START() typedef int( GUTHTHILA_CALL * GUTHTHILA_READ_INPUT_CALLBACK)( char *buffer, int size, - void *ctx); - enum guththila_reader_type + void *ctx); +enum guththila_reader_type { GUTHTHILA_FILE_READER = - 1, GUTHTHILA_IO_READER, GUTHTHILA_MEMORY_READER + 1, GUTHTHILA_IO_READER, GUTHTHILA_MEMORY_READER }; - typedef struct guththila_reader_s +typedef struct guththila_reader_s { - int + int type; FILE * fp; - char * + char * buff; - int + int buff_size; GUTHTHILA_READ_INPUT_CALLBACK input_read_callback; - void * + void * context; - + } guththila_reader_t; - + #ifndef GUTHTHILA_READER_SET_LAST_START #define GUTHTHILA_READER_SET_LAST_START(_reader, _start) ((_reader)->start = _start) -#endif /* */ +#endif /* */ #ifndef GUTHTHILA_READER_STEP_BACK #define GUTHTHILA_READER_STEP_BACK(_reader) ((_reader->next--)) -#endif /* */ - GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL +#endif /* */ +GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL guththila_reader_create_for_file(char *filename, const axutil_env_t * env); - GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL +GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL guththila_reader_create_for_io(GUTHTHILA_READ_INPUT_CALLBACK input_read_callback, void *ctx, const axutil_env_t * env); - GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL +GUTHTHILA_EXPORT guththila_reader_t * GUTHTHILA_CALL guththila_reader_create_for_memory(void *buffer, int size, const axutil_env_t * env); - GUTHTHILA_EXPORT int GUTHTHILA_CALL guththila_reader_read( +GUTHTHILA_EXPORT int GUTHTHILA_CALL guththila_reader_read( guththila_reader_t * r, guththila_char * buffer, int offset, int length, const axutil_env_t * env); - GUTHTHILA_EXPORT void GUTHTHILA_CALL guththila_reader_free( +GUTHTHILA_EXPORT void GUTHTHILA_CALL guththila_reader_free( guththila_reader_t * r, const axutil_env_t * env); - EXTERN_C_END() -#endif /* */ +EXTERN_C_END() +#endif /* */ Modified: webservices/axis2/trunk/c/guththila/include/guththila_stack.h URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/guththila/include/guththila_stack.h?rev=586331&r1=586330&r2=586331&view=diff ============================================================================== --- webservices/axis2/trunk/c/guththila/include/guththila_stack.h (original) +++ webservices/axis2/trunk/c/guththila/include/guththila_stack.h Fri Oct 19 01:47:23 2007 @@ -24,7 +24,7 @@ #include <guththila_defines.h> #include <axutil_utils.h> #define GUTHTHILA_STACK_DEFAULT 16 - EXTERN_C_START() typedef struct guththila_stack_s +EXTERN_C_START() typedef struct guththila_stack_s { /* Number of Items in the stack */ @@ -34,62 +34,62 @@ /* Max number of Items that can be hold in data */ int max; - void ** + void ** data; - + } guththila_stack_t; - + #ifndef GUTHTHILA_STACK_SIZE #define GUTHTHILA_STACK_SIZE(_stack) ((_stack).top) -#endif /* */ +#endif /* */ #ifndef GUTHTHILA_STACK_TOP_INDEX #define GUTHTHILA_STACK_TOP_INDEX(_stack) (((_stack).top - 1)) -#endif /* */ - guththila_stack_t * +#endif /* */ +guththila_stack_t * GUTHTHILA_CALL guththila_stack_create(const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_stack_init( guththila_stack_t * stack, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL guththila_stack_free( guththila_stack_t * stack, const axutil_env_t * env); - void GUTHTHILA_CALL +void GUTHTHILA_CALL guththila_stack_un_init( guththila_stack_t * stack, const axutil_env_t * env); - void * +void * GUTHTHILA_CALL guththila_stack_pop( guththila_stack_t * stack, const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_stack_push( guththila_stack_t * stack, void *data, const axutil_env_t * env); - void * +void * GUTHTHILA_CALL guththila_stack_peek( guththila_stack_t * stack, const axutil_env_t * env); - void * +void * GUTHTHILA_CALL guththila_stack_get_by_index( guththila_stack_t * stack, int index, const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_stack_del_top( guththila_stack_t * stack, const axutil_env_t * env); - int GUTHTHILA_CALL +int GUTHTHILA_CALL guththila_stack_is_empty( guththila_stack_t * stack, const axutil_env_t * env); - EXTERN_C_END() -#endif /* */ +EXTERN_C_END() +#endif /* */ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]