moved *all* flags into flags.h

This commit is contained in:
Václav Šmejkal 2022-05-05 18:26:10 +02:00
parent 7357e27b32
commit f9bd01c394
4 changed files with 10 additions and 10 deletions

View File

@ -6,11 +6,21 @@
#define ENCRYPTION_SEPARATOR_STRING "." //SAME AS ENCRYPTION_SEPARATOR BUT AS STRING #define ENCRYPTION_SEPARATOR_STRING "." //SAME AS ENCRYPTION_SEPARATOR BUT AS STRING
#define INVALID_KEY 1 //EXIT VALUE FOR INVALID KEY #define INVALID_KEY 1 //EXIT VALUE FOR INVALID KEY
#define DOWNLOAD_FAILED 1 //EXIT VALUE FOR versions.json DOWNLOAD FAILED
#define VERSION "v3.2" //VERSION OF CURRENT BUILD > DO NOT TOUCH THIS < #define VERSION "v3.2" //VERSION OF CURRENT BUILD > DO NOT TOUCH THIS <
#define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/stable/versions.json" //URL FOR GETTING versions.json #define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/stable/versions.json" //URL FOR GETTING versions.json
#define VERSIONS_NAME "versions.json" //do I have to explain this? #define VERSIONS_NAME "versions.json" //do I have to explain this?
#define TEST_TEXT "Pepa smrdí." //TEST TEXT FOR ENCRYPTION IN why2-test BINARY
#define TEST_KEY "lZwOBFvjJEmaYRIaKsALKLkSeJvXhFPbZIRNFbjQRNyiOuLTexhgOpObHzyQgNT" //TEST KEY FOR ENCRYPTION IN why2-test BINARY
#define TEXT_TO_ENCRYPT "Some text yk" //THIS TEXT WILL BE ENCRYPTED IN why2-app BINARY
#define CLEAR_SCREEN "\e[1;1H\e[2J" //TEXT FOR UNIX CLEAR SCREEN
#define NOT_FOUND_TRIES 10 //NUMBER OF TRIES FOR DOWNLOADING versions.json
//VARIABLES //VARIABLES
static int keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS < static int keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS <

View File

@ -4,8 +4,6 @@
#include <why2/encrypter.h> #include <why2/encrypter.h>
#include <why2/flags.h> #include <why2/flags.h>
#define TEXT_TO_ENCRYPT "Some text yk"
int main(void) int main(void)
{ {
setNoOutput(1); setNoOutput(1);

View File

@ -8,11 +8,6 @@
#include <why2/flags.h> #include <why2/flags.h>
#define CLEAR_SCREEN "\e[1;1H\e[2J"
#define NOT_FOUND_TRIES 10
#define DOWNLOAD_FAILED 1
void void
checkVersion() checkVersion()
{ {

View File

@ -6,9 +6,6 @@
#include <why2/decrypter.h> #include <why2/decrypter.h>
#include <why2/flags.h> #include <why2/flags.h>
#define TEST_TEXT "Pepa smrdí."
#define TEST_KEY "lZwOBFvjJEmaYRIaKsALKLkSeJvXhFPbZIRNFbjQRNyiOuLTexhgOpObHzyQgNT"
int int
main(int argc, char *argv[]) main(int argc, char *argv[])
{ {