Skip to content

Instantly share code, notes, and snippets.

View UplinkCoder's full-sized avatar

Stefan Koch UplinkCoder

View GitHub Profile
This file has been truncated, but you can view the full file.
module nested.in_.too.many.packages.because.that.is_.furthering.encapsulation;
version (core_reflect)
{
import core.reflect.utils;
alias fullyQualifiedName = fqn;
}
version (phobos_fqn)
{
import std.traits;
import core.reflect.reflect;
import core.reflect.transitiveVisitor;
import std_stdio = std.xml;
struct PadDetctedTuple
{
string aggregateName;
Location aggregateLocation;
ulong number_of_pad_bytes;
@UplinkCoder
UplinkCoder / app.d
Last active September 29, 2021 17:41
import linenoise_c;
import reflectionHelper;
import core.stdc.stdio;
import core.stdc.string;
import core.stdc.stdlib;
import core.reflect.reflect;
//pragma(msg, function_names);
//static const functionNames_ = getFreeFunctionsFromModule.functionNames();
@UplinkCoder
UplinkCoder / ctx.di
Last active September 26, 2021 06:40
extern(C):
struct Ctx;
void method0(Ctx* ctx);
void setMmethod0(Ctx* ctx, int x);
int getMethod0(Ctx* ctx);
void setMmethod20(Ctx* ctx, void* x);
void* getMethod20(Ctx* ctx);
void method1(Ctx* ctx);
void setMmethod1(Ctx* ctx, int x);
void f(int[] a, int[] b)
{
a[0..16] = b[0..16];
}
fbody: BlockStatement = {
internalPointer: unhandled,
serial: 31523,
astTypeName: "CompoundStatement",
import core.reflect.reflect;
import core.reflect.transitiveVisitor;
int f()
{
int x;
g(&x);
return x;
extern (C):
alias tb_color = ushort;
enum LAST_ATTR_INIT = 0xFFFF;
// attributes
enum TB_BOLD = 0x0100;
enum TB_UNDERLINE = 0x0400;
enum TB_REVERSE = 0x0800;
import std.file;
void main(string[] args)
{
// () @safe { assert(args.length == 2, "exactly one argument must be given") } ();
auto text = cast(string) read(args[1]);
long indent_level;
long beginParenPos;
bool inString = false;
bool inStruct = false;
#include <valgrind/callgrind.h>
extern "C" void callgrind_start(void)
{
CALLGRIND_START_INSTRUMENTATION;
}
extern "C" void callgrind_stop(void)
{
CALLGRIND_STOP_INSTRUMENTATION;
}
import core.reflect.reflect;
import core.reflect.dscope;
import core.internal.string : unsignedToTempString;
import core.stdc.stdio;
import std.stdio;
import Iobject = object;
pragma(msg, (const ClassDeclaration cd) {
string result;