Skip to content

Instantly share code, notes, and snippets.

View jerstlouis's full-sized avatar

Jerome St-Louis jerstlouis

View GitHub Profile
typedef struct _Esk
{
...
} Esk;
void hello(Esk *mystruct)
{
}
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
void CopyFile(File input, File output)
{
byte buffer[65536];
input.Seek(0, start);
for(;!input.Eof();)
{
uint count = input.Read(buffer, 1, sizeof(buffer));
if(count)
output.Write(buffer, 1, count);
}
struct TopoEdge
{
Link in;
Link out;
External from;
External to;
bool breakable;
};
class External
class TopoEdge : struct
{
Link in, out;
External from, to;
bool breakable;
};
class External
{
public const char * output;
Breaking the 1 edges for void ProtoTypeTakingBoth(TheStruct s);
Breaking edge from 3 to 2
Breaking this particular connection
Node 2 now has 1 non-breakable incoming edges.
Also redirecting connection from 3 to 4 to come from 0 instead.
Node 4 now has 1 non-breakable incoming edges.
*** Free Node:
struct TheStruct;
void TopoSort(LinkList<External, link = link> input)
{
LinkList<External, link = link> L { };
LinkList<External, link = link> S { };
External n, next;
for(n = input.first; n; n = next)
{
next = n.link.next;
if(!n.incoming.count)
typedef struct _userSTGMEDIUM
{
struct _STGMEDIUM_UNION
{
DWORD tymed;
union
{
wireHMETAFILEPICT hMetaFilePict;
wireHENHMETAFILE hHEnhMetaFile;
GDI_OBJECT * hGdiHandle;
typedef struct _userSTGMEDIUM
{
struct
{
DWORD tymed;
union
{
wireHMETAFILEPICT hMetaFilePict;
wireHENHMETAFILE hHEnhMetaFile;
GDI_OBJECT * hGdiHandle;
import "ecere"
class Form1 : Window
{
caption = $"Form1";
background = formColor;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;