Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint/lint1 lint: rename function 'cleanup' to be mo...



details:   https://anonhg.NetBSD.org/src/rev/a59f32bb8834
branches:  trunk
changeset: 363482:a59f32bb8834
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Mar 13 14:40:36 2022 +0000

description:
lint: rename function 'cleanup' to be more expressive

No functional change.

diffstat:

 usr.bin/xlint/lint1/decl.c     |  6 +++---
 usr.bin/xlint/lint1/externs1.h |  4 ++--
 usr.bin/xlint/lint1/lex.c      |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 2e52f48c9096 -r a59f32bb8834 usr.bin/xlint/lint1/decl.c
--- a/usr.bin/xlint/lint1/decl.c        Sun Mar 13 14:20:24 2022 +0000
+++ b/usr.bin/xlint/lint1/decl.c        Sun Mar 13 14:40:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: decl.c,v 1.252 2022/03/01 00:17:12 rillig Exp $ */
+/* $NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: decl.c,v 1.252 2022/03/01 00:17:12 rillig Exp $");
+__RCSID("$NetBSD: decl.c,v 1.253 2022/03/13 14:40:36 rillig Exp $");
 #endif
 
 #include <sys/param.h>
@@ -2882,7 +2882,7 @@
        while (dcs->d_next != NULL)
                end_declaration_level();
 
-       cleanup();
+       clean_up_after_error();
        block_level = 0;
        mem_block_level = 0;
 
diff -r 2e52f48c9096 -r a59f32bb8834 usr.bin/xlint/lint1/externs1.h
--- a/usr.bin/xlint/lint1/externs1.h    Sun Mar 13 14:20:24 2022 +0000
+++ b/usr.bin/xlint/lint1/externs1.h    Sun Mar 13 14:40:36 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: externs1.h,v 1.149 2022/03/01 00:17:12 rillig Exp $    */
+/*     $NetBSD: externs1.h,v 1.150 2022/03/13 14:40:36 rillig Exp $    */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -81,7 +81,7 @@
 extern int64_t convert_integer(int64_t, tspec_t, unsigned int);
 extern void    clear_warn_flags(void);
 extern sym_t   *getsym(sbuf_t *);
-extern void    cleanup(void);
+extern void    clean_up_after_error(void);
 extern sym_t   *pushdown(const sym_t *);
 extern sym_t   *mktempsym(type_t *);
 extern void    rmsym(sym_t *);
diff -r 2e52f48c9096 -r a59f32bb8834 usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Sun Mar 13 14:20:24 2022 +0000
+++ b/usr.bin/xlint/lint1/lex.c Sun Mar 13 14:40:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.108 2022/03/01 20:00:47 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.109 2022/03/13 14:40:36 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: lex.c,v 1.108 2022/03/01 20:00:47 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.109 2022/03/13 14:40:36 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -1529,7 +1529,7 @@
  * level 0.
  */
 void
-cleanup(void)
+clean_up_after_error(void)
 {
 
        symtab_remove_locals();



Home | Main Index | Thread Index | Old Index