Deleted Added
full compact
locate.bigram.c (17776) locate.bigram.c (17942)
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * James A. Woods.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
1/*
2 * Copyright (c) 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * James A. Woods.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * $Id$
36 * $Id: locate.bigram.c,v 1.4 1996/08/22 18:46:11 wosch Exp $
37 */
38
39#ifndef lint
40static char copyright[] =
41"@(#) Copyright (c) 1989, 1993\n\
42 The Regents of the University of California. All rights reserved.\n";
43#endif /* not lint */
44

--- 6 unchanged lines hidden (view full) ---

51 * awk 'NR <= 128 { printf $2 }' > bigrams
52 *
53 * List bigrams for 'updatedb' script.
54 * Use 'code' to encode a file using this output.
55 */
56
57#include <stdio.h>
58#include <sys/param.h> /* for MAXPATHLEN */
37 */
38
39#ifndef lint
40static char copyright[] =
41"@(#) Copyright (c) 1989, 1993\n\
42 The Regents of the University of California. All rights reserved.\n";
43#endif /* not lint */
44

--- 6 unchanged lines hidden (view full) ---

51 * awk 'NR <= 128 { printf $2 }' > bigrams
52 *
53 * List bigrams for 'updatedb' script.
54 * Use 'code' to encode a file using this output.
55 */
56
57#include <stdio.h>
58#include <sys/param.h> /* for MAXPATHLEN */
59#include <string.h> /* memchr */
60#include "locate.h"
61
62u_char buf1[MAXPATHLEN] = " ";
63u_char buf2[MAXPATHLEN];
64u_int bigram[UCHAR_MAX][UCHAR_MAX];
65
66int
67main(void)

--- 47 unchanged lines hidden ---
59#include "locate.h"
60
61u_char buf1[MAXPATHLEN] = " ";
62u_char buf2[MAXPATHLEN];
63u_int bigram[UCHAR_MAX][UCHAR_MAX];
64
65int
66main(void)

--- 47 unchanged lines hidden ---