Skip to content

Commit

Permalink
optimize a bit handling of the is_multi flag
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Aug 18, 2011
1 parent 747b557 commit 2a5ac47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions NEWS
@@ -1,6 +1,8 @@
Winxed news.
(C) Julián Albo "NotFound"

Version 1.2

Version 1.1
- multi functions and methods
- casting to var builtin
Expand Down
10 changes: 5 additions & 5 deletions winxedst1.winxed
Expand Up @@ -10,8 +10,8 @@ namespace Compiler
{

const int VERSION_MAJOR = 1;
const int VERSION_MINOR = 1;
const int VERSION_BUILD = 0;
const int VERSION_MINOR = 2;
const int VERSION_BUILD = -1;

//*********************************************
// Character test functions
Expand Down Expand Up @@ -8878,7 +8878,7 @@ class FunctionStatement : FunctionBase
self.parse(tk);
self.multi_sig = [];
var params = self.params;
self.is_multi = false;
self.is_multi = new ["Boolean"];
if (params != null) {
var multi_sig = self.multi_sig;
int start_idx = 0;
Expand Down Expand Up @@ -8907,11 +8907,11 @@ class FunctionStatement : FunctionBase
function ismethod() { return false; }
function ismulti()
{
return int(self.is_multi);
return self.is_multi ? true : false;
}
function setmulti()
{
self.is_multi = true;
self.is_multi =: true;
}

function parse(tk)
Expand Down

0 comments on commit 2a5ac47

Please sign in to comment.