Category : OS/2 Files
Archive   : OS2TOOLS.ZIP
Filename : DIFF.H

 
Output of file : DIFF.H contained in archive : OS2TOOLS.ZIP
/**

DIFF.H

Header file for DIFF.C

**/

/* Constant Values */
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

#define PAGESIZE 4096 /* default line page size */
#define MASK 0x0FFF /* 12 bit hash value */
#define MAXLINE 256 /* maximum line length */

#define CHANGE 0 /* change a range of lines */
#define DELETE 1 /* delete a range of lines */
#define ADD 2 /* add a range of lines */

/* Data Types */

typedef int BOOL ;

typedef struct
{
long addr ; /* address of string in file */
unsigned int hash ; /* hash value for string */
int linenum ; /* line number in file */
}
LINE ;

/**
Function prototypes
**/
static unsigned int Hash(char *);
static LINE *ReadFile(FILE *, int *);
static BOOL CheckHashes(LINE *, LINE *, int);
static int CheckStrings(FILE *, LINE *, FILE *, LINE *, int);
static void PrintLines(FILE *, LINE *, int , FILE *, LINE *, int);
static void DoDiff(FILE *, LINE *, int, FILE *, LINE *, int, int);
static void banner(void);
void main(int, char **);



  3 Responses to “Category : OS/2 Files
Archive   : OS2TOOLS.ZIP
Filename : DIFF.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/