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: fix typo in check-msgs tool



details:   https://anonhg.NetBSD.org/src/rev/6cba4cf4b924
branches:  trunk
changeset: 979582:6cba4cf4b924
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Jan 02 01:12:38 2021 +0000

description:
lint: fix typo in check-msgs tool

diffstat:

 usr.bin/xlint/lint1/check-msgs.lua |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 7e9bbdaed6a5 -r 6cba4cf4b924 usr.bin/xlint/lint1/check-msgs.lua
--- a/usr.bin/xlint/lint1/check-msgs.lua        Sat Jan 02 01:06:15 2021 +0000
+++ b/usr.bin/xlint/lint1/check-msgs.lua        Sat Jan 02 01:12:38 2021 +0000
@@ -1,12 +1,12 @@
 #! /usr/bin/lua
--- $NetBSD: check-msgs.lua,v 1.4 2021/01/01 11:41:01 rillig Exp $
+-- $NetBSD: check-msgs.lua,v 1.5 2021/01/02 01:12:38 rillig Exp $
 
 --[[
 
-Check that the message text in the C source matches the actual user-visible
-message text.
+usage: lua ./check-msgs.lua *.c
 
-usage: ./check-diagnostics *.c
+Check that the message text in the comments of the C source code matches the
+actual user-visible message text in err.c.
 
 ]]
 
@@ -39,6 +39,7 @@
   msg = string.gsub(msg, "/%*", "**")
   msg = string.gsub(msg, "%*/", "**")
   msg = string.gsub(msg, "\\(.)", "%1")
+
   comment = string.gsub(comment, "arg%.", "argument")
   comment = string.gsub(comment, "bitop%.", "bitwise operation")
   comment = string.gsub(comment, "comb%.", "combination")



Home | Main Index | Thread Index | Old Index