1995-02-08 05:25:26 +00:00
|
|
|
/*
|
|
|
|
* udl - Convert EOL formats freely between MS-DOS (CR/LF), Unix/Amiga (LF),
|
|
|
|
* and Apple (CR).
|
|
|
|
*
|
|
|
|
* Contains definitions of global variables declared in common.h
|
|
|
|
*
|
1997-12-08 16:07:19 +00:00
|
|
|
* $Id: globals.c,v 1.7 1997/12/08 16:07:19 gdr Exp $
|
1995-02-08 05:25:26 +00:00
|
|
|
*
|
1995-02-08 06:12:49 +00:00
|
|
|
* Copyright (c) 1993-1995 Soenke Behrens, Devin Reade
|
1995-02-08 05:25:26 +00:00
|
|
|
*/
|
|
|
|
|
1997-12-08 16:07:19 +00:00
|
|
|
#ifdef __GNO__
|
1995-02-08 05:25:26 +00:00
|
|
|
#pragma noroot
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
char *program_name; /* How was udl invoked? */
|
|
|
|
char *current_file; /* Name of current file */
|
|
|
|
char *tempfile; /* Name of temporary file */
|
|
|
|
unsigned char *in_buffer; /* My own buffering scheme instead of */
|
|
|
|
unsigned char *out_buffer; /* setvbuf() */
|
|
|
|
int verbose;
|
|
|
|
char filebuffer[MAXPATHLEN]; /* a scratch buffer for file names */
|
|
|
|
char currentDirectory[MAXPATHLEN];
|
|
|
|
char rootdir[MAXPATHLEN]; /* the initial directory */
|
|
|
|
struct stat tstat; /* temporary variable used to stat files */
|
|
|
|
int pathSlotsUsed; /* number of used and available slots in pathList,*/
|
|
|
|
int pathSlots; /* respectively. Both are initially zero. */
|
|
|
|
char **pathList; /* the list of files to process, given relative */
|
|
|
|
/* to the initial directory. Initially NULL, */
|
|
|
|
/* and NULL terminated. */
|
|
|
|
char dirbrk; /* the character used to separate parts of a path name */
|
|
|
|
int recursionDepth; /* levels of subdirectories that we've traversed */
|
|
|
|
|
1995-02-13 19:47:38 +00:00
|
|
|
/* End Of File */
|