io.c
Source uses a buffer write callCalls a character-class helper
SHA-2565052a057f7a255777f1113ed8fbb7ab2d4ab5bd3002f28bf0316d78f740d93ae
MaleculeO(Er)H(F)
Evidence
1/*-
2 * SPDX-License-Identifier: BSD-4-Clause
3 *
4 * Copyright (c) 1985 Sun Microsystems, Inc.
5 * Copyright (c) 1980, 1993
6 * The Regents of the University of California. All rights reserved.
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must repr …
27:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABL …
34:47… VISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#include <sys/cdefs.h>
39#include <ctype.h>
40#include <err.h>
41#include <stdio.h>
42#include <stdlib.h>
43#include <string.h>
44#include "indent_globs.h"
45#include "indent.h"
46
47/* Globals */
48int found_err;
49int n_real_blanklines;
50int prefix_blankline_requested, postfix_ …
179:20… );
180 cur_col = 1;
181 ++ps.out_lines;
182 }
183 while (e_com > com_st && isspace((unsigned char)e_com[-1]))
184 e_com--;
185 (void)pad_output(cur_col, target);
186 fwrite(com_st, e_com - com_st, 1, output);
187 ps.comment_delta = ps.n_comment_delta;
188 ++ps.com_lines; /* count lines with comment …
206:44… /* next line should be
207 * indented if we have not
208 * completed this stmt and if
209 * we are not in the middle of
210 * a declara …