Module Name: src Committed By: rillig Date: Sat Aug 12 21:32:16 UTC 2023
Modified Files: src/usr.bin/xlint/lint1: emit1.c src/usr.bin/xlint/lint2: emit2.c Log Message: lint: clean up comments There's no output buffer anymore. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint1/emit1.c cvs rdiff -u -r1.35 -r1.36 src/usr.bin/xlint/lint2/emit2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/emit1.c diff -u src/usr.bin/xlint/lint1/emit1.c:1.75 src/usr.bin/xlint/lint1/emit1.c:1.76 --- src/usr.bin/xlint/lint1/emit1.c:1.75 Sat Aug 12 21:08:37 2023 +++ src/usr.bin/xlint/lint1/emit1.c Sat Aug 12 21:32:16 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: emit1.c,v 1.75 2023/08/12 21:08:37 rillig Exp $ */ +/* $NetBSD: emit1.c,v 1.76 2023/08/12 21:32:16 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -38,7 +38,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: emit1.c,v 1.75 2023/08/12 21:08:37 rillig Exp $"); +__RCSID("$NetBSD: emit1.c,v 1.76 2023/08/12 21:32:16 rillig Exp $"); #endif #include "lint1.h" @@ -288,7 +288,6 @@ outfdef(const sym_t *fsym, const pos_t * if (fsym->s_scl == STATIC) outchar('s'); - /* name of function */ outname(fsym->s_name); if (fsym->s_rename != NULL) { @@ -396,7 +395,7 @@ outcall(const tnode_t *tn, bool retval_u outchar('\n'); } -/* write a character to the output buffer, quoted if necessary */ +/* write a character to the output file, quoted if necessary */ static void outqchar(char c) { @@ -448,7 +447,7 @@ outqchar(char c) /* * extracts potential format specifiers for printf() and scanf() and - * writes them, enclosed in "" and quoted if necessary, to the output buffer + * writes them, enclosed in "" and quoted if necessary, to the output file */ static void outfstrg(strg_t *strg) @@ -546,9 +545,7 @@ outfstrg(strg_t *strg) outchar('"'); } -/* - * writes a record if sym was used - */ +/* writes a record if sym was used */ void outusg(const sym_t *sym) { Index: src/usr.bin/xlint/lint2/emit2.c diff -u src/usr.bin/xlint/lint2/emit2.c:1.35 src/usr.bin/xlint/lint2/emit2.c:1.36 --- src/usr.bin/xlint/lint2/emit2.c:1.35 Sat Aug 12 21:08:37 2023 +++ src/usr.bin/xlint/lint2/emit2.c Sat Aug 12 21:32:16 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: emit2.c,v 1.35 2023/08/12 21:08:37 rillig Exp $ */ +/* $NetBSD: emit2.c,v 1.36 2023/08/12 21:32:16 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -34,7 +34,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) -__RCSID("$NetBSD: emit2.c,v 1.35 2023/08/12 21:08:37 rillig Exp $"); +__RCSID("$NetBSD: emit2.c,v 1.36 2023/08/12 21:32:16 rillig Exp $"); #endif #include "lint2.h" @@ -44,9 +44,7 @@ static void outdef(hte_t *, sym_t *); static void dumpname(hte_t *); static void outfiles(void); -/* - * Write type into the output buffer. - */ +/* Write type into the output file. */ static void outtype(type_t *tp) { @@ -109,9 +107,7 @@ outtype(type_t *tp) } } -/* - * Write a definition. - */ +/* Write a definition. */ static void outdef(hte_t *hte, sym_t *sym) { @@ -149,9 +145,7 @@ outdef(hte_t *hte, sym_t *sym) outchar('\n'); } -/* - * Write the first definition of a name into the lint library. - */ +/* Write the first definition of a name into the lint library. */ static void dumpname(hte_t *hte) { @@ -181,9 +175,7 @@ dumpname(hte_t *hte) outdef(hte, def); } -/* - * Write a new lint library. - */ +/* Write a new lint library. */ void outlib(const char *name) { @@ -206,9 +198,7 @@ outlib(const char *name) outclose(); } -/* - * Write out the name of a file referenced by a type. - */ +/* Write out the name of a file referenced by a type. */ struct outflist { short ofl_num; struct outflist *ofl_next;