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
|
unsigned char exitCode; //VARIABLE FOR EXIT CODE
|
||||||
} outputFlags;
|
} outputFlags;
|
||||||
|
|
||||||
//VARIABLES
|
//NOTE: Variables were moved to 'flags.c' to force y'all using getters
|
||||||
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
|
//GETTERS
|
||||||
char getEncryptionSeparator();
|
char getEncryptionSeparator();
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
#include <stdlib.h>
|
#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()
|
char getEncryptionSeparator()
|
||||||
{
|
{
|
||||||
return encryptionSeparator;
|
return encryptionSeparator;
|
||||||
@ -32,6 +37,7 @@ outputFlags noOutput(unsigned char exitCode)
|
|||||||
return (outputFlags) { emptyText, emptyKey, 0, 0, exitCode };
|
return (outputFlags) { emptyText, emptyKey, 0, 0, exitCode };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//SETTERS
|
||||||
void setEncryptionSeparator(char encryptionSeparatorNew)
|
void setEncryptionSeparator(char encryptionSeparatorNew)
|
||||||
{
|
{
|
||||||
if (encryptionSeparatorNew == '\0') return;
|
if (encryptionSeparatorNew == '\0') return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user