axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruwan Janapriya" <>
Subject Correct Axis2/C coding conventions.
Date Sun, 04 May 2008 06:35:22 GMT
Hi All,

Following is extracted from Axis2/C coding convention document [1].

" 4. Function Parameters and Return Value Conventions

      Each function should be passed a pointer to an instance of the
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. "

But almost all the functions implemented in Axis2/C, axutil_env_t is passed
as the *second *parameter if there is a tightly bound struct available(that
struct would be the *first *parameter).

Further to above, AFAIK, in every "if", "else" statements, Axis2/C uses
curly brackets even when there is one line of code present under it. BUT in
the above document has code snippets, which does not adhere to that.

don't we have to correct the document?




View raw message