/****************************************************************************** * * fixtool.h - main include file for filetool * * Module %M% Version %I% Date %H% * * (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved * This is unpublished proprietary source code of Ardent Software Inc. * The copyright notice above does not evidence any actual or intended * publication of such source code. * ******************************************************************************* * * Maintenence log - insert most recent change descriptions at top * * Date.... GTAR# WHO Description......................................... * 10/19/98 23768 DJD Fixed typo's. * 10/14/98 23801 SAP Change copyrights. * 07/01/98 23768 DJD Module Created. * ******************************************************************************/ #define TRUE 1 #define FALSE 0 /* Functions declarations */ #ifdef MSWIN void display_usage_help(void); void printmessage(int); #else void display_usage_help(); void printmessage(); #endif typedef struct options{ int level; int fix; int help; int file; char filestr[MAX_PATH]; int filepath; char filepathstr[MAX_PATH]; int dict; int outputpath; char outputpathstr[MAX_PATH]; int logging; int logpath; char logpathstr[MAX_PATH]; } OPTIONS, *POPTIONS; /* Static chars */ static char _dash_name[] = "-name"; /* Name */ static char _dash_level[] = "-level"; /* level */ static char _dash_fix[]= "-fix"; /* fix */ static char _dash_dict[] = "-dict"; /* dict */ static char _dash_pathname[] = "-pathname"; /* pathname */ static char _dash_logpath[] = "-logpath"; /* logpath */ static char _dash_help[] = "-help"; /* help */ static char _dash_file[] = "-file"; /* file */ static char _dash_filepath[] = "-filepath"; /* filepath */ static char _dash_output_path[] = "-output"; /* output */ static char _dash_logging[] = "-logging"; /* logging */ /* Macros */ #define COMPARE(str1, str2) (!strncmp(str1, str2, strlen(str1))) /* Usage defines */ #define usage_bad "fixtool: Incorrect number of arguments\n\n" #define usage_level "-level # - Diagnosic level between 1 and 10\n" #define usage_fix "-fix - Fix the file\n" #define usage_logpath "-logpath x - Where x is the path for the logging files\n" #define usage_help "-help - Display this help message\n" #define usage_file "-file x - Where x is the file to use\n" #define usage_filepath "-filepath x - Where x is the path for the file\n" #define usage_output_path "-output x - Where x is the path for the output files\n" #define usage_logging "-logging - Turns logging on\n"