aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 00:20:47 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-11-20 00:20:47 -0500
commit49e929fa89d9ce348df5068845069392f69d8c86 (patch)
tree5102690ca2d6480b8402d4eca1fa0d67a5cbbfc2 /src
parent776fa26053f7bf2f399279aaf77e9de9ab771c44 (diff)
downloadstasis-49e929fa89d9ce348df5068845069392f69d8c86.tar.gz
Rebrand for the last time
* Shorten OHMYCAL to OMC * Rename ohmycal.h to omc.h
Diffstat (limited to 'src')
-rw-r--r--src/ini.c2
-rw-r--r--src/str.c8
-rw-r--r--src/system.c1
-rw-r--r--src/utils.c4
4 files changed, 9 insertions, 6 deletions
diff --git a/src/ini.c b/src/ini.c
index 586ae60..6855b81 100644
--- a/src/ini.c
+++ b/src/ini.c
@@ -2,7 +2,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include "ohmycal.h"
+#include "omc.h"
#include "ini.h"
struct INIFILE *ini_init() {
diff --git a/src/str.c b/src/str.c
index 8e52611..7188c96 100644
--- a/src/str.c
+++ b/src/str.c
@@ -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 == OHMYCAL_SORT_LEN_DESCENDING) {
+ if (sort_mode == OMC_SORT_LEN_DESCENDING) {
fn = _strsort_dsc_compare;
- } else if (sort_mode == OHMYCAL_SORT_LEN_ASCENDING) {
+ } else if (sort_mode == OMC_SORT_LEN_ASCENDING) {
fn = _strsort_asc_compare;
- } else if (sort_mode == OHMYCAL_SORT_ALPHA) {
+ } else if (sort_mode == OMC_SORT_ALPHA) {
fn = _strsort_alpha_compare; // ^ still selectable though ^
- } else if (sort_mode == OHMYCAL_SORT_NUMERIC) {
+ } else if (sort_mode == OMC_SORT_NUMERIC) {
fn = _strsort_numeric_compare;
}
diff --git a/src/system.c b/src/system.c
index 8cd7303..94a96c0 100644
--- a/src/system.c
+++ b/src/system.c
@@ -3,6 +3,7 @@
//
#include "system.h"
+#include "omc.h"
int shell(struct Process *proc, char *args[]) {
FILE *fp_out, *fp_err;
diff --git a/src/utils.c b/src/utils.c
index 4e82a64..64166fe 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1,5 +1,7 @@
#include <stdarg.h>
-#include "ohmycal.h"
+#include "omc.h"
+
+extern struct OMC_GLOBAL globals;
char *dirstack[1024];
const size_t dirstack_max = sizeof(dirstack) / sizeof(dirstack[0]);