1*48d386f6Stnozaki /* $NetBSD: ldef.h,v 1.2 2006/09/09 14:35:17 tnozaki Exp $ */ 2e376aa83Stshiozak 3e376aa83Stshiozak /*- 4*48d386f6Stnozaki * Copyright (c)2003, 2006 Citrus Project, 5e376aa83Stshiozak * All rights reserved. 6e376aa83Stshiozak * 7e376aa83Stshiozak * Redistribution and use in source and binary forms, with or without 8e376aa83Stshiozak * modification, are permitted provided that the following conditions 9e376aa83Stshiozak * are met: 10e376aa83Stshiozak * 1. Redistributions of source code must retain the above copyright 11e376aa83Stshiozak * notice, this list of conditions and the following disclaimer. 12e376aa83Stshiozak * 2. Redistributions in binary form must reproduce the above copyright 13e376aa83Stshiozak * notice, this list of conditions and the following disclaimer in the 14e376aa83Stshiozak * documentation and/or other materials provided with the distribution. 15e376aa83Stshiozak * 16e376aa83Stshiozak * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17e376aa83Stshiozak * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18e376aa83Stshiozak * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19e376aa83Stshiozak * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20e376aa83Stshiozak * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21e376aa83Stshiozak * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22e376aa83Stshiozak * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23e376aa83Stshiozak * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24e376aa83Stshiozak * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25e376aa83Stshiozak * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26e376aa83Stshiozak * SUCH DAMAGE. 27e376aa83Stshiozak */ 28e376aa83Stshiozak 29e376aa83Stshiozak typedef struct { 30e376aa83Stshiozak u_int32_t begin; 31e376aa83Stshiozak u_int32_t end; 32*48d386f6Stnozaki u_int32_t width; 33e376aa83Stshiozak } linear_zone_t; 34e376aa83Stshiozak 35e376aa83Stshiozak extern int line_number; 36e376aa83Stshiozak extern int debug; 37e376aa83Stshiozak extern FILE *yyin; 38e376aa83Stshiozak extern int yyparse(void); 39e376aa83Stshiozak extern int yylex(void); 40e376aa83Stshiozak extern int yyerror(const char *); 41