--- freem/src/mref.c 2025/04/09 15:16:50 1.6 +++ freem/src/mref.c 2025/04/10 01:24:38 1.7 @@ -1,5 +1,5 @@ /* - * $Id: mref.c,v 1.6 2025/04/09 15:16:50 snw Exp $ + * $Id: mref.c,v 1.7 2025/04/10 01:24:38 snw Exp $ * supporting functions for handling freem_ref_t structures * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: mref.c,v $ + * Revision 1.7 2025/04/10 01:24:38 snw + * Remove C++ style comments + * * Revision 1.6 2025/04/09 15:16:50 snw * Fix buffer overruns in mref_to_external and ssvn.c * @@ -287,24 +290,16 @@ short mref_is_descendant(freem_ref_t *a, { register int i; - //printf ("checking if %s is a descendant of %s\r\n", b->name, a->name); - //printf ("a: %d b: %d\r\n", a->subscript_count, b->subscript_count); - if (a->subscript_count > b->subscript_count) return FALSE; if ((strcmp (a->name, b->name) == 0) && (a->subscript_count == 0)) return TRUE; for (i = 0; i < a->subscript_count; i++) { - - //printf("\ta[%d] = '%s'\r\n\tb[%d] = '%s'\r\n", i, a->subscripts[i], i, b->subscripts[i]); - if (strcmp (b->subscripts[i], a->subscripts[i]) != 0 ) { - //printf ("not descendant [%d]\r\n", strcmp (b->subscripts[i], a->subscripts[i])); + return FALSE; } } - - //printf ("is descendant\r\n"); return TRUE; }