mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
19025d77ad
Reorganized. Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory. Created a libexec directory that holds all of the executables that users don't need to execute directly. Changed all of the executables remaining in bin to start with "trick-". In the sim_services directories changed all source files to find the Trick headers in their new location. Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level. Moved the makefiles, docs, man, and other architecture independent files into a top level share directory. Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on. refs #63
49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
#ifndef IO_ALLOC_H
|
|
#define IO_ALLOC_H
|
|
#include "trick/attributes.h"
|
|
#include "trick/parameter_types.h"
|
|
|
|
typedef enum {
|
|
TRICK_LOCAL = 0,
|
|
TRICK_EXTERN = 1,
|
|
} TRICK_STCL;
|
|
|
|
typedef enum {
|
|
TRICK_ALLOC_MALLOC = 0,
|
|
TRICK_ALLOC_NEW = 1,
|
|
TRICK_ALLOC_OTHER = 2,
|
|
} TRICK_ALLOC_TYPE;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* The ALLOC_INFO structure describes a chunk of memory that the MemoryManager knows about.
|
|
*/
|
|
typedef struct {
|
|
|
|
void *start; /**< ** Address where this allocation starts */
|
|
void *end; /**< ** Address where this allocation ends */
|
|
char *name; /**< ** Name of parameter */
|
|
int size; /**< ** Size of element */
|
|
int sentinel_bytes; /**< ** Number of sentinel bytes. Sentinel bytes are extra bytes requested by operator new[] */
|
|
Language language; /**< ** Language */
|
|
TRICK_TYPE type; /**< ** Type specifier */
|
|
TRICK_STCL stcl; /**< ** Storage class */
|
|
TRICK_ALLOC_TYPE alloc_type; /**< ** Allocation type for local variables */
|
|
char *user_type_name; /**< ** name of class/struct or enumeration type */
|
|
ATTRIBUTES *attr; /**< ** class/struct or enumeration attributes */
|
|
int num; /**< ** Total number of elements. Is the product of all the fixed dimension sizes.*/
|
|
int num_index; /**< ** number of dimensions. */
|
|
int index[TRICK_MAX_INDEX]; /**< ** dimension sizes. */
|
|
|
|
unsigned int id ; /**< ** id number assigned when added to ALLOC_INFO_MAP */
|
|
int alloced_in_memory_init ; /**< ** boolean indicating memory was set in memory_init in S_source.cpp */
|
|
} ALLOC_INFO;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|