This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module container.linkedaa; | |
pragma(inline, true): | |
struct LinkedAssociativeArray(Key, Value) | |
{ | |
// Initialize a LinkedAssociativeArray with an AssociativeArray. | |
// For supporting `aa = [key1:value1, key2:value2, ...]` syntax. | |
this(AssociativeArray!(Key, Value) aa) pure nothrow | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
// clang-format off | |
#include <gcc-plugin.h> | |
#include <context.h> | |
#include <plugin-version.h> | |
#include <tree.h> | |
#include <gimple.h> | |
#include <tree-pass.h> | |
#include <gimple-iterator.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ueo pipefail | |
set -x | |
ROOT="$PWD" | |
LATEST_D_VER=v$(curl -fsS http://downloads.dlang.org/releases/LATEST) | |
BUILD_LDC_VER=v1.32.0 | |
D_VER=v2.109.0-beta.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Minimal wrapper around dmd in order to build gdc-12+ | |
# ../configure --enable-languages=d GDC=dgdc.sh | |
TRANSLATED_ARGS= | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-frelease) | |
TRANSLATED_ARGS="${TRANSLATED_ARGS} -release" | |
shift | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Minimal wrapper around ldc2 in order to build gdc-12+ | |
# ../configure --enable-languages=d GDC=lgdc.sh | |
TRANSLATED_ARGS= | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
-fPIC) | |
TRANSLATED_ARGS="${TRANSLATED_ARGS} --relocation-model=pic" | |
shift | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ; | |
string[] filterList = ["./Makefile.in", "./Makefile.am", "./index.d", "./unittest.d", | |
"./libgphobos.spec.in", "./LICENSE_1_0.txt", "./std/experimental/note.md"]; | |
struct Files | |
{ | |
string[] baseList; | |
string[][string] sysList; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio, std.file, std.path, std.range, std.string, std.algorithm ; | |
string[] filterList = ["./Makefile.in", "./gcc/config.d.in", "./gcc/libbacktrace.d.in", | |
"./Makefile.am", "./LICENSE", "./rt/dylib_fixes.c"]; | |
struct Files | |
{ | |
string[] baseList, cppList, gcList, gcStubList; | |
string[][string] sysList; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf stage1 | |
rm -rf stage2 | |
rm -rf stage3 | |
# Stage 1 | |
make -j8 -f posix.mak CC=g++-4.9 HOST_DMD=gdmd | |
mkdir stage1 | |
mv dmd stage1/dmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
import core.stdc.limits; | |
import std.math; | |
uint WORLD; | |
uint LASTWORLD; | |
uint NEWWORLD; | |
uint ROW_L; |