#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <time.h>
#include <limits.h>
#include <unistd.h>
#include "schedule.h"
#include "schedule.tab.h"
Defines | |
#define | SUCCESS 0 |
#define | ERROR 1 |
#define | MAX_SCHED_ENTRY_LEN 400 |
#define | MAX_TASK_LEN 40 |
#define | MAX_REMINDER_LEN 300 |
#define | MAX_CMD_LEN 300 |
#define | MAX_FILE_LOC_LEN 300 |
#define | SCHED_WILDCARD -1 |
#define | ERR_FILE stdout |
#define | NUMBER_OF_TOKENS 9 |
Enumerations | |
enum | TokenIndex { TI_YEAR, TI_MOY, TI_DOM, TI_DOW, TI_HOUR, TI_MIN, TI_DUR, TI_TASK, TI_REMINDER } |
enum | ActionVals { PRINT = 1, TODAY = 2, NOTIFY = 4 } |
Functions | |
void | usage () |
void | getFileLoc (const char *fileLoc) |
int | processArgs (int argc, char **argv) |
int | processScheduleFile (const char *fileName) |
int | main (int argc, char **argv) |
Variables | |
int | actions = 0 |
char * | scheduleFileLoc = NULL |
#define ERR_FILE stdout |
#define ERROR 1 |
#define MAX_CMD_LEN 300 |
#define MAX_FILE_LOC_LEN 300 |
#define MAX_REMINDER_LEN 300 |
#define MAX_SCHED_ENTRY_LEN 400 |
#define MAX_TASK_LEN 40 |
#define NUMBER_OF_TOKENS 9 |
Schedule file variables
#define SCHED_WILDCARD -1 |
#define SUCCESS 0 |
enum ActionVals |
enum TokenIndex |
void getFileLoc | ( | const char * | fileLoc | ) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
int processArgs | ( | int | argc, | |
char ** | argv | |||
) |
int processScheduleFile | ( | const char * | fileName | ) |
void usage | ( | ) |
int actions = 0 |
char* scheduleFileLoc = NULL |