18 #include <grass/gis.h>
19 #include <grass/Vect.h>
41 G_debug(3,
"dig_line_add_updated(): line = %d", line);
44 for (i = 0; i < Plus->n_uplines; i++)
45 if (Plus->uplines[i] == line)
49 if (Plus->n_uplines == Plus->alloc_uplines) {
50 Plus->alloc_uplines += 1000;
52 (
int *)G_realloc(Plus->uplines,
53 Plus->alloc_uplines *
sizeof(
int));
56 Plus->uplines[Plus->n_uplines] = line;
80 G_debug(3,
"dig_node_add_updated(): node = %d", node);
83 for (i = 0; i < Plus->n_upnodes; i++)
84 if (Plus->upnodes[i] == node)
88 if (Plus->n_upnodes == Plus->alloc_upnodes) {
89 Plus->alloc_upnodes += 1000;
91 (
int *)G_realloc(Plus->upnodes,
92 Plus->alloc_upnodes *
sizeof(
int));
95 Plus->upnodes[Plus->n_upnodes] = node;
void dig_node_reset_updated(struct Plus_head *Plus)
Reset number of updated nodes.
void dig_node_add_updated(struct Plus_head *Plus, int node)
Add node to updated.
void dig_line_reset_updated(struct Plus_head *Plus)
Reset number of updated lines.
int G_debug(int level, const char *msg,...)
Print debugging message.
void dig_line_add_updated(struct Plus_head *Plus, int line)
Add new line to updated.