jsquery_extract.c
static int
coundChildren(ExtractedNode *node, ExtractedNodeType type,
													bool first, bool *found)
{
	if ((node->indirect || node->type != type) && !first)
	{
		return 1;
	}
	else
	{
		int i, total = 0;
		if (!first)
			*found = true;
		for (i = 0; i < node->args.count; i++)
			total += coundChildren(node->args.items[i], type, false, found);
		return total;
	}
}
/*
 * Count number of children connected with nodes of same type.
 */
Count number of children connected with nodes of same type.
Count number of children connected with nodes of same type .
static int
coundChildren(ExtractedNode *node, ExtractedNodeType type,
													bool first, bool *found)
{
	if ((node->indirect || node->type != type) && !first)
	{
		return 1;
	}
	else
	{
		int i, total = 0;
		if (!first)
			*found = true;
		for (i = 0; i < node->args.count; i++)
			total += coundChildren(node->args.items[i], type, false, found);
		return total;
	}
}
static int coundChildren ( ExtractedNode * node , ExtractedNodeType type , bool first , bool * found ) { if ( ( node -> indirect || node -> type != type ) && ! first ) { return 1 ; } else { int i , total = 0 ; if ( ! first ) * found = true ; for ( i = 0 ; i < node -> args . count ; i ++ ) total += coundChildren ( node -> args . items [ i ] , type , false , found ) ; return total ; } }
Count number of children connected with nodes of same type.
Count number of children connected with nodes of same type .