added void parameter to every function without any parameters
This commit is contained in:
parent
8263a17a20
commit
3776ad5e02
@ -72,13 +72,13 @@ typedef struct
|
|||||||
//NOTE: Variables were moved to 'flags.c' to force y'all using getters
|
//NOTE: Variables were moved to 'flags.c' to force y'all using getters
|
||||||
|
|
||||||
//GETTERS
|
//GETTERS
|
||||||
char getEncryptionSeparator();
|
char getEncryptionSeparator(void);
|
||||||
unsigned long getKeyLength();
|
unsigned long getKeyLength(void);
|
||||||
inputFlags getDefaultFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES
|
inputFlags getDefaultFlags(void); //THIS GENERATES inputFlags WITH DEFAULT VALUES
|
||||||
inputFlags getFlags(); //RETURNS USED FLAGS
|
inputFlags getFlags(void); //RETURNS USED FLAGS
|
||||||
outputFlags noOutput(boolean exitCode); //SAME AS getDefaultFlags() BUT FOR outputFlags
|
outputFlags noOutput(boolean exitCode); //SAME AS getDefaultFlags() BUT FOR outputFlags
|
||||||
encryptionOperation_type_cb getEncryptionOperation(); //RETURNS FUNCTION WHICH IS USED FOR ENCRYPTION & DECRYPTION
|
encryptionOperation_type_cb getEncryptionOperation(void); //RETURNS FUNCTION WHICH IS USED FOR ENCRYPTION & DECRYPTION
|
||||||
boolean getFlagsChanged();
|
boolean getFlagsChanged(void);
|
||||||
|
|
||||||
//SETTERS
|
//SETTERS
|
||||||
void setEncryptionSeparator(char encryptionSeparatorNew);
|
void setEncryptionSeparator(char encryptionSeparatorNew);
|
||||||
|
@ -55,7 +55,7 @@ typedef struct
|
|||||||
} logFlags;
|
} logFlags;
|
||||||
|
|
||||||
//GETTERS
|
//GETTERS
|
||||||
logFlags getLogFlags();
|
logFlags getLogFlags(void);
|
||||||
|
|
||||||
//SETTERS
|
//SETTERS
|
||||||
void setLogFlags(logFlags logFlagsNew);
|
void setLogFlags(logFlags logFlagsNew);
|
||||||
|
@ -26,7 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
void generateTextKeyChain(char *key, int *textKeyChain, int textKeyChainSize); //GENERATES ARRAY FOR ENCRYPTION/DECRYPTION
|
||||||
void generateKey(char *key, int keyLength); //GENERATE ENCRYPTION KEY
|
void generateKey(char *key, int keyLength); //GENERATE ENCRYPTION KEY
|
||||||
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
void deallocateOutput(outputFlags flags); //DEALLOCATES flags
|
||||||
boolean checkVersion(); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
boolean checkVersion(void); //THIS FUNCTION CHECKS IF LATEST VERSION OF WHY2 IS USED
|
||||||
boolean checkKey(char *key); //CHECKS IF KEY IS VALID
|
boolean checkKey(char *key); //CHECKS IF KEY IS VALID
|
||||||
boolean checkText(char *text); //CHECKS IF TEXT IS VALID
|
boolean checkText(char *text); //CHECKS IF TEXT IS VALID
|
||||||
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
unsigned long countIntLength(int number); //RETURNS LENGTH OF number
|
||||||
|
@ -33,22 +33,22 @@ encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation;
|
|||||||
boolean flagsChanged = 0; //CHANGES TO 1 WHEN U USE setFlags
|
boolean flagsChanged = 0; //CHANGES TO 1 WHEN U USE setFlags
|
||||||
|
|
||||||
//GETTERS
|
//GETTERS
|
||||||
char getEncryptionSeparator()
|
char getEncryptionSeparator(void)
|
||||||
{
|
{
|
||||||
return encryptionSeparator;
|
return encryptionSeparator;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long getKeyLength()
|
unsigned long getKeyLength(void)
|
||||||
{
|
{
|
||||||
return keyLength;
|
return keyLength;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputFlags getDefaultFlags()
|
inputFlags getDefaultFlags(void)
|
||||||
{
|
{
|
||||||
return DEFAULT_FLAGS;
|
return DEFAULT_FLAGS;
|
||||||
}
|
}
|
||||||
|
|
||||||
inputFlags getFlags()
|
inputFlags getFlags(void)
|
||||||
{
|
{
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
@ -68,12 +68,12 @@ outputFlags noOutput(boolean exitCode)
|
|||||||
return (outputFlags) { emptyText, emptyKey, 0, 0, 0, exitCode };
|
return (outputFlags) { emptyText, emptyKey, 0, 0, 0, exitCode };
|
||||||
}
|
}
|
||||||
|
|
||||||
encryptionOperation_type_cb getEncryptionOperation()
|
encryptionOperation_type_cb getEncryptionOperation(void)
|
||||||
{
|
{
|
||||||
return encryptionOperation_cb;
|
return encryptionOperation_cb;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean getFlagsChanged()
|
boolean getFlagsChanged(void)
|
||||||
{
|
{
|
||||||
return flagsChanged;
|
return flagsChanged;
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,7 @@ char *replaceWord(char *string, char *old, char *new) //CODE FROM: https://www.g
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean checkVersion()
|
boolean checkVersion(void)
|
||||||
{
|
{
|
||||||
if (getFlags().noCheck) return SUCCESS;
|
if (getFlags().noCheck) return SUCCESS;
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
logFlags flags = { NULL };
|
logFlags flags = { NULL };
|
||||||
|
|
||||||
//GETTERS
|
//GETTERS
|
||||||
logFlags getLogFlags()
|
logFlags getLogFlags(void)
|
||||||
{
|
{
|
||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user