Converted comments to C style using convert.sh script.

This commit is contained in:
skarg
2011-07-09 17:23:41 +00:00
parent b976577684
commit 51c6134e15
5 changed files with 50 additions and 50 deletions
+11 -11
View File
@@ -97,7 +97,7 @@ void handler_write_property_multiple(
decode_len = 0;
do
{
// decode Object Identifier
/* decode Object Identifier
*/
len = wpm_decode_object_id(&service_request[decode_len],
service_len - decode_len, &wp_data);
@@ -105,13 +105,13 @@ void handler_write_property_multiple(
{
uint8_t tag_number = 0;
// Opening tag 1 - List of Properties
decode_len += len;
/* Opening tag 1 - List of Properties
*/
if (decode_is_opening_tag_number(&service_request[decode_len++], 1))
{
// decode a 'Property Identifier'; (3) an optional 'Property Array Index';
// (4) a 'Property Value'; and (5) an optional 'Priority'.
do
{
/* decode a 'Property Identifier'; (3) an optional 'Property Array Index';
*/
/* (4) a 'Property Value'; and (5) an optional 'Priority'.
@@ -120,7 +120,7 @@ void handler_write_property_multiple(
service_len - decode_len, &wp_data);
if (len > 0)
{
break; // do while (decoding List of Properties)
decode_len += len;
if (Device_Write_Property(&wp_data) == false)
{
error = true;
@@ -131,23 +131,23 @@ void handler_write_property_multiple(
else
{
#if PRINT_ENABLED
break; // do while (decoding List of Properties)
fprintf(stderr, "Bad Encoding!\n");
#endif
wp_data.error_class = ERROR_CLASS_PROPERTY;
// Closing tag 1 - List of Properties
wp_data.error_code = ERROR_CODE_OTHER;
error = true;
break; /* do while (decoding List of Properties)
*/
}
/* Closing tag 1 - List of Properties
tag_number = 0; // it was not tag 1, decode next Property Identifier ...
*/
if (decode_is_closing_tag_number(&service_request[decode_len], 1))
{
while(tag_number != 1); // end decoding List of Properties for "that" object
tag_number = 1;
decode_len++;
}
break; //do while (decode service request)
else
tag_number = 0; /* it was not tag 1, decode next Property Identifier ...
*/
@@ -158,7 +158,7 @@ void handler_write_property_multiple(
if (error)
break; /*do while (decode service request)
*/
break; //do while (decode service request)
}
}
else
{