Skip to content

Instantly share code, notes, and snippets.

import "ecere"
// double scale = 6380997;
double scale = 63809; // This is already broken
// double scale = 6380; // This works
class MyApp : GuiApplication
{
driver = "OpenGL";
// driver = "Direct3D";
import "ecere"
class Form1 : Window
{
caption = "Form1";
background = activeBorder;
borderStyle = sizable;
hasMaximize = true;
hasMinimize = true;
hasClose = true;
void TestLoopOptimizations()
{
Map<int, char> map { [ { 1, '1' }, { 2, '2' }, { 3, '3' } ] };
for(i : map) PrintLn(&i), PrintLn(i);
delete map;
}
void TestManualLoops()
{
Map<int, char> map { [ { 1, '1' }, { 2, '2' }, { 3, '3' } ] };
/.
/usr
/usr/include
/usr/include/jpegint.h
/usr/include/jerror.h
/usr/include/jmorecfg.h
/usr/include/jconfig.h
/usr/include/jpeglib.h
/usr/lib
/usr/lib/x86_64-linux-gnu
import "ecere"
import "Image"
import "Layout"
import "Button"
class LayoutArea : LayoutWindow
{
text = "Rectangle Layout Demo";
background = peru;
borderStyle = sizable; //fixed;
import "ecere"
import "console" //typing
import "about" //about
import "help" //help
import "Sounds" //sounds
import "IPPorts" //IP Ports
import "enckey" //encryption keys
import "changename" //change nickname
import "UDP" //ports
import "htmlParser"
3ec7cd9 ecere/gui/ColorDropBox: Fixed missing color - Fixed problem introduced by 0faaa3a99957395bcb1a323bf18c8f0e1ffca642
2a10b1b ecere/gfx/fonts: Fixed wrong kerning when using the same face with different sizes
cbe727b compiler/libec: Marking all structs with gcc_struct to get same packed padding as GCC < 4.7
1fe51ec compiler/libec: Fix for debug line numbers in generated C code
9b55c14 ide/Project: Fixed buffer overflows using DynamicString::concatf - As I understand it, the whole point of DynamicString being to avoid buffer overflows, we should either get rid of concatf or fix it ASAP.
import "HTMLView"
class AddressBar : Window
{
background = activeBorder;
EditBox address
{
this, text = "Address", anchor = Anchor { left = 60, right = 60, top = 0, bottom = 0 }, hotKey = altA;
bool NotifyKeyDown(EditBox editBox, Key key, unichar ch)
#include "sort.h"
void SRT_Bubble(sort_t *Array, WORD Count)
{
WORD c1,c2;
sort_t tmp;
for(c1=0; c1<Count; c1++)
for(c2=Count-1; c2>c1; c2--)
if(Array[c1].Compared>Array[c2].Compared)
{
{
File f = FileOpen("file.txt", read);
if(f)
{
while(!f.eof)
{
char buffer[1024];
if(f.GetLine(buffer, sizeof(buffer)))
PrintLn(buffer);
}