24 #include <sys/types.h> 26 #include <semaphore.h> 28 #include <gsl/gsl_rng.h> 35 #define PI 3.14159265358979323846264338328 38 #define SZ_CLICOREVARRAY 1000 51 #define CFITSEXIT printf("Program abnormally terminated, File \"%s\", line %d\n", __FILE__, __LINE__);exit(0) 54 #define nmalloc(f,type,n) f = (type*) malloc(sizeof(type)*n);if(f==NULL){printf("ERROR: pointer \"" #f "\" allocation failed\n");exit(0);}else{printf("\nMALLOC: \""#f "\" allocated\n");} 55 #define nfree(f) free(f);printf("\nMALLOC: \""#f"\" freed\n"); 57 #define nmalloc(f,type,n) f = (type*) malloc(sizeof(type)*n);if(f==NULL){printf("ERROR: pointer \"" #f "\" allocation failed\n");exit(0);} 58 #define nfree(f) free(f); 61 #define TEST_ALLOC(f) if(f==NULL){printf("ERROR: pointer \"" #f "\" allocation failed\n");exit(0);} 78 #define DATA_NB_MAX_COMMAND 1000 79 #define DATA_NB_MAX_MODULE 100 84 #define STATIC_NB_MAX_IMAGE 5020 85 #define STATIC_NB_MAX_VARIABLE 5030 110 int_fast8_t (* fp) ();
193 char package_name[100];
194 char package_version[100];
199 struct sigaction sigact;
233 char CLIlogname[200];
237 char processname[100];
248 long calctmp_imindex;
263 #ifdef DATA_STATIC_ALLOC 264 IMAGE image[STATIC_NB_MAX_IMAGE];
269 long NB_MAX_VARIABLE;
270 #ifdef DATA_STATIC_ALLOC 271 VARIABLE variable[STATIC_NB_MAX_VARIABLE];
278 float FLOATARRAY[1000];
279 double DOUBLEARRAY[1000];
291 #define MAX_NB_FRAMENAME_CHAR 500 292 #define MAX_NB_EXCLUSIONS 40 297 int_fast8_t
RegisterModule(
char *FileName,
char *PackageName,
char *InfoString);
299 uint_fast16_t
RegisterCLIcommand(
char *CLIkey,
char *CLImodule, int_fast8_t (*CLIfptr)(),
char *CLIinfo,
char *CLIsyntax,
char *CLIexample,
char *CLICcall);
301 int_fast8_t
runCLI(
int argc,
char *argv[],
char *promptstring);
uint8_t TYPESIZE[32]
Definition: CLIcore.c:169
Definition: CLIcore.h:191
void sig_handler(int signo)
signal catching
Definition: CLIcore.c:257
char BuildTime[200]
Definition: CLIcore.c:165
int_fast8_t RegisterModule(char *FileName, char *PackageName, char *InfoString)
Definition: CLIcore.c:717
pid_t CLIPID
important directories and info
Definition: CLIcore.c:160
uint_fast8_t BOOL
Definition: CLIcore.h:71
Definition: CLIcore.h:107
char BuildFile[200]
Definition: CLIcore.c:163
int CLI_checkarg_noerrmsg(int argnum, int argtype)
Definition: CLIcore.c:2361
char BuildDate[200]
Definition: CLIcore.c:164
int CLI_checkarg(int argnum, int argtype)
Definition: CLIcore.c:2352
DATA data
Definition: CLImain.c:21
Definition: CLIcore.h:172
char SrcDir[200]
Definition: CLIcore.c:162
IMAGE
Definition: ImageStruct.h:432
Definition: CLIcore.h:119
char DocDir[200]
Definition: CLIcore.c:161
int C_ERRNO
Definition: CLIcore.c:171
uint_fast16_t RegisterCLIcommand(char *CLIkey, char *CLImodule, int_fast8_t(*CLIfptr)(), char *CLIinfo, char *CLIsyntax, char *CLIexample, char *CLICcall)
Definition: CLIcore.c:755
int_fast8_t runCLI(int argc, char *argv[], char *promptstring)
Command Line Interface (CLI) main .
Definition: CLIcore.c:784
Definition: CLIcore.h:146