moved variables from flags.h to flags.c
this just makes flags safer
This commit is contained in:
parent
f617d10343
commit
92dd06d8b0
@ -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();
|
||||
|
@ -2,6 +2,11 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
//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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user