WINAMP.COM | Forums > Developer Center > NSIS Discussion > NSISArray plugin |
| Pages (4): [1] 2 3 » ... Last » |
Last Thread
Next Thread
|
| Author |
|
|
Afrow UK Moderator
Registered: Nov 2002 |
NSISArray plugin
A plugin which adds fast dynamic array support to NSIS with over 20 functions for array manipulation. __________________ |
||
|
|
|
Joost Verburg NSIS MUI Dev
Registered: Nov 2001 |
If there is only source code in the Contrib folder (so nothing for the end-user), I would also recommend you to put the actual contents in Include. |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Good question! I think I just did it because of Modern UI and my Self-Extractor kit. It just keeps all the source code (C++/NSIS) in one folder so if someone (or I) wants to modify the source code (plugin code or the NSIS code), we know where to find it. __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
I was testing the arrays and ran into a few problems. Please look at this dummy script: code: During compile, on this line: ${TestArray->Search} $1 "dog" 0 I get this error: !insertmacro: macro "Array_Search" requires 4 parameter(s), passed 5! If I REM this line, then I get an error at runtime that says "SizeOf:parameter error" Am I being stupid or are these both bugs? |
||
|
|
|
Joost Verburg NSIS MUI Dev
Registered: Nov 2001 |
|
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Ah right I see. __________________ Last edited by Afrow UK on 07-25-2005 at 06:48 PM |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Thanks, Afrow. |
||
|
|
|
Joost Verburg NSIS MUI Dev
Registered: Nov 2001 |
The SourceForge database server has performance issues, they are working on doubling the capacity. In the meanwhile the NSIS Site and Wiki may be slow during peak times. |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Hey Afrow, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
That's interesting. For some reason in the source I was taking 1 away from the output (when I shouldn't have been). __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
No problem. I've been wanting to check some of the other functions, but just haven't had time. From the little I've worked with it, this looks like it will be a very powerful plugin. |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Ok Afrow, now that I've buttered you up, I've got several bugs to report!
|
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Right thanks. __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Thanks again Comperio, uploaded fixed version. __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
All fixes worked great! |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Another bug. Using the function ReadToStack, I found I had to commend out line #136 of the NSISArray.nsh file: code: I didn't find ${ArrayErrVar} defined anywhere in the header file. And I didn't see that anything extra was being pushed to the stack by your plugin. (Maybe you were using ArrayErrVar when debugging and just forgot to take it out?) Also: When I called PushToStack, I noticed that it pushed in the reverse order than I was expecting based on your example. I pushed the Array [0,1,2,3] and when I popped, I got 3, 2, 1, and then 0. I'm not saying you need to change the code, but perhaps you could just make that clearer in the docs.
|
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Found another bug (maybe?)
|
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
OK, 2 more bugs, and I think that's it:
|
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Thanks, fixed. __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
I still have the problems with ReadToStack and Splice. (See my first 2 posts from yesterday). |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Doh I didn't see the post above it. __________________ Last edited by Afrow UK on 07-31-2005 at 04:00 PM |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Uploaded new build (still v0.5 though). __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
OK, getting closer...
|
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Dear me, that wasn't very good __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Hey Afrow, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I was thinking that also. Please send them to afrowuk at tiscali dot co dot uk __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Uploaded new build. I've done a bit more than bug fixes in this release (although it's still v0.5). Check the Change Log in the readme. __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Hey Afrow, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
This is how it was before. Remember there was a Pop ${ArrayErrVar} in ReadToStack. Error messages used to get passed onto the stack, but for some reason I changed it. __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Uploaded v0.6 with the new $ArrayErr (stack) error support. Use !define ArrayErrorMsgBox to use the old school error message boxes. __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Afrow, |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
For some reason I missed out the new header file which adds support for the ArrayErrorMsgBox define (and fixes that problem you've mentioned). __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Another issue I'm still looking into, but perhaps you could guide me: |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I'll have a look. It could be a /NOUNLOAD issue. __________________ |
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
I've added ${ArrayUnload} to this build (v0.6 RC3). __________________ |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
Thanks! I'll check it out. Last edited by Comperio on 08-06-2005 at 05:30 PM |
||
|
|
|
superruzafa Junior Member
Registered: Jan 2005 |
I want to use two arrays in my installer. This basic example results in a compiling error. A bug? code: code: |
||
|
|
|
Comperio Major Dude
Registered: Jan 2005 |
I did some digging and found the problem (and turned up another problem in the process). My modified header file attached should fix it. (Note that I changed the name of the header file. Afrow may have another way he'd prefer to handle it so I didn't want my modifications to be confused with the 'official' version.)
|
||
|
|
|
Afrow UK Moderator
Registered: Nov 2002 |
Thanks for helping out. __________________ |
||
|
|
|
| Pages (4): [1] 2 3 » ... Last » |
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > NSISArray plugin |
Forum Rules:
|