This file contains hidden or 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" | |
| struct __ecereClosure1DataStruct | |
| { | |
| int * x; | |
| }; | |
| static int __ecereClosure1(struct __ecereClosure1DataStruct * __ecereClosure1Data, int y) | |
| { | |
| return (*__ecereClosure1Data->x) + y; |
This file contains hidden or 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" | |
| int TestFunction(int x, int y) | |
| { | |
| PrintLn("x = ", x, ", y = ", y); | |
| } | |
| void TakeSomething(int test(int x, int y)) | |
| { | |
| test(10, 20); |
This file contains hidden or 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
| diff --git a/ecere/src/gui/controls/EditBox.ec b/ecere/src/gui/controls/EditBox.ec | |
| index 46818b3..df7a4ea 100644 | |
| --- a/ecere/src/gui/controls/EditBox.ec | |
| +++ b/ecere/src/gui/controls/EditBox.ec | |
| @@ -1516,6 +1516,7 @@ private: | |
| // ****** SYNTAX HIGHLIGHTING ****** | |
| bool lastWasStar = false; | |
| bool firstWord = true; | |
| + bool wasInMultiLine = false; | |
| if(!escaped) inPrep = false; |
This file contains hidden or 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
| #include <stdio.h> | |
| typedef enum { false, true } bool; | |
| typedef struct | |
| { | |
| bool a:1; | |
| } TestStruct; | |
| int main() |
This file contains hidden or 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
| property Container<int> foo | |
| { | |
| set | |
| { | |
| BuiltInContainer<int> * array = (void *)value; | |
| // Use array->count and array->data | |
| } | |
| get | |
| { | |
| int count; |
This file contains hidden or 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" | |
| struct SS | |
| { | |
| int x; | |
| }; | |
| void Test() | |
| { | |
| struct SS *p; |
This file contains hidden or 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 Test() | |
| { | |
| struct SS | |
| { | |
| uint a; | |
| union | |
| { | |
| uint b; | |
| uint c; | |
| }x; |
This file contains hidden or 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 SS | |
| { | |
| uint a; | |
| union | |
| { | |
| uint b; | |
| uint c; | |
| }x; | |
| }; |
This file contains hidden or 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
| public define Phi = 1.6180339887; | |
| bool IsPerfectSquare(uint64 number) | |
| { | |
| double root = sqrt(number); | |
| uint64 square = (uint64)root * (uint64)root; | |
| return square == number; | |
| } | |
| struct Matrix2x2 |
This file contains hidden or 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 TestFibonacci() | |
| { | |
| Fibonacci fibonacci { }; | |
| Iterator<uint64> i { fibonacci }; | |
| int c; | |
| //while(i.Next()) | |
| while(i.Prev()) | |
| { | |
| PrintLn(i.data); | |
| } |
OlderNewer