Module Name: src Committed By: rillig Date: Mon Dec 28 18:51:18 UTC 2020
Modified Files: src/usr.bin/xlint/lint1: cgram.y scan.l Log Message: lint: rename tspec macros To generate a diff of this commit: cvs rdiff -u -r1.106 -r1.107 src/usr.bin/xlint/lint1/cgram.y cvs rdiff -u -r1.92 -r1.93 src/usr.bin/xlint/lint1/scan.l 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/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.106 src/usr.bin/xlint/lint1/cgram.y:1.107 --- src/usr.bin/xlint/lint1/cgram.y:1.106 Fri Dec 4 17:56:04 2020 +++ src/usr.bin/xlint/lint1/cgram.y Mon Dec 28 18:51:18 2020 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: cgram.y,v 1.106 2020/12/04 17:56:04 christos Exp $ */ +/* $NetBSD: cgram.y,v 1.107 2020/12/28 18:51:18 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: cgram.y,v 1.106 2020/12/04 17:56:04 christos Exp $"); +__RCSID("$NetBSD: cgram.y,v 1.107 2020/12/28 18:51:18 rillig Exp $"); #endif #include <stdlib.h> @@ -2080,7 +2080,7 @@ toicon(tnode_t *tn, int required) error(55); } else { i = (int)v->v_quad; - if (isutyp(t)) { + if (tspec_is_uint(t)) { if (uq_gt((uint64_t)v->v_quad, (uint64_t)TARG_INT_MAX)) { /* integral constant too large */ Index: src/usr.bin/xlint/lint1/scan.l diff -u src/usr.bin/xlint/lint1/scan.l:1.92 src/usr.bin/xlint/lint1/scan.l:1.93 --- src/usr.bin/xlint/lint1/scan.l:1.92 Fri Sep 18 14:19:08 2020 +++ src/usr.bin/xlint/lint1/scan.l Mon Dec 28 18:51:18 2020 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: scan.l,v 1.92 2020/09/18 14:19:08 christos Exp $ */ +/* $NetBSD: scan.l,v 1.93 2020/12/28 18:51:18 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: scan.l,v 1.92 2020/09/18 14:19:08 christos Exp $"); +__RCSID("$NetBSD: scan.l,v 1.93 2020/12/28 18:51:18 rillig Exp $"); #endif #include <stdlib.h> @@ -766,7 +766,7 @@ int sign(int64_t q, tspec_t t, int len) { - if (t == PTR || isutyp(t)) + if (t == PTR || tspec_is_uint(t)) return (0); return (msb(q, t, len)); } @@ -790,7 +790,7 @@ xsign(int64_t q, tspec_t t, int len) if (len <= 0) len = size(t); - if (t == PTR || isutyp(t) || !sign(q, t, len)) { + if (t == PTR || tspec_is_uint(t) || !sign(q, t, len)) { q &= qlmasks[len]; } else { q |= qumasks[len];