170a3049eSPedro F. Giffuni /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 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 29a6bcfda4SPedro F. Giffuni void add_typename(const char *); 30a6bcfda4SPedro F. Giffuni void alloc_typenames(void); 317916863dSJens Schweikhardt int compute_code_target(void); 327916863dSJens Schweikhardt int compute_label_target(void); 337916863dSJens Schweikhardt int count_spaces(int, char *); 3454d57555SPedro F. Giffuni int count_spaces_until(int, char *, char *); 3501c66110SPiotr Pawel Stefaniak void init_constant_tt(void); 3663c3f226SPiotr Pawel Stefaniak int lexi(struct parser_state *); 378c7e7698SDavid Malone void diag2(int, const char *); 388c7e7698SDavid Malone void diag3(int, const char *, int); 398c7e7698SDavid Malone void diag4(int, const char *, int, int); 407916863dSJens Schweikhardt void dump_line(void); 417916863dSJens Schweikhardt void fill_buffer(void); 427916863dSJens Schweikhardt void parse(int); 437916863dSJens Schweikhardt void pr_comment(void); 447916863dSJens Schweikhardt void set_defaults(void); 457916863dSJens Schweikhardt void set_option(char *); 4686adac04SPiotr Pawel Stefaniak void set_profile(const char *); 47