xref: /freebsd/usr.bin/indent/indent.h (revision a6bcfda48742440900bde6280d44b7a39fb6a50f)
170a3049eSPedro F. Giffuni /*-
27916863dSJens Schweikhardt  * Copyright (c) 2001 Jens Schweikhardt
37916863dSJens Schweikhardt  * All rights reserved.
47916863dSJens Schweikhardt  *
57916863dSJens Schweikhardt  * Redistribution and use in source and binary forms, with or without
67916863dSJens Schweikhardt  * modification, are permitted provided that the following conditions
77916863dSJens Schweikhardt  * are met:
87916863dSJens Schweikhardt  * 1. Redistributions of source code must retain the above copyright
97916863dSJens Schweikhardt  *    notice, this list of conditions and the following disclaimer.
107916863dSJens Schweikhardt  * 2. Redistributions in binary form must reproduce the above copyright
117916863dSJens Schweikhardt  *    notice, this list of conditions and the following disclaimer in the
127916863dSJens Schweikhardt  *    documentation and/or other materials provided with the distribution.
137916863dSJens Schweikhardt  *
147916863dSJens Schweikhardt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
157916863dSJens Schweikhardt  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
167916863dSJens Schweikhardt  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
177916863dSJens Schweikhardt  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
187916863dSJens Schweikhardt  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
197916863dSJens Schweikhardt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
207916863dSJens Schweikhardt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
217916863dSJens Schweikhardt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
227916863dSJens Schweikhardt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
237916863dSJens Schweikhardt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
247916863dSJens Schweikhardt  * SUCH DAMAGE.
257916863dSJens Schweikhardt  */
267916863dSJens Schweikhardt 
277916863dSJens Schweikhardt #if 0
287916863dSJens Schweikhardt __FBSDID("$FreeBSD$");
297916863dSJens Schweikhardt #endif
307916863dSJens Schweikhardt 
31*a6bcfda4SPedro F. Giffuni void	add_typename(const char *);
32*a6bcfda4SPedro F. Giffuni void	alloc_typenames(void);
337916863dSJens Schweikhardt int	compute_code_target(void);
347916863dSJens Schweikhardt int	compute_label_target(void);
357916863dSJens Schweikhardt int	count_spaces(int, char *);
3654d57555SPedro F. Giffuni int	count_spaces_until(int, char *, char *);
377916863dSJens Schweikhardt int	lexi(void);
388c7e7698SDavid Malone void	diag2(int, const char *);
398c7e7698SDavid Malone void	diag3(int, const char *, int);
408c7e7698SDavid Malone void	diag4(int, const char *, int, int);
417916863dSJens Schweikhardt void	dump_line(void);
427916863dSJens Schweikhardt void	fill_buffer(void);
437916863dSJens Schweikhardt void	parse(int);
448c7e7698SDavid Malone void	parsefont(struct fstate *, const char *);
457916863dSJens Schweikhardt void	pr_comment(void);
467916863dSJens Schweikhardt void	set_defaults(void);
477916863dSJens Schweikhardt void	set_option(char *);
487916863dSJens Schweikhardt void	set_profile(void);
497916863dSJens Schweikhardt void	writefdef(struct fstate *f, int);
50