61 int i, j, k, l, m, n, o, p;
69 for (i=0; i<n_body; i++)
72 for (j=0; j<o_body; j++)
75 if (g_strcmp0 (fatom,
get_active_atom (tmp_new -> ma[0][0], tmp_new -> a[0][0]) -> name) == 0 &&
76 g_strcmp0 (fatom,
get_active_atom (tmp_new -> ma[1][0], tmp_new -> a[1][0]) -> name) == 0) new_guy = tmp_new;
81 if (g_strcmp0 (
get_active_atom (tmp_new -> ma[k][0], tmp_new -> a[k][0]) -> name,
get_active_atom (tmp_old -> ma[l][0], tmp_old -> a[l][0]) -> name) == 0) doit = TRUE;
84 if (g_strcmp0 (
get_active_atom (tmp_new -> ma[k][0], tmp_new -> a[k][0]) -> name,
get_active_atom (tmp_old -> ma[k][0], tmp_old -> a[k][0]) -> name) == 0) doit = TRUE;
89 if (tmp_old -> next != NULL) tmp_old = tmp_old -> next;
91 if (tmp_new -> next != NULL) tmp_new = tmp_new -> next;
123 new_one -> next -> prev = new_one;
124 new_one = new_one -> next;
126 new_one -> na[l] = new_guy -> na[0];
127 new_one -> a[l] =
duplicate_int (new_guy -> na[0], new_guy -> a[0]);
128 new_one -> ma[l] =
duplicate_int (new_guy -> na[0], new_guy -> ma[0]);
131 old_one -> a[l] = NULL;
132 old_one -> a[l] = g_malloc0(old_one -> na[l]*
sizeof*old_one -> a[l]);
133 old_one -> ma[l] = NULL;
134 old_one -> ma[l] = g_malloc0(old_one -> na[l]*
sizeof*old_one -> ma[l]);
139 old_one -> a[l][p] =
tmp_fbody -> a[l][n];
140 old_one -> ma[l][p] =
tmp_fbody -> ma[l][n];
152 tmp_fbody -> a[l][0] = new_guy -> a[0][0];
153 tmp_fbody -> ma[l][0] = new_guy -> ma[0][0];
167 for (i=1; i<n_body; i++)
170 tmp_new -> next -> prev = tmp_new;
171 tmp_new = tmp_new -> next;
172 tmp_old = tmp_old -> next;
void compare_body(gchar *fatom, field_nth_body *new_body, int n_body, field_nth_body *old_body, int o_body)
compare, and if require ajdust, two lists of field body properties