From ea77a2f41798e2d326e1bef40a95cbf5c82eaca5 Mon Sep 17 00:00:00 2001 From: Marrub Date: Sat, 24 Jan 2015 08:33:08 +0000 Subject: [PATCH] relicense, add some stuff I don't remember --- HELL.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ LEVEL9HELL.c | 12 +++++++++ LICENSE | 36 ++++++++++++++------------ main.c | 7 ++++++ readme.txt | 5 +++- what.c | 15 +++++++++++ 6 files changed, 129 insertions(+), 17 deletions(-) create mode 100644 HELL.c create mode 100644 LEVEL9HELL.c create mode 100644 main.c create mode 100644 what.c diff --git a/HELL.c b/HELL.c new file mode 100644 index 0000000..fb2ad7c --- /dev/null +++ b/HELL.c @@ -0,0 +1,71 @@ +#include +#include +#define td typedef +#define onion union +#define build struct + +#define __STDEF(vg, n, n0) t\ +d o\ +nion { v\ +g } n; t\ +d bu\ +ild { v\ +g } n\ +0 + +#define __TDEF td +#define zurückkommen return +#define NICH NULL +#define ERFOLG 0 +#define AUSFAL -250 +#define m_MainFunction main +#define CASE case +#define ERR_F stderr +#define OUT_F stdout +#define gDataMåx 5 +#define O o /*legacy suprot*/ + +/* ===== */ +__STDEF( + int i_Ind_; + char c_Ind_; + const char *z_Lab_; +, tDataStore, tDataStoré); + +__TDEF int zahl; +__TDEF const char* t_strn; + +tDataStoré* sData = NICH; /* deprecated, use loc. vars instead */ + +int m_DtGrab(tDataStoré *sData, zahl iArg, t_strn *zArg) +{ sData->i_Ind_ = 0 +; sData->c_Ind_ = '\0' +; zurückkommen ERFOLG +;} + +int m_DtLoop(tDataStoré sData[gDataMåx], zahl iArg, t_strn *zArg) +{ int o = -24 +; for +( o = 0 +; o < gDataMåx +; o++ +){ m_DtGrab(&sData[O], iArg, zArg) +;} if +( sData[O].c_Ind_ == '!' +){ fprintf(ERR_F, "Data invalid") +; zurückkommen AUSFAL +;} else +{ o = 0 +; while +( o +!= gDataMåx +){ printf("%d\n", sData[O].i_Ind_) +; ++o +;}} zurückkommen ERFOLG +;} + +int m_MainFunction(zahl iArg, t_strn *zArg) +{ tDataStoré sData[gDataMåx] +; m_DtLoop(sData, iArg, zArg) +; zurückkommen ERFOLG +;} diff --git a/LEVEL9HELL.c b/LEVEL9HELL.c new file mode 100644 index 0000000..7216fdb --- /dev/null +++ b/LEVEL9HELL.c @@ -0,0 +1,12 @@ +#include +#define _T typedef +#define r return + _T int i;_T char c;_T i z;_T const c* s;_T struct{i í;c á;}tÐ; +i mD(tÐ *sD,z iA,s *zA){sD->í=0;sD->á=0;r 0;}i md(tÐ sD[5],z iA,s *zA) +{for(i o=0; o<5; o++){mD(&sD[o],iA,zA); } +for(i o=0;o<5;o++) printf("%d\n",sD[o].í); +r 0;}i main +(z iA,s *zA) +{tÐ sD[5]; +md(sD,iA,zA); +r 0;} diff --git a/LICENSE b/LICENSE index 4bae29d..68a49da 100644 --- a/LICENSE +++ b/LICENSE @@ -1,20 +1,24 @@ -Copyright (c) 2015 Marrub +This is free and unencumbered software released into the public domain. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. +For more information, please refer to diff --git a/main.c b/main.c new file mode 100644 index 0000000..6fa0792 --- /dev/null +++ b/main.c @@ -0,0 +1,7 @@ +#include + +int main(int argc, const char **argv) +{ + puts("hello, world!"); + return 0; +} diff --git a/readme.txt b/readme.txt index f5398e4..ccfb16a 100644 --- a/readme.txt +++ b/readme.txt @@ -1 +1,4 @@ -this was going to be named stupid_utils but github gave me a much better name \ No newline at end of file +this was going to be named stupid_utils but github gave me a much better name +all of these files are just random stuff I made for some reason or another +they're mostly useless or were only ever needed once +some of them (like cutshitup) can be useful diff --git a/what.c b/what.c new file mode 100644 index 0000000..6264b32 --- /dev/null +++ b/what.c @@ -0,0 +1,15 @@ +#include + +int main() +{ + int butt = 100; + printf("%d ", butt); + fflush(stdout); + butt &= 0; + printf("%d ", butt); + fflush(stdout); + butt |= 100; + printf("%d ", butt); + fflush(stdout); + return 0; +}