diff options
author | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2021-05-14 18:14:50 +0000 |
commit | 6e528248414e330c9e25e81596ab47b8b8a5b701 (patch) | |
tree | e1aa41a7f3198eeac187e6177ec7d4a33db229d3 /c | |
download | scripts-master.tar.gz scripts-master.zip |
first commitmaster
Diffstat (limited to 'c')
-rw-r--r-- | c/debug.dbg | 15 | ||||
-rw-r--r-- | c/devi_extra.h | 33 | ||||
-rw-r--r-- | c/header.hpp | 4 | ||||
-rw-r--r-- | c/main.c | 12 | ||||
-rw-r--r-- | c/main.cpp | 6 |
5 files changed, 70 insertions, 0 deletions
diff --git a/c/debug.dbg b/c/debug.dbg new file mode 100644 index 0000000..36b21f6 --- /dev/null +++ b/c/debug.dbg @@ -0,0 +1,15 @@ + +set width 0 +set height 0 +set verbose off + +b main +commands 1 + print argc + print argv[0] + continue +end + +file ./main-dbg +run + diff --git a/c/devi_extra.h b/c/devi_extra.h new file mode 100644 index 0000000..9ef66b3 --- /dev/null +++ b/c/devi_extra.h @@ -0,0 +1,33 @@ + +/*first line intentionally left blank.*/ +/**********************************************************************************************************************/ +#include <inttypes.h> +#include <stdint.h> +/**********************************************************************************************************************/ +#ifndef DEVI_EXTRA_H +#define DEVI_EXTRA_H + +#ifdef __cplusplus +extern "C" { +#endif + +#define RED "\033[1;31m" +#define CYAN "\033[1;36m" +#define GREEN "\033[1;32m" +#define BLUE "\033[1;34m" +#define BLACK "\033[1;30m" +#define BROWN "\033[1;33m" +#define MAGENTA "\033[1;35m" +#define GRAY "\033[1;37m" +#define DARKGRAY "\033[1;30m" +#define YELLOW "\033[1;33m" +#define NORMAL "\033[0m" +#define CLEAR "\033[2J" + +#ifdef __cplusplus +} +#endif +#endif +/**********************************************************************************************************************/ +/*last line intentionally left blank.*/ + diff --git a/c/header.hpp b/c/header.hpp new file mode 100644 index 0000000..2df2a5a --- /dev/null +++ b/c/header.hpp @@ -0,0 +1,4 @@ + +#include <iostream> +#include <string> +#include <vector> diff --git a/c/main.c b/c/main.c new file mode 100644 index 0000000..8cc320a --- /dev/null +++ b/c/main.c @@ -0,0 +1,12 @@ + +#include <inttypes.h> +#include <stdbool.h> +#include <stdio.h> +#include <string.h> + +#define __maybe_unused__ __attribute__((unused)) + +#pragma weak main +int main (int argc, char** argv) { + return 0; +} diff --git a/c/main.cpp b/c/main.cpp new file mode 100644 index 0000000..4e1d93b --- /dev/null +++ b/c/main.cpp @@ -0,0 +1,6 @@ + +#include "header.hpp" + +int main (int argc, char** argv) { + return 0; +} |