From 0edab9226159078ce7d740b5252d8dff779746f1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 17 Oct 2022 16:41:04 +0200 Subject: [PATCH] moved encryptionOperation_type_cb into flags.h --- include/flags.h | 3 ++- src/lib/flags.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/flags.h b/include/flags.h index c010707..2778821 100644 --- a/include/flags.h +++ b/include/flags.h @@ -31,8 +31,9 @@ const enum EXIT_CODES //exit codes you fucking idiot #define DEPRECATED __attribute__((deprecated)) //SAME COMMENT AS VERSIONS_NAME'S #define UNUSED __attribute__((unused)) //SAME COMMENT AS DEPRECATED'S +//TYPES typedef char boolean; - +typedef int (*encryptionOperation_type_cb)(int, int); typedef struct { boolean noCheck; //BOOLEAN FOR SKIPPING VERSION CHECK diff --git a/src/lib/flags.c b/src/lib/flags.c index fb691b8..336cacf 100644 --- a/src/lib/flags.c +++ b/src/lib/flags.c @@ -11,7 +11,6 @@ int encryptionOperation(int text, int encryptedText); 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; -typedef int (*encryptionOperation_type_cb)(int, int); encryptionOperation_type_cb encryptionOperation_cb = encryptionOperation; //GETTERS