Choco OS  V.0.16.9.0
Join to the chocolate world
oc_program_data.c
Go to the documentation of this file.
1 
27 #ifdef oC_CORE_SPACE
28 #include <oc_program.h>
29 
30 //==========================================================================================================================================
39 //==========================================================================================================================================
40 extern int main( int Argc , const char ** Argv );
41 
42 //==========================================================================================================================================
46 //==========================================================================================================================================
47 #define _TO_STRING(T) #T
48 #define TO_STRING(T) _TO_STRING(T)
49 
50 //==========================================================================================================================================
54 //==========================================================================================================================================
55 const oC_Program_Registration_t ProgramRegistration = {
56  .Name = TO_STRING(oC_PROGRAM_NAME) ,
57  .Priority = oC_Program_Priority_CoreSpaceProgram ,
58  .MainFunction = main ,
59  .StdInName = TO_STRING(oC_STDIN),
60  .StdOutName = TO_STRING(oC_STDOUT),
61  .StdErrName = TO_STRING(oC_STDERR),
62  .HeapMapSize = HEAP_MAP_SIZE,
63  .ThreadStackSize = PROCESS_STACK_SIZE,
64 #ifdef ALLOCATION_LIMIT
65  .AllocationLimit = ALLOCATION_LIMIT,
66 #else
67  .AllocationLimit = 0 ,
68 #endif
69 #ifdef TRACK_ALLOCATION
70  .TrackAllocations = true,
71 #else
72  .TrackAllocations = false,
73 #endif
74 };
75 #endif
The file with interface for programs.