From 7d675a70bf92bd1606f77fae01c6e56afdcee5ef Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 21 Jun 2024 12:36:55 -0400 Subject: Rebrand OhMyCal (OMC) as STASIS --- src/str.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/str.c') diff --git a/src/str.c b/src/str.c index 16088b6..6afbf73 100644 --- a/src/str.c +++ b/src/str.c @@ -115,7 +115,7 @@ char** split(char *_sptr, const char* delim, size_t max) pos = token - sptr; break; } - result[i] = calloc(OMC_BUFSIZ, sizeof(char)); + result[i] = calloc(STASIS_BUFSIZ, sizeof(char)); if (!result[i]) { return NULL; } @@ -125,7 +125,7 @@ char** split(char *_sptr, const char* delim, size_t max) // pos is non-zero when maximum split is reached if (pos) { // append the remaining string contents to array - result[i] = calloc(OMC_BUFSIZ, sizeof(char)); + result[i] = calloc(STASIS_BUFSIZ, sizeof(char)); if (!result[i]) { return NULL; } @@ -319,13 +319,13 @@ void strsort(char **arr, unsigned int sort_mode) { // Default mode is alphabetic sort compar fn = _strsort_alpha_compare; - if (sort_mode == OMC_SORT_LEN_DESCENDING) { + if (sort_mode == STASIS_SORT_LEN_DESCENDING) { fn = _strsort_dsc_compare; - } else if (sort_mode == OMC_SORT_LEN_ASCENDING) { + } else if (sort_mode == STASIS_SORT_LEN_ASCENDING) { fn = _strsort_asc_compare; - } else if (sort_mode == OMC_SORT_ALPHA) { + } else if (sort_mode == STASIS_SORT_ALPHA) { fn = _strsort_alpha_compare; // ^ still selectable though ^ - } else if (sort_mode == OMC_SORT_NUMERIC) { + } else if (sort_mode == STASIS_SORT_NUMERIC) { fn = _strsort_numeric_compare; } -- cgit