Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Pfau jpf91

View GitHub Profile
View gist:9099427
From ba8e51dd4f00f4258564f6a0ab2033a0b635682a Mon Sep 17 00:00:00 2001
Message-Id: <ba8e51dd4f00f4258564f6a0ab2033a0b635682a.1392836625.git.johannespfau@gmail.com>
From: Johannes Pfau <johannespfau@gmail.com>
Date: Wed, 19 Feb 2014 20:01:55 +0100
Subject: [PATCH] Add @nogc attribute
Conflicts:
src/nogc.c
---
src/attrib.c | 1 +
View gist:9099430
From ba8e51dd4f00f4258564f6a0ab2033a0b635682a Mon Sep 17 00:00:00 2001
Message-Id: <ba8e51dd4f00f4258564f6a0ab2033a0b635682a.1392836625.git.johannespfau@gmail.com>
From: Johannes Pfau <johannespfau@gmail.com>
Date: Wed, 19 Feb 2014 20:01:55 +0100
Subject: [PATCH] Add @nogc attribute
Conflicts:
src/nogc.c
---
src/attrib.c | 1 +
View gist:9464455
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<meta name="keywords" content="GNU D Compiler, GDC, D programming language">
<meta name="description" content="GNU D Compiler">
<link rel="stylesheet" href="/style/main.css" type="text/css" media="all" charset="utf-8">
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<title>GDC - D Programming Language for GCC</title>
View gist:cf40e78beed6c0a9e757
#
# Automatically generated make config: don't edit
# crosstool-NG 1.20.0 Configuration
# Fri Apr 3 08:21:33 2015
#
CT_CONFIGURE_has_xz=y
CT_CONFIGURE_has_svn=y
CT_MODULES=y
#
View gist:1de81d6ff55587d702ae
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/libphobos/src/std/digest/crc.d: In member function 'finish':
[ERROR] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/libphobos/src/std/digest/crc.d:203:18: internal compiler error: in expand_expr_addr_expr_1, at expr.c:7736
[ALL ] auto tmp = peek();
[ALL ] ^
[ALL ] 0x81e40f expand_expr_addr_expr_1
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/gcc/expr.c:7736
[ALL ] 0x814498 expand_expr_addr_expr
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gnu/gcc-5/arm-gdcproject-linux-gnueabi/.build/src/gcc-5.1.0/gcc/expr.c:7850
[ALL ] 0x814498 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool)
[ALL ] /home/build/gdc-build-configs/configs/x86_64-linux-gn
View get-gcc-version.sh
echo "$GCC_VERSION" | grep -qP "gcc-[\d\.]+$"
# Standard release
if [ $? = 0 ]
then
GCC_TARBALL="releases/${GCC_VERSION}/${GCC_VERSION}.tar.bz2"
if [ $(echo "$GCC_VERSION" | cut -c5-5) -gt "4" ]
then
PATCH_VERSION=$(echo "$GCC_VERSION" | cut -c5-5)
# Max supported gcc version in semaphore ci
if [ $(echo "$GCC_VERSION" | cut -c5-5) -gt "5" ]
@jpf91
jpf91 / formatter.d
Created Mar 14, 2011
jpf.http.formatter
View formatter.d
/**
* Contains functions to format the jpf.http.types types
* into the HTTP format (formatValue, formatHeader).
*
* TODO:
* Remove trailing zeros with floating point numbers
* Spec allows this, but it wastes bandwidth
*
* Not implemented headers:
* Authorization
View http.d
final class HeaderCollection
{
private:
struct Entry
{
//Case preserved
string Key;
string Value;
}
Entry[string] storage;
@jpf91
jpf91 / gist:937492
Created Apr 22, 2011
Swig4D class cast proposal
View gist:937492
/*
* C++ Class structure:
*
* Shape
* |- Circle
* |- Rectangle
* |-Square
*
*/
View gist:938408
%module bug;
//Use swig2.0 -Wall -d -d2 -c++ bug.i
//Then in the generated files:
//in Test/Test.d:
//"class Tag : ..strList {"
template <class T> class List
{
public:
You can’t perform that action at this time.