Main Page | File List | Globals

main.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "main.h"
#include "lex.yy.h"
#include "store.h"
#include "score.h"

Functions

int main (int argc, char **argv)
void parse_file (char *file, int isporn, int isscoring, char *dbname, int verbose)
void parse_dir (char *directory, int isporn, int isscoring, char *dbname, int verbose)
void parse_standard_input (FILE *stdinput, int isporn, int isscoring, char *dbname, int verbose)
void display_help ()

Function Documentation

int main int  argc,
char **  argv
 

Retrieve execution options and start the program.

Parameters:
argc 
argv 

void parse_file char *  file,
int  isporn,
int  isscoring,
char *  dbname,
int  verbose
 

Launch the lexer for one file.

Parameters:
file the location and name of the file to parse
isporn (1 = "is porn", 0 = "is not porn")
isscoring (1 = "is scoring", 0 = "is learning")
dbname location and name of the database to use
verbose level of verbose mode (-e and -v options)

void parse_dir char *  directory,
int  isporn,
int  isscoring,
char *  dbname,
int  verbose
 

Launch the lexer for one directory.

Parameters:
directory the location and name of the directory to parse
isporn (1 = "is porn", 0 = "is not porn")
isscoring (1 = "is scoring", 0 = "is learning")
dbname location and name of the database to use
verbose level of verbose mode (-e and -v options)

void parse_standard_input FILE *  stdinput,
int  isporn,
int  isscoring,
char *  dbname,
int  verbose
 

Launch the lexer for the standard input.

Parameters:
stdinput the FILE read on the standard input
isporn (1 = "is porn", 0 = "is not porn")
isscoring (1 = "is scoring", 0 = "is learning")
dbname location and name of the database to use
verbose level of verbose mode (-e and -v options)

void display_help void   ) 
 

Display help for execution options


Generated on Tue May 31 16:28:13 2005 for filterFlex by  doxygen 1.3.9.1