xref: /freebsd/usr.bin/indent/indent.h (revision 8c7e7698527463cd6c24b4ab5aa86a44edb85572)
17916863dSJens Schweikhardt /*
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 
317916863dSJens Schweikhardt void	addkey(char *, int);
327916863dSJens Schweikhardt int	compute_code_target(void);
337916863dSJens Schweikhardt int	compute_label_target(void);
347916863dSJens Schweikhardt int	count_spaces(int, char *);
357916863dSJens Schweikhardt int	lexi(void);
368c7e7698SDavid Malone void	diag2(int, const char *);
378c7e7698SDavid Malone void	diag3(int, const char *, int);
388c7e7698SDavid Malone void	diag4(int, const char *, int, int);
397916863dSJens Schweikhardt void	dump_line(void);
407916863dSJens Schweikhardt void	fill_buffer(void);
417916863dSJens Schweikhardt void	parse(int);
428c7e7698SDavid Malone void	parsefont(struct fstate *, const char *);
437916863dSJens Schweikhardt void	pr_comment(void);
447916863dSJens Schweikhardt void	set_defaults(void);
457916863dSJens Schweikhardt void	set_option(char *);
467916863dSJens Schweikhardt void	set_profile(void);
477916863dSJens Schweikhardt void	writefdef(struct fstate *f, int);
48