campo-sirio/cb/source/u4trans.h
alex af15e0698b Codebase
git-svn-id: svn://10.65.10.50/trunk@4679 c028cbd2-c16b-5b4b-a496-9718f37d4682
1997-06-16 13:01:08 +00:00

46 lines
1.8 KiB
C
Executable File

/* u4trans.h (c)Copyright Sequiter Software Inc., 1988-1996. All rights reserved. */
#ifdef S4UTILS
typedef struct UTIL4FLAG_st
{
char *name;
char caseSens; /* true if name is case sensitive */
unsigned int len; /* minimum length flag has to match name */
int multiples; /* multiple occurences of flag: 2 == add, 1 == keep, 0 == discard multiples, -1 == error on multiples */
int values; /* number of values flag has following: 0 == none, +x == 0<n<=+x, -x == 0<=n<=+x */
int exact; /* if true then for value: x == n=+x */
int found; /* true if flag has been found */
char **ptr; /* first byte of each string == nth occurence if multiples == add and !exact */
unsigned int numPtr; /* number of index entries for ptr times 4 */
char *descrip; /* help description of flag */
} UTIL4FLAG;
#ifdef S4UNIX
char *ltoa( long lVal, char *ptr, int num) ;
#endif
void util4out(CODE4 *c4, FILE *stream, char *str[], int numStr);
void util4printCommandLine(CODE4 *c4, UTIL4FLAG u4[], int numFlags, char *programName);
void util4flagsFree(UTIL4FLAG u4[], int numFlags);
int util4parseCommandLine(CODE4 *c4, UTIL4FLAG u4[], int numFlags, char* argv[], int argc);
char *util4rightJ(char *str, int len);
int util4checkOnOffCommandLine(CODE4 *c4, UTIL4FLAG u4[], int flag, int def);
long util4checkRangeCommandLine(CODE4 *c4, UTIL4FLAG u4[], int flag, long def, long lRange, long hRange);
#ifdef S4WINDOWS
void S4FUNCTION sendStatusMessage( int, int ) ;
void S4FUNCTION sendCloseMessage( int ) ;
#endif
#ifndef S4OFF_TRAN
#ifndef S4OFF_COMMUNICATIONS
#define r4noServer 5
int tran4serverEof( TRAN4 S4PTR *, unsigned long S4PTR * ) ;
int tran4serverEofHalt( TRAN4 S4PTR *, unsigned long S4PTR * ) ;
#endif
#endif
#endif