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
/** | |
* 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 |
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
final class HeaderCollection | |
{ | |
private: | |
struct Entry | |
{ | |
//Case preserved | |
string Key; | |
string Value; | |
} | |
Entry[string] storage; |
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
/* | |
* C++ Class structure: | |
* | |
* Shape | |
* |- Circle | |
* |- Rectangle | |
* |-Square | |
* | |
*/ |
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 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: |
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 bug; | |
//Use swig2.0 -Wall -d -d2 -c++ bug.i | |
//Then in the generated files: | |
//in Test/Test.d: | |
//"class AttachedPictureFrame : Test.Frame {" | |
//should be | |
//"class AttachedPictureFrame : Test.Test.Frame {" | |
namespace Test { |
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.datetime; | |
import std.array; | |
import std.conv; | |
import std.string; | |
import std.algorithm; | |
struct PackageVersion | |
{ | |
enum VersionType | |
{ |
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
/** | |
* Original libev documentation: | |
* $(LINK2 http://pod.tst.eu/http://cvs.schmorp.de/_libev/ev.pod?pathrev=rel-3__9, version 3.9) | |
* $(LINK2 http://pod.tst.eu/http://cvs.schmorp.de/_libev/ev.pod?pathrev=rel-4__04, version 4.04) | |
* $(LINK2 http://pod.tst.eu/http://cvs.schmorp.de/_libev/ev.pod, most recent version) | |
*/ | |
module jpf.c.libev; | |
/* | |
* libev native API header |
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
struct File | |
{ | |
private struct Impl | |
{ | |
uint refs = uint.max / 2; | |
//Other 'by-reference' members ... | |
this(uint r) | |
{ | |
refs = r; | |
} |
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
struct File | |
{ | |
private struct Impl | |
{ | |
uint refs = uint.max / 2; | |
//Other 'by-reference' members ... | |
this(uint r) | |
{ | |
refs = r; | |
} |
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 std.typecons; | |
void main() | |
{ | |
auto wrap1 = Wrapper(1); | |
} | |
void free(ref int _payload) | |
{ |
OlderNewer