ldef.h revision 225736
1172861Sjkoshy/* $FreeBSD: stable/9/usr.bin/mkcsmapper/ldef.h 219019 2011-02-25 00:04:39Z gabor $ */
2164190Sjkoshy/* $NetBSD: ldef.h,v 1.2 2006/09/09 14:35:17 tnozaki Exp $	*/
3164190Sjkoshy
4164190Sjkoshy/*-
5164190Sjkoshy * Copyright (c)2003, 2006 Citrus Project,
6164190Sjkoshy * All rights reserved.
7164190Sjkoshy *
8164190Sjkoshy * Redistribution and use in source and binary forms, with or without
9164190Sjkoshy * modification, are permitted provided that the following conditions
10164190Sjkoshy * are met:
11164190Sjkoshy * 1. Redistributions of source code must retain the above copyright
12164190Sjkoshy *    notice, this list of conditions and the following disclaimer.
13164190Sjkoshy * 2. Redistributions in binary form must reproduce the above copyright
14164190Sjkoshy *    notice, this list of conditions and the following disclaimer in the
15164190Sjkoshy *    documentation and/or other materials provided with the distribution.
16164190Sjkoshy *
17164190Sjkoshy * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18164190Sjkoshy * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19164190Sjkoshy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20164190Sjkoshy * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21164190Sjkoshy * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22164190Sjkoshy * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23164190Sjkoshy * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24164190Sjkoshy * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25164190Sjkoshy * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26172861Sjkoshy * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27206622Suqs * SUCH DAMAGE.
28164190Sjkoshy */
29164190Sjkoshy
30164190Sjkoshy#include <sys/types.h>
31164190Sjkoshy
32164190Sjkoshytypedef struct {
33164190Sjkoshy	u_int32_t	 begin;
34164190Sjkoshy	u_int32_t	 end;
35164190Sjkoshy	u_int32_t	 width;
36164190Sjkoshy} linear_zone_t;
37164190Sjkoshy
38164190Sjkoshyextern int	 debug;
39164190Sjkoshyextern int	 line_number;
40164190Sjkoshyextern int	 yyerror(const char *);
41164190Sjkoshyextern int	 yylex(void);
42164190Sjkoshyextern int	 yyparse(void);
43164190Sjkoshy