changed: now [for] statements with the same function can be nested
sample: [for my_function] [for my_function] foo [end] [end] changed: FunInfo::iter has a value from the last [for] statement now sample: [for my_function] [other_function] [end] void other_function(Info &i) { // here i.iter is the number of iteration // previously was always zero } changed: small optimization in [for] the proper function is being looking for only once at the beginning previously it was searched in each iteration git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@331 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007-2010, Tomasz Sowa
|
||||
* Copyright (c) 2007-2011, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -64,8 +64,6 @@ public:
|
||||
UserFunction user_function; // used when type is 'function'
|
||||
std::wstring variable; // used when type is 'variable'
|
||||
|
||||
int iter;
|
||||
bool is_for; // true if is used by a [for] statement
|
||||
bool is_running; // true if this function is currently executed
|
||||
|
||||
Function();
|
||||
@@ -103,8 +101,6 @@ Functions<StreamType>::Function::Function()
|
||||
{
|
||||
type = Functions::variable;
|
||||
user_function = 0;
|
||||
iter = 0;
|
||||
is_for = false;
|
||||
is_running = false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user