chiark / gitweb /
correct text of Psa50:17 (fix for #623629)
[bible-kjv.git] / util.h
1 /* -*-C-*-
2 *******************************************************************************
3 *
4 * File:         util.h
5 * RCS:          $Header: /home/matthew/cvs/bible-kjv-4.10/util.h,v 2.6 2005/01/23 11:12:18 matthew Exp $
6 * Description:  Header file for util.c
7 * Author:       Chip Chapin
8 * Created:      Thu Dec 24 11:27:53 1992
9 * Modified:     Mon Apr 26 11:14:17 1993 (Chip Chapin) chip@hpclbis
10 * Language:     C
11 * Package:      N/A
12 * Status:       Experimental (Do Not Distribute)
13 *
14 *******************************************************************************
15 *
16 * Revisions:
17 *
18 * Fri Apr 23 10:33:49 1993 (Chip Chapin) chip@hpclbis
19 *  Added Univ_Int stuff.
20 *******************************************************************************
21 * $Log: util.h,v $
22 * Revision 2.6  2005/01/23 11:12:18  matthew
23 * explicit cast
24 *
25 * Revision 2.5  2005/01/22 16:27:17  matthew
26 * Add shortuniv_assign, as that's called in makeconcfile.c
27 *
28 * Revision 2.4  2005/01/22 00:34:18  matthew
29 * make this header multiple-include-proof
30 *
31 * Revision 2.3  2005/01/22 00:31:08  matthew
32 * add univ_assign prototype
33 *
34 * Revision 2.2  2005/01/22 00:21:50  matthew
35 * correct case error
36 *
37 * Revision 2.1  2005/01/22 00:20:39  matthew
38 * prototype functions
39 *
40 * Revision 2.0  2003/01/08 15:29:52  matthew
41 * versions collected from the net
42 *
43  * Revision 1.4  93/04/26  11:18:27  11:18:27  chip (Chip Chapin)
44  * Release 4.00
45  * Public release of portable datafile version.
46  * 
47 *
48 */
49 #ifndef __UTIL_H__
50 #define __UTIL_H__
51
52 #define get_nonblank(S)    while (isspace((int)*(S))) (S)++;
53
54     
55 /*
56   The Univ_Int data type is stored as a sequence of four bytes, from
57   high-order to low-order.  This allows data files to be independent
58   of the native byte-order of any machine.
59  */
60 typedef unsigned char Univ_Int[4];/* Universal, byte-order-independent integer*/
61 typedef unsigned char Short_Univ_Int[2]; /* shorter Univ_Int */
62
63 int univ2int(Univ_Int src);
64 int shortuniv2int(Short_Univ_Int src);
65 void univ_assign(Univ_Int dst,int src);
66 void shortuniv_assign(Univ_Int dst,int src);
67
68 FILE *findfile(char *dfname,char *pathlist);
69
70 #endif /*__UTIL_H__*/