Remarks are ; surely we should use // or /* */
Posted by:
stephen george
()
Date: October 30, 2009 10:56PM
Guys,
Going through the firmware code and it looks like the code is using ; as a remark.
Surely we should be following the C convention of // or /* and */.
; is a line terminator in C and PL/SQL
regards
Stephen
Here is the code in question in process_string
//newlines are ends of commands.
if (c != '\n')
{
// Start of comment - ignore any bytes received from now on
if (c == ';')
comment = true;
// If we're not in comment mode, add it to our array.
if (!comment)
cmdbuffer[serial_count++] = c;
}