They are kept in a special identifier tree, it would not be possible to make them directly accessible. Is there something specific you need to do with them?
ZirToken
A community discussion post from the original code:zIRON forum.
Replies
hmm actually there is a problem, that would make things very complex.....
i think there will not be any local variable event, since it would make it more complex for used upper variables, i think maybe....
onVariable
onBaseExpression
onRegister
BaseExpression will cover local variables, register ptrs and many other things such as
[ecx+edx+5] = ....
i will think about this a bit more
ok ,
does plugin allow to put more than one event function in one plugin ?
because ; i got access violation when compile test program , i added this to my basic plugin
function event_Let() {
uses edi;
char buf[2048];
char line[2048];
char val[255];
Dword Len;
boolean ParesFlg = true;
len = Ziron_ExtractLine(@line, 2048);
// remove 'let' form line
Eax = @line
while(char[eax] != 0)
{
cl = char[Eax+3]
char[Eax]= cl
}
if(ParesFlg)
{
Ziron_ShowMessage(@line); // show our entire line for debug purpose
Ziron_GetNextToken();
return true;
}
else
{
return false; // let Ziron handle the line
}
}
function InitPlugin(pointer pGetF) {
Ziron_LoadAll(pGetF); //use framework utility function to load all
//add some variable type
const MyType = 'type Integer = Int32; type String = char; type Uchar = char; type Schar = sbyte; type USHORT = word;';
Ziron_Execute(@MyType,H_strlen(@MyType));
//register our keyword
Ziron_RegisterKeyword('Dim', @event_Dim);
Ziron_RegisterKeyword('Let', @event_Let);
return strLoaded;
}
http://www.freewebs.com/ogremagic/index.htm
yes it should have no problems with as many as you like try an empty let event to see if it has error
function event_Let() {
eax = false;
}
i think this is a problem >
while(char[eax] != 0)
{
cl = char[Eax+3]
char[Eax]= cl
}
because eax may not be nil, but + 3 may be beyond the end of the line.
no error with empty function , so which part of the above code that cause access violation?
http://www.freewebs.com/ogremagic/index.htm