Stack plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
No edit summary
 
 
(11 intermediate revisions by 2 users not shown)
Line 2: Line 2:


== Links ==
== Links ==
 
Download v2.0:<br>
Download v1.1:<br>
<attach>Stack.zip</attach>
<attach>Stack.zip</attach>


Line 11: Line 10:
== Description ==
== Description ==


This is NSIS plug-in for stack.
This NSIS plug-in manipulates either the NSIS stack or its own private stack.
 
== DLL Functions ==
 
=== For NSIS stack (linear) ===
 
;ns_push_front
:Adds an element to the top of the NSIS stack (same as Push).
 
;ns_pop_front
:Removes the element from the top of the NSIS stack and puts it in the variable (same as Pop).
 
;ns_push_back
:Adds an element to the beginning of the NSIS stack.
 
;ns_read
:Finds the NSIS element with index and puts it in the variable.
 
;ns_write
:Finds the NSIS element with index and rewrite it.
 
;ns_size
:Gets the number of elements in the NSIS stack.
 
;ns_clear
:Clears all NSIS stack.
 
=== For private plug-in stack (bilinear) ===
 
;dll_create
:Create private stack.
 
;dll_insert
:Finds the private element with index and inserts new element in it index.
 
;dll_delete
:Finds the private element with index, puts it in the variable and removes it.
 
;dll_read
:Finds the private element with index and puts it in the variable.
 
;dll_write
:Finds the private element with index and rewrite it.
 
;dll_move
:Finds the private element with index and move it to the new index.
 
;dll_exchange
:Finds the private elements with indexes and exchanges them.
 
;dll_delete_range
:Finds the private elements between indexes and removes.
 
;dll_move_range
:Finds the private elements by indexes and move them to the new index.
 
;dll_reverse_range
:Reverse range of private elements.
 
;dll_push_sort
:Pushs the private element and sorts alphabetically in ascending or descending.
 
;dll_push_sort_int
:Pushs the private element and sorts numerically in ascending or descending.
 
;dll_sort_all
:Sorts private stack alphabetically in ascending or descending.
 
;dll_sort_all_int
:Sorts private stack numerically in ascending or descending.
 
;dll_size
:Gets the number of elements in the private stack.
 
;dll_clear
:Clears all private stack.
 
;dll_destroy
:Destroy private stack.
 
=== Other functions ===


'''Functions for working with NSIS stack (linear):'''
;Debug
*ns_push_front
:Debug dialog.
-Adds an element to the top of the NSIS stack (same as Push)
<br><br>
*ns_pop_front
-Removes the element from the top of the NSIS stack and puts it in the variable (same as Pop)
<br><br>
*ns_push_back
-Adds an element to the beginning of the NSIS stack.
<br><br>
*ns_stack_read
-Finds the NSIS element with index and puts it in the variable.
<br><br>
*ns_stack_write
-Finds the NSIS element with index and rewrite it.
<br><br>
*ns_stack_size
-Gets the number of elements in the NSIS stack.
<br><br>
*ns_stack_clear
-Clears all NSIS stack
<br><br>


'''Functions for working with private stack (bilinear):'''
;Unload
*dll_push_front
:Unload plugin.
-Adds an element to the top of the private stack.
<br><br>
*dll_pop_front
-Removes the element from the top of the private stack and puts it in the variable.
<br><br>
*dll_push_back
-Adds an element to the beginning of the private stack.
<br><br>
*dll_pop_back
-Removes the element from the beginning of the private stack and puts it in the variable.
<br><br>
*dll_stack_read
-Finds the private element with index and puts it in the variable.
<br><br>
*dll_stack_write
-Finds the private element with index and rewrite it.
<br><br>
*dll_stack_insert
-Finds the private element with index and inserts new element in it index.
<br><br>
*dll_stack_exchange
-Finds the elements with indexes and exchanges them.
<br><br>
*dll_stack_delete
-Finds the private element with index, puts it in the variable and removes it.
<br><br>
*dll_stack_delete_range
-Finds the elements between indexes and removes.
<br><br>
*dll_stack_move
-Finds the element with index and move it to the new index.
<br><br>
*dll_stack_move_range
-Finds the element with index and move it to the new index.
<br><br>
*dll_stack_sort
-Sorts the stack alphabetically in ascending or descending.
<br><br>
*dll_stack_reverse_range
-Reverse range of elements.
<br><br>
*dll_stack_size
-Gets the number of elements in the private stack.
<br><br>
*dll_stack_clear
-Clears all private stack


[[Category:Plugins]]
[[Category:Plugins]]

Latest revision as of 18:39, 18 September 2013

Author: Instructor (talk, contrib)


Links

Download v2.0:
Stack.zip (70 KB)

Discussion:
Forum thread

Description

This NSIS plug-in manipulates either the NSIS stack or its own private stack.

DLL Functions

For NSIS stack (linear)

ns_push_front
Adds an element to the top of the NSIS stack (same as Push).
ns_pop_front
Removes the element from the top of the NSIS stack and puts it in the variable (same as Pop).
ns_push_back
Adds an element to the beginning of the NSIS stack.
ns_read
Finds the NSIS element with index and puts it in the variable.
ns_write
Finds the NSIS element with index and rewrite it.
ns_size
Gets the number of elements in the NSIS stack.
ns_clear
Clears all NSIS stack.

For private plug-in stack (bilinear)

dll_create
Create private stack.
dll_insert
Finds the private element with index and inserts new element in it index.
dll_delete
Finds the private element with index, puts it in the variable and removes it.
dll_read
Finds the private element with index and puts it in the variable.
dll_write
Finds the private element with index and rewrite it.
dll_move
Finds the private element with index and move it to the new index.
dll_exchange
Finds the private elements with indexes and exchanges them.
dll_delete_range
Finds the private elements between indexes and removes.
dll_move_range
Finds the private elements by indexes and move them to the new index.
dll_reverse_range
Reverse range of private elements.
dll_push_sort
Pushs the private element and sorts alphabetically in ascending or descending.
dll_push_sort_int
Pushs the private element and sorts numerically in ascending or descending.
dll_sort_all
Sorts private stack alphabetically in ascending or descending.
dll_sort_all_int
Sorts private stack numerically in ascending or descending.
dll_size
Gets the number of elements in the private stack.
dll_clear
Clears all private stack.
dll_destroy
Destroy private stack.

Other functions

Debug
Debug dialog.
Unload
Unload plugin.