analysis-tools.c (gnumeric-1.12.49.tar.xz) | : | analysis-tools.c (gnumeric-1.12.50.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 437 | skipping to change at line 437 | |||
{ | { | |||
homogeneity_check_t state = { FALSE, 0, TRUE }; | homogeneity_check_t state = { FALSE, 0, TRUE }; | |||
g_slist_foreach (input_range, cb_check_hom, &state); | g_slist_foreach (input_range, cb_check_hom, &state); | |||
return state.hom; | return state.hom; | |||
} | } | |||
/***** Some general routines ***********************************************/ | /***** Some general routines ***********************************************/ | |||
static gint | ||||
float_compare (gnm_float const *a, gnm_float const *b) | ||||
{ | ||||
if (*a < *b) | ||||
return -1; | ||||
else if (*a == *b) | ||||
return 0; | ||||
else | ||||
return 1; | ||||
} | ||||
gnm_float * | ||||
range_sort (gnm_float const *xs, int n) | ||||
{ | ||||
if (n <= 0) | ||||
return NULL; | ||||
else { | ||||
gnm_float *ys = g_new (gnm_float, n); | ||||
memcpy (ys, xs, n * sizeof (gnm_float)); | ||||
qsort (ys, n, sizeof (ys[0]), | ||||
(int (*) (const void *, const void *))&float_compare); | ||||
return ys; | ||||
} | ||||
} | ||||
/* | /* | |||
* Set a column of text from a string like "/first/second/third" or "|foo|bar|ba z". | * Set a column of text from a string like "/first/second/third" or "|foo|bar|ba z". | |||
*/ | */ | |||
void | void | |||
set_cell_text_col (data_analysis_output_t *dao, int col, int row, const char *te xt) | set_cell_text_col (data_analysis_output_t *dao, int col, int row, const char *te xt) | |||
{ | { | |||
gboolean leave = FALSE; | gboolean leave = FALSE; | |||
char *copy, *orig_copy; | char *copy, *orig_copy; | |||
char sep = *text; | char sep = *text; | |||
if (sep == 0) return; | if (sep == 0) return; | |||
End of changes. 1 change blocks. | ||||
25 lines changed or deleted | 0 lines changed or added |