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: finish renaming of fcon to lex_flo...



details:   https://anonhg.NetBSD.org/src/rev/90a630d8ffbb
branches:  trunk
changeset: 1026290:90a630d8ffbb
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Nov 16 18:33:14 2021 +0000

description:
lint: finish renaming of fcon to lex_floating_constant

diffstat:

 usr.bin/xlint/lint1/lex.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 94bc65906c01 -r 90a630d8ffbb usr.bin/xlint/lint1/lex.c
--- a/usr.bin/xlint/lint1/lex.c Tue Nov 16 18:27:04 2021 +0000
+++ b/usr.bin/xlint/lint1/lex.c Tue Nov 16 18:33:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.86 2021/11/16 17:41:23 rillig Exp $ */
+/* $NetBSD: lex.c,v 1.87 2021/11/16 18:33:14 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.86 2021/11/16 17:41:23 rillig Exp $");
+__RCSID("$NetBSD: lex.c,v 1.87 2021/11/16 18:33:14 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -669,9 +669,9 @@
 }
 
 /*
- * Convert a string representing a floating point value into its integral
- * representation. Type and value are returned in yylval. fcon()
- * (and yylex()) returns T_CON.
+ * Convert a string representing a floating point value into its numerical
+ * representation. Type and value are returned in yylval.
+ *
  * XXX Currently it is not possible to convert constants of type
  * long double which are greater than DBL_MAX.
  */
@@ -725,7 +725,8 @@
                        errno = 0;
                        break;
                default:
-                       INTERNAL_ERROR("fcon(%s->%s)", cp, eptr);
+                       INTERNAL_ERROR("lex_floating_constant(%s->%s)",
+                           cp, eptr);
                }
        }
        if (errno != 0)



Home | Main Index | Thread Index | Old Index