#include "geoslib_old_f.h"
int pile_correct |
( |
int |
type, |
|
|
int |
rank, |
|
|
int |
mode |
|
) |
| |
Check if the Pile is managed correctly
- Returns
- 1 if the Pile Management is incorrect; 0 otherwise
- Parameters
-
[in] | type | Type of the pile |
[in] | rank | Rank of the slot |
[in] | mode | Status
- 1 : Check that the element must be already allocated
- -1 : Check that the element will be allocated
|
char* pile_get |
( |
int |
type, |
|
|
int |
rank |
|
) |
| |
Returns the address managed in the pile
- Parameters
-
[in] | type | Type of the pile |
[in] | rank | Rank of the slot |
void pile_manage |
( |
int |
type, |
|
|
int |
rank, |
|
|
int |
mode, |
|
|
char * |
ptr |
|
) |
| |
Manage the pile
- Parameters
-
[in] | type | Type of the pile |
[in] | rank | Rank of the slot |
[in] | mode | 1 for allocation and -1 for deallocation |
[in] | ptr | Pointor to be stored (allocation mode) |
int pile_next |
( |
int |
type | ) |
|
Returns the rank of the first free element
- Returns
- Rank of the first available slot or -1 if failure
- Parameters
-
void pile_reset |
( |
int |
type | ) |
|
Reset one pile
- Parameters
-
void piles_reset |
( |
void |
| ) |
|