Valid comments should be ignored.
Lines representing a valid comment must not be counted as a line.
f_string_range_t range = data->contents.array[at].array[0];
f_array_length_t i = 0;
+ f_array_length_t j = 0;
// This content has no data, do not even check "include empty" because it cannot be counted as a line.
if (range.start > range.stop) {
main->signal_check = 0;
}
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
if (*line == data->line) {
range.stop = i;
f_array_length_t total = 0;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
+ f_array_length_t j = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
for (i = range.start; i <= range.stop; ++i) {
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
range.start = i + 1;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
+ f_array_length_t j = 0;
range.start = data->contents.array[at].array[0].start;
range.stop = data->contents.array[at].array[0].stop;
for (i = range.start; i <= range.stop; ++i) {
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
if (*line == data->line) {
range.stop = i;
f_array_length_t total = 0;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
+ f_array_length_t j = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
for (i = range.start; i <= range.stop; ++i) {
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
range.start = i + 1;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
+ f_array_length_t j = 0;
range.start = data->contents.array[at].array[0].start;
range.stop = data->contents.array[at].array[0].stop;
main->signal_check = 0;
}
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
if (*line == data->line) {
range.stop = i;
f_array_length_t total = 0;
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t i = 0;
+ f_array_length_t j = 0;
for (f_array_length_t at = 0; at < data->contents.used; ++at) {
for (i = range.start; i <= range.stop; ++i) {
+ if (j < data->comments.used) {
+ while (data->comments.array[j].stop < i) ++j;
+
+ if (i >= data->comments.array[j].start && i <= data->comments.array[j].stop) {
+ i = data->comments.array[j++].stop;
+
+ continue;
+ }
+ }
+
if (data->buffer.string[i] == f_string_eol_s.string[0]) {
range.start = i + 1;