Main Page | Data Structures | File List | Data Fields | Globals

main.c File Reference


Detailed Description

Author:
Hal Finkel
The main program, command parsing and execution

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "commands.h"
#include "common.h"

Include dependency graph for main.c:

Include dependency graph

Defines

#define HISTORY_FILE   ".peakfind_history"
 The name of the command-history file.
#define MAXCMDLINE   1024
 If readline is not available, the maximum number of characters per line.

Functions

int yyparse ()
 The generated parsing function.
int main (int argc, char *argv[])
 The main function.
int pf_parse_command (char *command)
 Parse a command string.
void pf_execute_command ()
 Execute the next command.

Variables

int should_quit
 Should the main loop terminate.
pf_cal_fit current_cal
 The current calibration.
pf_data current_data
 The current data set.
int has_data
 Valid data-set flag.

Define Documentation

#define HISTORY_FILE   ".peakfind_history"
 

The name of the command-history file.

#define MAXCMDLINE   1024
 

If readline is not available, the maximum number of characters per line.


Function Documentation

int main int  argc,
char *  argv[]
 

The main function.

Parameters:
[in] argc The number of command line arguments
[in] argv The command line arguments
Returns:
The program exit status

Here is the call graph for this function:

void pf_execute_command  ) 
 

Execute the next command.

Here is the call graph for this function:

int pf_parse_command char *  command  ) 
 

Parse a command string.

Parameters:
[in] command The command to parse and execute
Returns:
Status code

Here is the call graph for this function:

int yyparse  ) 
 

The generated parsing function.

Returns:
Parsing status code


Variable Documentation

struct pf_cal_fit current_cal
 

The current calibration.

struct pf_data current_data
 

The current data set.

int has_data
 

Valid data-set flag.

int should_quit
 

Should the main loop terminate.


Generated on Sun Feb 20 17:46:38 2005 for peakfinder-0.1 by  doxygen 1.3.9.1