renamed flags to prevent memory problems

This commit is contained in:
Václav Šmejkal 2022-12-11 16:15:55 +01:00
parent b685806b6a
commit 5c620c2d76
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19

View File

@ -28,7 +28,7 @@ int encryptionOperation(int text, int encryptedText);
//VARIABLES
char encryptionSeparator = '.'; //NOPE > DO NOT TOUCH THIS, USE setEncryptionSeparator instead <
unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength instead <
inputFlags flags = DEFAULT_FLAGS;
inputFlags flagsAllah = DEFAULT_FLAGS; //IT IS CALLED flagsAllah CUZ flags CAUSED SOME FUCKING MEMORY PROBLEMS
encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation;
boolean flagsChanged = 0; //CHANGES TO 1 WHEN U USE setFlags
@ -50,7 +50,7 @@ inputFlags getDefaultFlags(void)
inputFlags getFlags(void)
{
return flags;
return flagsAllah;
}
outputFlags noOutput(boolean exitCode)
@ -95,7 +95,7 @@ void setKeyLength(int keyLengthNew)
void setFlags(inputFlags newFlags)
{
flags = newFlags;
flagsAllah = newFlags;
if (!flagsChanged) flagsChanged = 1;
}