diff --git a/include/flags.h b/include/flags.h index 407ef23..e9fe13f 100644 --- a/include/flags.h +++ b/include/flags.h @@ -43,9 +43,7 @@ typedef struct unsigned char exitCode; //VARIABLE FOR EXIT CODE } outputFlags; -//VARIABLES -static char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead < -static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead < +//NOTE: Variables were moved to 'flags.c' to force y'all using getters //GETTERS char getEncryptionSeparator(); diff --git a/src/lib/flags.c b/src/lib/flags.c index 011976c..f5fd358 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -2,6 +2,11 @@ #include +//VARIABLES +static char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead < +static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead < + +//GETTERS char getEncryptionSeparator() { return encryptionSeparator; @@ -32,6 +37,7 @@ outputFlags noOutput(unsigned char exitCode) return (outputFlags) { emptyText, emptyKey, 0, 0, exitCode }; } +//SETTERS void setEncryptionSeparator(char encryptionSeparatorNew) { if (encryptionSeparatorNew == '\0') return;