coffee
Coronagraph Optimization For Fast Exoplanet Exploration
CLIcore.c File Reference

main C file More...

Functions

int yy_scan_string (const char *)
 
int yylex_destroy (void)
 
CLIcore functions
int user_function ()
 
void fnExit1 (void)
 
void main_init ()
 
void main_free ()
 
char * CLI_generator (const char *, int)
 
char * dupstr (char *)
 
void * xmalloc (int)
 
int command_line (int argc, char **argv)
 
void sig_handler (int signo)
 signal catching More...
 
int_fast8_t set_default_precision_single ()
 
int_fast8_t set_default_precision_double ()
 
int_fast8_t cfits_usleep_cli ()
 
void rl_cb (char *linein)
 Readline callback. More...
 
int_fast8_t RegisterModule (char *FileName, char *PackageName, char *InfoString)
 
uint_fast16_t RegisterCLIcommand (char *CLIkey, char *CLImodule, int_fast8_t(*CLIfptr)(), char *CLIinfo, char *CLIsyntax, char *CLIexample, char *CLICcall)
 
int_fast8_t runCLI (int argc, char *argv[], char *promptstring)
 Command Line Interface (CLI) main
. More...
 
int CLI_checkarg0 (int argnum, int argtype, int errmsg)
 
int CLI_checkarg (int argnum, int argtype)
 
int CLI_checkarg_noerrmsg (int argnum, int argtype)
 

Variables

int DLib_index
 
void * DLib_handle [1000]
 
pid_t CLIPID
 important directories and info More...
 
char DocDir [200]
 
char SrcDir [200]
 
char BuildFile [200]
 
char BuildDate [200]
 
char BuildTime [200]
 
uint8_t TYPESIZE [32]
 
int C_ERRNO
 
int Verbose = 0
 
int Listimfile = 0
 
char * line
 
int rlquit = false
 
int CLIexecuteCMDready = 0
 
char calctmpimname [200]
 
char CLIstartupfilename [200] = "CLIstartup.txt"
 
int CLImatchMode = 0
 

Detailed Description

main C file

Contains main()

Author
Olivier Guyon
Date
Aug 2 2017

Function Documentation

int_fast8_t cfits_usleep_cli ( )
int CLI_checkarg ( int  argnum,
int  argtype 
)
int CLI_checkarg0 ( int  argnum,
int  argtype,
int  errmsg 
)
int CLI_checkarg_noerrmsg ( int  argnum,
int  argtype 
)
char * CLI_generator ( const char *  text,
int  state 
)
int command_line ( int  argc,
char **  argv 
)
char * dupstr ( char *  s)
void fnExit1 ( void  )
void main_free ( )
void main_init ( )

defaults to floating point type

uint_fast16_t RegisterCLIcommand ( char *  CLIkey,
char *  CLImodule,
int_fast8_t(*)()  CLIfptr,
char *  CLIinfo,
char *  CLIsyntax,
char *  CLIexample,
char *  CLICcall 
)
int_fast8_t RegisterModule ( char *  FileName,
char *  PackageName,
char *  InfoString 
)
void rl_cb ( char *  linein)

Readline callback.

int_fast8_t runCLI ( int  argc,
char *  argv[],
char *  promptstring 
)

Command Line Interface (CLI) main
.

uses readline to read user input
parsing done with bison and flex

becomes 1 after startup

If fifo is on and file CLIstatup.txt exists, load it

int_fast8_t set_default_precision_double ( )
int_fast8_t set_default_precision_single ( )
void sig_handler ( int  signo)

signal catching

int user_function ( )
void * xmalloc ( int  size)
int yy_scan_string ( const char *  )
int yylex_destroy ( void  )

Variable Documentation

char BuildDate[200]
char BuildFile[200]
char BuildTime[200]
int C_ERRNO
char calctmpimname[200]
int CLIexecuteCMDready = 0
int CLImatchMode = 0
pid_t CLIPID

important directories and info

char CLIstartupfilename[200] = "CLIstartup.txt"
void* DLib_handle[1000]
int DLib_index
char DocDir[200]
char* line
int Listimfile = 0
int rlquit = false
char SrcDir[200]
uint8_t TYPESIZE[32]
int Verbose = 0