/* -- ---------------------------------------------------------------------------- -- -- Copyright 1995 Division Limited. -- All Rights Reserved -- -- -- System : -- Module : -- Object Name : $RCSfile: getparam.h,v $ -- Revision : $Revision: 1.6 $ -- Date : $Date: 95/04/27 23:01:16 $ -- Author : $Author: bill $ -- -- Description -- -- Notes -- -- History -- -- -- ---------------------------------------------------------------------------- */ #ifndef __GETPARAM_H__ #define __GETPARAM_H__ #ifdef _PF_LOCAL #include "pgeneral.h" #else #include #endif /*****************************************************************************/ /* getparam error numbers */ #define dgpENO_STREXP 0x3001 #define dgpENO_UNKOPT 0x3002 #define dgpENO_USAGE 0x3003 #define dgpENO_RSRCF 0x3004 /**************************************************************************** * getparam monitor numbers */ #define dgpMON_OPTIONS 0x00001000 #define dgpMON_FILES 0x00002000 #define dgp_END 0 #define dgp_NO_STR 1 #define dgp_D_STR 2 #define dgp_DJOIN_STR 3 #define dgp_DAFTER_STR 4 #define dgp_DBOTH_STR 5 #define dgp_O_STR 6 #define dgp_OJOIN_STR 7 #define dgp_OAFTER_STR 8 #define dgp_OBOTH_STR 9 typedef struct { char optname[15] ; int32 opttype ; int32 optreturn ; } dgpTABLE, *dgpTABLEPTR ; extern char *progname ; int32 dgpGetopt(int32 argc, char *argv[], dgpTABLEPTR table, int32 *NoFiles, char **files[], char **str1, char **str2) ; void dgpFreeFiles(int32 NoFiles, char *files[]) ; #endif /* __GETPARAM_H__ */