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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2010/03/04 15:45:29 UTC
[jira] Resolved: (AXIS2C-1443) axutil_string_create_const() has a
strange signature
[ https://issues.apache.org/jira/browse/AXIS2C-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Samisa Abeysinghe resolved AXIS2C-1443.
---------------------------------------
Resolution: Won't Fix
It is documented right there:
@param str pointer to string.
it is 'pointer to string' not 'pointer to char'
Hence char ** and not char *
> axutil_string_create_const() has a strange signature
> ----------------------------------------------------
>
> Key: AXIS2C-1443
> URL: https://issues.apache.org/jira/browse/AXIS2C-1443
> Project: Axis2-C
> Issue Type: Improvement
> Components: util
> Affects Versions: 1.6.0, Current (Nightly)
> Reporter: Olivier Mengué
>
> axutil_string_create_const() has a strange signature:
> /**
> * Creates a string struct.
> * @param str pointer to string. string struct would not create a duplicate
> * of this and assumes the str would have longer life than that of itself
> * @param env pointer to environment struct
> * @return a pointer to newly created string struct
> */
> AXIS2_EXTERN axutil_string_t *AXIS2_CALL
> axutil_string_create_const(
> const axutil_env_t * env,
> axis2_char_t ** str);
> Why "** str" and not "* str" ?
> I expected to be able to do:
> axutil_string_t *soap_action = axutil_string_create_const(env, "MySoapAction");
> Instead I have to do:
> const axis2_char_t * MySoapAction = "MySoapAction"
> axutil_string_t *soap_action = axutil_string_create_const(env, &MySoapAction);
> This is crazy !
> Same problem for axutil_string_create_assume_ownership().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org