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
typedef struct _Esk | |
{ | |
... | |
} Esk; | |
void hello(Esk *mystruct) | |
{ | |
} |
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 "ecere" | |
class Form1 : Window | |
{ | |
caption = $"Form1"; | |
background = formColor; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |
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
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); | |
} |
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 TopoEdge | |
{ | |
Link in; | |
Link out; | |
External from; | |
External to; | |
bool breakable; | |
}; | |
class External |
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
class TopoEdge : struct | |
{ | |
Link in, out; | |
External from, to; | |
bool breakable; | |
}; | |
class External | |
{ | |
public const char * output; |
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
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; |
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
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) |
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
typedef struct _userSTGMEDIUM | |
{ | |
struct _STGMEDIUM_UNION | |
{ | |
DWORD tymed; | |
union | |
{ | |
wireHMETAFILEPICT hMetaFilePict; | |
wireHENHMETAFILE hHEnhMetaFile; | |
GDI_OBJECT * hGdiHandle; |
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
typedef struct _userSTGMEDIUM | |
{ | |
struct | |
{ | |
DWORD tymed; | |
union | |
{ | |
wireHMETAFILEPICT hMetaFilePict; | |
wireHENHMETAFILE hHEnhMetaFile; | |
GDI_OBJECT * hGdiHandle; |
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 "ecere" | |
class Form1 : Window | |
{ | |
caption = $"Form1"; | |
background = formColor; | |
borderStyle = sizable; | |
hasMaximize = true; | |
hasMinimize = true; | |
hasClose = true; |