From 6e528248414e330c9e25e81596ab47b8b8a5b701 Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Fri, 14 May 2021 22:44:50 +0430 Subject: first commit --- c/debug.dbg | 15 +++++++++++++++ c/devi_extra.h | 33 +++++++++++++++++++++++++++++++++ c/header.hpp | 4 ++++ c/main.c | 12 ++++++++++++ c/main.cpp | 6 ++++++ 5 files changed, 70 insertions(+) create mode 100644 c/debug.dbg create mode 100644 c/devi_extra.h create mode 100644 c/header.hpp create mode 100644 c/main.c create mode 100644 c/main.cpp (limited to 'c') 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 +#include +/**********************************************************************************************************************/ +#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 +#include +#include 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 +#include +#include +#include + +#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; +} -- cgit v1.2.3