$strlen broken?

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

shuttle
a lesser mummy
a lesser mummy
Posts: 62
Joined: Mon Nov 11, 2002 6:08 am

$strlen broken?

Post by shuttle » Sat Aug 30, 2003 8:32 pm

I have several macros that depend on $strlen for them to work properly.

at the EQ prompt I type "/echo $strlen(abcdefg)" and I get "macroquest: @strlen(abcdefg)" as output instead of 7 as I would expect.

This is with todays sourcecode. I looked at the previous code and in the $strlen section in EQLib_MacroParser.cpp looks untouched.

shuttle

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sat Aug 30, 2003 9:17 pm

doh, nice catch, I forgot to put it in the Parm list. will be in my next CVS commit.

shuttle
a lesser mummy
a lesser mummy
Posts: 62
Joined: Mon Nov 11, 2002 6:08 am

Post by shuttle » Sat Aug 30, 2003 9:49 pm

where is the list so I can patch my code please.

shuttle

shuttle
a lesser mummy
a lesser mummy
Posts: 62
Joined: Mon Nov 11, 2002 6:08 am

Post by shuttle » Sat Aug 30, 2003 10:04 pm

Found the list in EQLib_MacroParcer.h

shuttle

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sat Aug 30, 2003 11:45 pm

yep, add this to the Parms variable...

Code: Select all

	{"strlen(",				"parmStrLen",		NULL},