You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dinesh Premalal (JIRA)" <ji...@apache.org> on 2006/02/08 06:55:20 UTC
[jira] Commented: (AXIS2C-45) Guththila ia non-reentrant
[ http://issues.apache.org/jira/browse/AXIS2C-45?page=comments#action_12365527 ]
Dinesh Premalal commented on AXIS2C-45:
---------------------------------------
applied changes to code , after looking at it lets close this jira
thanks,
Dinesh
> Guththila ia non-reentrant
> --------------------------
>
> Key: AXIS2C-45
> URL: http://issues.apache.org/jira/browse/AXIS2C-45
> Project: Axis2-C
> Type: Bug
> Components: Pull Parser - Guththila
> Environment: windows
> Reporter: Ed Slattery
> Priority: Minor
>
> The guththila parser seems to be non-reentrant, as there is a global location for the current message. I have a wsdl which includes an
> XSD, and I parse both using two parsers. The inner one fails as it thinks the current message is whatever the outer one was parsing.
> This can be fixed by moving the mesage into the parser struct:
> /*- enum guththila_event_types guththila_event; */
> typedef struct guththila_xml_pull_parser_s
> {
> guththila_buffer_t *buffer;
> guththila_reader_t *reader;
> guththila_token_t *prefix;
> guththila_token_t *name;
> guththila_token_t *value;
> guththila_stack_t *stack;
> guththila_stack_t *attrib;
> guththila_stack_t *namesp;
> guththila_stack_t *dep;
> int _next;
> int offset;
> int last;
> int unicode_state;
> enum guththila_status status;
> /*+*/ enum guththila_event_types guththila_event;
> } guththila_xml_pull_parser_t;
> Plus replace all occurences of guththila_event with parser->guthtila_event.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira