gamgi_expat_export_config.c (gamgi-all-0.17.4x) | : | gamgi_expat_export_config.c (gamgi-all-0.17.5x) | ||
---|---|---|---|---|
skipping to change at line 427 | skipping to change at line 427 | |||
} | } | |||
void gamgi_expat_export_config_atom_local (gamgi_window *window, FILE *fp, | void gamgi_expat_export_config_atom_local (gamgi_window *window, FILE *fp, | |||
int depth_parent, int *depth_last, gamgi_bool *output, gamgi_bool *error, | int depth_parent, int *depth_last, gamgi_bool *output, gamgi_bool *error, | |||
int element, double mass, double radius, float red, float green, float blue) | int element, double mass, double radius, float red, float green, float blue) | |||
{ | { | |||
gamgi_atom_class *atom_class = gamgi->atom; | gamgi_atom_class *atom_class = gamgi->atom; | |||
char string_element[GAMGI_ENGINE_STRING]; | char string_element[GAMGI_ENGINE_STRING]; | |||
char string_attribute[GAMGI_ENGINE_STRING]; | char string_attribute[GAMGI_ENGINE_STRING]; | |||
char token[GAMGI_ENGINE_TOKEN]; | ||||
int column; | int column; | |||
gamgi_chem_atom_name (element, string_attribute); | gamgi_chem_atom_name (element, token); | |||
sprintf (string_element, "<atom element=\"%s\"", string_attribute); | sprintf (string_element, "<atom element=\"%s\"", token); | |||
if (fabs (atom_class->mass[element] - mass) > GAMGI_MATH_TOLERANCE) | if (fabs (atom_class->mass[element] - mass) > GAMGI_MATH_TOLERANCE) | |||
{ | { | |||
sprintf (string_attribute, "mass=\"%.*f\"", | sprintf (string_attribute, "mass=\"%.*f\"", | |||
gamgi->gamgi->mass, atom_class->mass[element]); | gamgi->gamgi->mass, atom_class->mass[element]); | |||
gamgi_expat_export_element (fp, string_element, string_attribute, | gamgi_expat_export_element (fp, string_element, string_attribute, | |||
depth_parent, depth_last, &column, output, error); | depth_parent, depth_last, &column, output, error); | |||
} | } | |||
if (fabs (atom_class->radius[element] - radius) > GAMGI_MATH_TOLERANCE) | if (fabs (atom_class->radius[element] - radius) > GAMGI_MATH_TOLERANCE) | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added |