=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/indent/io.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/indent/io.c 1996/06/26 05:34:31 1.2 --- src/usr.bin/indent/io.c 1997/07/25 22:00:46 1.3 *************** *** 1,4 **** ! /* $OpenBSD: io.c,v 1.2 1996/06/26 05:34:31 deraadt Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. --- 1,4 ---- ! /* $OpenBSD: io.c,v 1.3 1997/07/25 22:00:46 mickey Exp $ */ /* * Copyright (c) 1985 Sun Microsystems, Inc. *************** *** 37,55 **** #ifndef lint /*static char sccsid[] = "from: @(#)io.c 5.15 (Berkeley) 2/26/91";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.2 1996/06/26 05:34:31 deraadt Exp $"; #endif /* not lint */ #include #include #include #include #include "indent_globs.h" int comment_open; static paren_target; dump_line() { /* dump_line is the routine that actually * effects the printing of the new source. It --- 37,57 ---- #ifndef lint /*static char sccsid[] = "from: @(#)io.c 5.15 (Berkeley) 2/26/91";*/ ! static char rcsid[] = "$OpenBSD: io.c,v 1.3 1997/07/25 22:00:46 mickey Exp $"; #endif /* not lint */ #include #include #include #include + #include #include "indent_globs.h" int comment_open; static paren_target; + void dump_line() { /* dump_line is the routine that actually * effects the printing of the new source. It *************** *** 281,286 **** --- 283,289 ---- return; } + int compute_code_target() { register target_col = ps.ind_size * ps.ind_level + 1; *************** *** 306,311 **** --- 309,315 ---- return target_col; } + int compute_label_target() { return *************** *** 330,336 **** * buffer from temporary buffer * */ ! int fill_buffer() { /* this routine reads stuff from the input */ register char *p; --- 334,340 ---- * buffer from temporary buffer * */ ! void fill_buffer() { /* this routine reads stuff from the input */ register char *p; *************** *** 351,357 **** register offset = p - in_buffer; in_buffer = (char *) realloc(in_buffer, size); if (in_buffer == 0) ! err("input line too long"); p = in_buffer + offset; in_buffer_limit = in_buffer + size - 2; } --- 355,361 ---- register offset = p - in_buffer; in_buffer = (char *) realloc(in_buffer, size); if (in_buffer == 0) ! errx(1, "input line too long"); p = in_buffer + offset; in_buffer_limit = in_buffer + size - 2; } *************** *** 445,450 **** --- 449,455 ---- * HISTORY: initial coding November 1976 D A Willcox of CAC * */ + int pad_output(current, target) /* writes tabs and blanks (if necessary) to * get the current output position up to the * target column */ *************** *** 530,535 **** --- 535,541 ---- int found_err; /* VARARGS2 */ + void diag(level, msg, a, b) char *msg; { *************** *** 547,552 **** --- 553,559 ---- } } + void writefdef(f, nm) register struct fstate *f; { *************** *** 587,593 **** return s; } ! parsefont(f, s0) register struct fstate *f; char *s0; --- 594,600 ---- return s; } ! void parsefont(f, s0) register struct fstate *f; char *s0;