diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-03 13:32:28 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-03 13:32:28 -0400 |
commit | 776fa26053f7bf2f399279aaf77e9de9ab771c44 (patch) | |
tree | 55f46113921e8e4cb59457f63e98a6a405ad08eb | |
parent | a826e0d788b3164455523a64264cea3604cfb105 (diff) | |
download | stasis-776fa26053f7bf2f399279aaf77e9de9ab771c44.tar.gz |
Rebrand SPM to OHMYCAL
-rw-r--r-- | include/environment.h | 6 | ||||
-rw-r--r-- | include/str.h | 14 | ||||
-rw-r--r-- | src/str.c | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/include/environment.h b/include/environment.h index 254c430..ad53bf0 100644 --- a/include/environment.h +++ b/include/environment.h @@ -1,8 +1,8 @@ /** * @file environment.h */ -#ifndef SPM_ENVIRONMENT_H -#define SPM_ENVIRONMENT_H +#ifndef OHMYCAL_ENVIRONMENT_H +#define OHMYCAL_ENVIRONMENT_H #include <stdio.h> #include <stdlib.h> @@ -20,4 +20,4 @@ char *runtime_expand_var(RuntimeEnv *env, char *input); void runtime_export(RuntimeEnv *env, char **keys); void runtime_apply(RuntimeEnv *env); void runtime_free(RuntimeEnv *env); -#endif //SPM_ENVIRONMENT_H +#endif //OHMYCAL_ENVIRONMENT_H diff --git a/include/str.h b/include/str.h index 1c67eda..d0fc819 100644 --- a/include/str.h +++ b/include/str.h @@ -1,8 +1,8 @@ /** * @file str.h */ -#ifndef SPM_STR_H -#define SPM_STR_H +#ifndef OHMYCAL_STR_H +#define OHMYCAL_STR_H #include <stdio.h> #include <stdlib.h> @@ -11,10 +11,10 @@ #include <ctype.h> #include "ohmycal.h" -#define SPM_SORT_ALPHA 1 << 0 -#define SPM_SORT_NUMERIC 1 << 1 -#define SPM_SORT_LEN_ASCENDING 1 << 2 -#define SPM_SORT_LEN_DESCENDING 1 << 3 +#define OHMYCAL_SORT_ALPHA 1 << 0 +#define OHMYCAL_SORT_NUMERIC 1 << 1 +#define OHMYCAL_SORT_LEN_ASCENDING 1 << 2 +#define OHMYCAL_SORT_LEN_DESCENDING 1 << 3 int num_chars(const char *sptr, int ch); int startswith(const char *sptr, const char *pattern); @@ -44,4 +44,4 @@ int isdigit_s(const char *s); char *tolower_s(char *s); char *to_short_version(const char *s); -#endif //SPM_STR_H +#endif //OHMYCAL_STR_H @@ -488,13 +488,13 @@ void strsort(char **arr, unsigned int sort_mode) { // Default mode is alphabetic sort compar fn = _strsort_alpha_compare; - if (sort_mode == SPM_SORT_LEN_DESCENDING) { + if (sort_mode == OHMYCAL_SORT_LEN_DESCENDING) { fn = _strsort_dsc_compare; - } else if (sort_mode == SPM_SORT_LEN_ASCENDING) { + } else if (sort_mode == OHMYCAL_SORT_LEN_ASCENDING) { fn = _strsort_asc_compare; - } else if (sort_mode == SPM_SORT_ALPHA) { + } else if (sort_mode == OHMYCAL_SORT_ALPHA) { fn = _strsort_alpha_compare; // ^ still selectable though ^ - } else if (sort_mode == SPM_SORT_NUMERIC) { + } else if (sort_mode == OHMYCAL_SORT_NUMERIC) { fn = _strsort_numeric_compare; } |