Register | Login
Forum Index > Source Help > porting op macro to ziron2
Author Message
Pages: 1 2
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1432] - posted: 2014-12-11 20:52:08
Hi Emil, please re-download beta,

I've just re-added this function, it is improved a little. Change your export to:

Code:
function onFileEntry(DWord handle; char* strCode; DWord len) {


The function must return true or false. If your plugin makes changes to the code, return true, if the plugin does not make any changes return false.

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
[1433] - posted: 2014-12-12 10:43:52

Ok , i have another tow questions.

1- what is the equal to this old function Ziron_IsNextLineBreak() ?

2- does the old enum ZirToken in plugin is still the same in ziron2 ,
so can i borrow this form ziron 1
Code:
zirParenOpen = 7,      // (
zirParenClose = 8,      // )



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

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1434] - posted: 2014-12-12 14:07:13
Hi Emil,

No, they're incompatible. Please see the emit plugin for detecting single characters.
As for the line break, I will add this to top of the list, possibly today, but not sure as I will be away for a while to India.

I will reply shortly.

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Admin
Site Admin

avatar

(send private message)

Posts: 933
Topics: 55

Location:
OverHertz Studio
[1435] - posted: 2014-12-12 21:40:04
OK, I have just re-uploaded beta with several fixes and 2 new plugin apis.

ziron_eol will return true if at end of line.

Code:
eax = ziron_eol();


detecting chars:

Code:
  eax = ziron_token_next();
  if (eax == TOKEN_SYM) {
    eax = ziron_curtoken_charptr();
    if (char[eax] == ord('(')) {
      break;
    }
  }


you could make a macro to simplify this process.

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
[1436] - posted: 2014-12-13 17:55:12

thank you Colin.

i will try them sooner.

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