Register | Login
Forum Index > Plugins > scan the entire source file
Author Message
Pages: 1 2
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1824] scan the entire source file - posted: 2015-03-05 17:17:19
Hi

i need Little example that shoing me how to scan the entire source code and how to make a changes in lt ,also return the changed code to Ziron.

http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1829] - posted: 2015-03-23 16:07:14
Grab the latest release.

Code:
procedure ZIRON_API onFileEntry(DWord handle; char* pCode; DWord len): boolean;


This event is called on each file that is entered (similar to Ziron 1)

A new function I just added.
Code:
function* ZIRON_API ziron_file_setbuffer(DWord filehd; char* buf; DWord len): boolean;


using onFileEntry, you can read the code from pCode buffer, create your own buffer with your new code, and then call ziron_file_setbuffer, with the file handle, a pointer to your new buffer with length, Ziron will update the internal buffer with your new code.

Hope this helps.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1831] - posted: 2015-03-24 20:16:43
nice work Mr Colin.

thank you.

http://www.freewebs.com/ogremagic/index.htm
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1834] - posted: 2015-04-08 19:28:54
Mr Colin

what is wrong wti this code
Code:
function stdcall onFileEntry(DWord handle; char* strCode; DWord len) {
  
     uses edi;
     
     char  line[2048];
     char* ptr;
     dword buf;
      
     buf =  GlobalAlloc(GPTR , 2 * len);
     
     esi = strCode;
     edi = @line;
     while( char[esi] <> 10) 
      {
         char[edi++]=char[esi++];
      }  
     
    
    ziron_log_messageA('', false);
    
    ziron_file_setbuffer(handle, buf, strlen(buf));
    
    GlobalFree(buf);
     
    return true;
}


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1835] - posted: 2015-04-09 12:20:26
2 * len
char [edi++]

both are not accepted at current.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1836] - posted: 2015-04-09 18:54:02

ok , when they will be okay.


http://www.freewebs.com/ogremagic/index.htm
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1837] - posted: 2015-04-09 21:33:22
Since 2 * len is classed as a complex expression (would require additional assembly), it is unlikely to be supported, however reg++ I will add on my todo list.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Emil_halim
Ziron Beta Tester

avatar

(send private message)

Posts: 639
Topics: 104

Location:
Alex, Egypt
[1838] - posted: 2015-04-10 13:17:58

Since 2 * len is classed as a complex expression (would require additional assembly), it is unlikely to be supported


why , if you had seen Sphinx C-- , it is suports complex expresion in the same time user can make his low level expresion , alse
it supportes float point expresion.

you may add that as a plugin for complex expresion.

http://www.freewebs.com/ogremagic/index.htm
Pages: 1 2
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 1 user(s) online. 0 member(s) and 1 guest(s)
Most users ever online was 1046, January 28, 2022, 2:08 pm.


Statistics:
Threads: 225 | Posts: 1848 | Members: 51 | Active Members: 51
Welcome to our newest member, yecate
const Copyright = '2011-2024 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd