Blame src/xdiff/xtypes.h

Packit ae9e2a
/*
Packit ae9e2a
 *  LibXDiff by Davide Libenzi ( File Differential Library )
Packit ae9e2a
 *  Copyright (C) 2003  Davide Libenzi
Packit ae9e2a
 *
Packit ae9e2a
 *  This library is free software; you can redistribute it and/or
Packit ae9e2a
 *  modify it under the terms of the GNU Lesser General Public
Packit ae9e2a
 *  License as published by the Free Software Foundation; either
Packit ae9e2a
 *  version 2.1 of the License, or (at your option) any later version.
Packit ae9e2a
 *
Packit ae9e2a
 *  This library is distributed in the hope that it will be useful,
Packit ae9e2a
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae9e2a
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae9e2a
 *  Lesser General Public License for more details.
Packit ae9e2a
 *
Packit ae9e2a
 *  You should have received a copy of the GNU Lesser General Public
Packit ae9e2a
 *  License along with this library; if not, write to the Free Software
Packit ae9e2a
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
Packit ae9e2a
 *
Packit ae9e2a
 *  Davide Libenzi <davidel@xmailserver.org>
Packit ae9e2a
 *
Packit ae9e2a
 */
Packit ae9e2a
Packit ae9e2a
#if !defined(XTYPES_H)
Packit ae9e2a
#define XTYPES_H
Packit ae9e2a
Packit ae9e2a
Packit ae9e2a
Packit ae9e2a
typedef struct s_chanode {
Packit ae9e2a
	struct s_chanode *next;
Packit ae9e2a
	long icurr;
Packit ae9e2a
} chanode_t;
Packit ae9e2a
Packit ae9e2a
typedef struct s_chastore {
Packit ae9e2a
	chanode_t *head, *tail;
Packit ae9e2a
	long isize, nsize;
Packit ae9e2a
	chanode_t *ancur;
Packit ae9e2a
	chanode_t *sncur;
Packit ae9e2a
	long scurr;
Packit ae9e2a
} chastore_t;
Packit ae9e2a
Packit ae9e2a
typedef struct s_xrecord {
Packit ae9e2a
	struct s_xrecord *next;
Packit ae9e2a
	char const *ptr;
Packit ae9e2a
	long size;
Packit ae9e2a
	unsigned long ha;
Packit ae9e2a
} xrecord_t;
Packit ae9e2a
Packit ae9e2a
typedef struct s_xdfile {
Packit ae9e2a
	chastore_t rcha;
Packit ae9e2a
	long nrec;
Packit ae9e2a
	unsigned int hbits;
Packit ae9e2a
	xrecord_t **rhash;
Packit ae9e2a
	long dstart, dend;
Packit ae9e2a
	xrecord_t **recs;
Packit ae9e2a
	char *rchg;
Packit ae9e2a
	long *rindex;
Packit ae9e2a
	long nreff;
Packit ae9e2a
	unsigned long *ha;
Packit ae9e2a
} xdfile_t;
Packit ae9e2a
Packit ae9e2a
typedef struct s_xdfenv {
Packit ae9e2a
	xdfile_t xdf1, xdf2;
Packit ae9e2a
} xdfenv_t;
Packit ae9e2a
Packit ae9e2a
Packit ae9e2a
Packit ae9e2a
#endif /* #if !defined(XTYPES_H) */