170a3049eSPedro F. Giffuni /*- 21de7b4b8SPedro F. Giffuni * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 31de7b4b8SPedro F. Giffuni * 47916863dSJens Schweikhardt * Copyright (c) 2001 Jens Schweikhardt 57916863dSJens Schweikhardt * All rights reserved. 67916863dSJens Schweikhardt * 77916863dSJens Schweikhardt * Redistribution and use in source and binary forms, with or without 87916863dSJens Schweikhardt * modification, are permitted provided that the following conditions 97916863dSJens Schweikhardt * are met: 107916863dSJens Schweikhardt * 1. Redistributions of source code must retain the above copyright 117916863dSJens Schweikhardt * notice, this list of conditions and the following disclaimer. 127916863dSJens Schweikhardt * 2. Redistributions in binary form must reproduce the above copyright 137916863dSJens Schweikhardt * notice, this list of conditions and the following disclaimer in the 147916863dSJens Schweikhardt * documentation and/or other materials provided with the distribution. 157916863dSJens Schweikhardt * 167916863dSJens Schweikhardt * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND 177916863dSJens Schweikhardt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 187916863dSJens Schweikhardt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 197916863dSJens Schweikhardt * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE 207916863dSJens Schweikhardt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 217916863dSJens Schweikhardt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 227916863dSJens Schweikhardt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 237916863dSJens Schweikhardt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 247916863dSJens Schweikhardt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 257916863dSJens Schweikhardt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 267916863dSJens Schweikhardt * SUCH DAMAGE. 277916863dSJens Schweikhardt */ 287916863dSJens Schweikhardt 297916863dSJens Schweikhardt #if 0 307916863dSJens Schweikhardt __FBSDID("$FreeBSD$"); 317916863dSJens Schweikhardt #endif 327916863dSJens Schweikhardt 33a6bcfda4SPedro F. Giffuni void add_typename(const char *); 34a6bcfda4SPedro F. Giffuni void alloc_typenames(void); 357916863dSJens Schweikhardt int compute_code_target(void); 367916863dSJens Schweikhardt int compute_label_target(void); 377916863dSJens Schweikhardt int count_spaces(int, char *); 3854d57555SPedro F. Giffuni int count_spaces_until(int, char *, char *); 39*01c66110SPiotr Pawel Stefaniak void init_constant_tt(void); 4063c3f226SPiotr Pawel Stefaniak int lexi(struct parser_state *); 418c7e7698SDavid Malone void diag2(int, const char *); 428c7e7698SDavid Malone void diag3(int, const char *, int); 438c7e7698SDavid Malone void diag4(int, const char *, int, int); 447916863dSJens Schweikhardt void dump_line(void); 457916863dSJens Schweikhardt void fill_buffer(void); 467916863dSJens Schweikhardt void parse(int); 477916863dSJens Schweikhardt void pr_comment(void); 487916863dSJens Schweikhardt void set_defaults(void); 497916863dSJens Schweikhardt void set_option(char *); 5086adac04SPiotr Pawel Stefaniak void set_profile(const char *); 51