|
@@ -42,12 +42,15 @@ extern "C" {
|
42
|
42
|
const void* cmStackTop( cmStackH_t h );
|
43
|
43
|
|
44
|
44
|
// Set the value of 'dataEleCnt' elements on the stack.
|
|
45
|
+ // The top element is at index cmStackCount() - 1.
|
45
|
46
|
cmStRC_t cmStackSet( cmStackH_t h, unsigned index, const void* data, unsigned dataEleCnt );
|
46
|
47
|
|
47
|
48
|
// Copy 'dataEleCnt' elements into the buffer pointed to by 'data'.
|
|
49
|
+ // The top element is at index cmStackCount() - 1.
|
48
|
50
|
cmStRC_t cmStackGetN( cmStackH_t h, unsigned index, void* data, unsigned dataEleCnt );
|
49
|
51
|
|
50
|
52
|
// Return a pointer to a single element on the stack.
|
|
53
|
+ // The top element is at index cmStackCount() - 1.
|
51
|
54
|
const void* cmStackGet( cmStackH_t h, unsigned index );
|
52
|
55
|
|
53
|
56
|
// Convert the internal representation of the stack to a linear array and return
|